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
e0067c5132
commit
634a513ba7
@ -486,7 +486,7 @@ class Predictor(BasePredictor):
|
|||||||
description="Run both stages (uncheck to run more quickly and output only a few frames)", default=True
|
description="Run both stages (uncheck to run more quickly and output only a few frames)", default=True
|
||||||
),
|
),
|
||||||
use_guidance: bool = Input(description="Use stage 1 guidance (recommended)", default=True),
|
use_guidance: bool = Input(description="Use stage 1 guidance (recommended)", default=True),
|
||||||
image_prompt: Path = Input(description="Starting image")
|
image_prompt: Path = Input(description="Starting image", default=None)
|
||||||
) -> typing.Iterator[Path]:
|
) -> typing.Iterator[Path]:
|
||||||
if translate:
|
if translate:
|
||||||
prompt = self.translator.translate(prompt.strip())
|
prompt = self.translator.translate(prompt.strip())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user