Spaces:
Runtime error
Runtime error
Update worker_runpod.py
Browse files- worker_runpod.py +1 -1
worker_runpod.py
CHANGED
@@ -72,7 +72,7 @@ def download_image(url, download_dir="/content"):
|
|
72 |
# validation_image_start = values.get("validation_image_start", "https://example.com/path/to/image.png")
|
73 |
# downloaded_image_path = download_image(validation_image_start)
|
74 |
model_id = "/runpod-volume/model"
|
75 |
-
transformer = CogVideoXTransformer3DModel.
|
76 |
|
77 |
vae = AutoencoderKLCogVideoX.from_pretrained(model_id, subfolder="vae").to(torch.bfloat16)
|
78 |
|
|
|
72 |
# validation_image_start = values.get("validation_image_start", "https://example.com/path/to/image.png")
|
73 |
# downloaded_image_path = download_image(validation_image_start)
|
74 |
model_id = "/runpod-volume/model"
|
75 |
+
transformer = CogVideoXTransformer3DModel.from_pretrained_2d(model_id, subfolder="transformer").to(torch.bfloat16)
|
76 |
|
77 |
vae = AutoencoderKLCogVideoX.from_pretrained(model_id, subfolder="vae").to(torch.bfloat16)
|
78 |
|