Spaces:
Build error
Build error
Update text_to_animation/model.py
Browse files
text_to_animation/model.py
CHANGED
|
@@ -404,7 +404,7 @@ class ControlAnimationModel:
|
|
| 404 |
cfg_scale: float = 7.0,
|
| 405 |
seed: int = 0,
|
| 406 |
) -> List[Image.Image]:
|
| 407 |
-
generator = torch.Generator(
|
| 408 |
pipe = StableDiffusionPipeline.from_pretrained(model_link)
|
| 409 |
|
| 410 |
batch_size = 4
|
|
|
|
| 404 |
cfg_scale: float = 7.0,
|
| 405 |
seed: int = 0,
|
| 406 |
) -> List[Image.Image]:
|
| 407 |
+
generator = torch.Generator().manual_seed(seed)
|
| 408 |
pipe = StableDiffusionPipeline.from_pretrained(model_link)
|
| 409 |
|
| 410 |
batch_size = 4
|