Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ldm/simplet2i.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,12 @@ def process_image(image,seed):
iter_images = next(images_iterator)
for image in iter_images:
try:
if gfpgan_strength > 0:
# if gfpgan strength is none or less than or equal to 0.0 then
# don't even attempt to use GFPGAN.
# if the user specified a value of -G that satisifies the condition and
# --gfpgan wasn't specified, at startup then
# the net result is a message gets printed - nothing else happens.
if gfpgan_strength is not None and gfpgan_strength > 0.0:
image = self._run_gfpgan(
image, gfpgan_strength
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/dream.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def create_cmd_parser():
parser.add_argument(
'-G',
'--gfpgan_strength',
default=0.5,
default=None,
type=float,
help='The strength at which to apply the GFPGAN model to the result, in order to improve faces.',
)
Expand Down