Skip to content

Commit

Permalink
Remove incompatible params
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk-dev committed Apr 11, 2024
1 parent b46a460 commit 8d5120b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions runner/app/pipelines/text_to_video.py
Expand Up @@ -53,6 +53,17 @@ def __call__(self, prompt: str, **kwargs) -> List[List[PIL.Image]]:
if "decode_chunk_size" not in kwargs:
kwargs["decode_chunk_size"] = 4

# ali-vilab/text-to-video-ms-1.7b has a limited parameter set
if (
self.model_id == "ali-vilab/text-to-video-ms-1.7b"
):
if "fps" in kwargs:
del kwargs["fps"]
if "MotionBucketId" in kwargs:
del kwargs["MotionBucketId"]
if "NoiseAugStrength" in kwargs:
del kwargs["NoiseAugStrength"]

seed = kwargs.pop("seed", None)
if seed is not None:
if isinstance(seed, int):
Expand Down

0 comments on commit 8d5120b

Please sign in to comment.