mirror of
https://github.com/THUDM/CogVideo.git
synced 2025-12-02 18:52:08 +08:00
Update predict.py
This commit is contained in:
parent
634a513ba7
commit
a054801c18
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user