meepmoo commited on
Commit
6adaaf1
·
verified ·
1 Parent(s): 6b09f61

Update worker_runpod.py

Browse files
Files changed (1) hide show
  1. 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.from_pretrained(model_id, subfolder="transformer").to(torch.bfloat16)
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