Spaces:
Running
Running
zR
commited on
Commit
•
1f94fad
1
Parent(s):
d366590
test
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
21 |
hf_hub_download(repo_id="ai-forever/Real-ESRGAN", filename="RealESRGAN_x4.pth", local_dir="model_real_esran")
|
22 |
snapshot_download(repo_id="AlexWortega/RIFE", local_dir="model_rife")
|
23 |
|
24 |
-
pipe = CogVideoXPipeline.from_pretrained("THUDM/CogVideoX-5b", torch_dtype=torch.bfloat16)
|
25 |
pipe.scheduler = CogVideoXDDIMScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing")
|
26 |
|
27 |
os.makedirs("./output", exist_ok=True)
|
|
|
21 |
hf_hub_download(repo_id="ai-forever/Real-ESRGAN", filename="RealESRGAN_x4.pth", local_dir="model_real_esran")
|
22 |
snapshot_download(repo_id="AlexWortega/RIFE", local_dir="model_rife")
|
23 |
|
24 |
+
pipe = CogVideoXPipeline.from_pretrained("THUDM/CogVideoX-5b", torch_dtype=torch.bfloat16).to(device)
|
25 |
pipe.scheduler = CogVideoXDDIMScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing")
|
26 |
|
27 |
os.makedirs("./output", exist_ok=True)
|