Update predict.py

This commit is contained in:
Stephan Auerhahn 2022-07-26 22:58:29 -07:00 committed by GitHub
parent 634a513ba7
commit a054801c18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -504,7 +504,7 @@ class Predictor(BasePredictor):
except (FileNotFoundError, UnidentifiedImageError):
logging.debug("Bad image prompt; ignoring") # Is there a better way to input images?
else:
self.image_prompt = Image.open(image_prompt)
self.image_prompt = str(image_prompt)
self.args.both_stages = both_stages
for file in self.run():