Spaces:
Runtime error
Runtime error
heheyas
commited on
Commit
·
9019ad0
1
Parent(s):
f8a13ca
update app
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ def do_sample(
|
|
82 |
|
83 |
print(device)
|
84 |
with torch.no_grad():
|
85 |
-
with torch.autocast(
|
86 |
batch, batch_uc = get_batch(
|
87 |
get_unique_embedder_keys_from_conditioner(model.conditioner),
|
88 |
value_dict,
|
@@ -139,7 +139,7 @@ def do_sample(
|
|
139 |
return video_path
|
140 |
|
141 |
|
142 |
-
device = "cuda" if torch.cuda.is_available() else "cpu"
|
143 |
|
144 |
# download
|
145 |
V3D_ckpt_path = hf_hub_download(repo_id="heheyas/V3D", filename="V3D.ckpt")
|
|
|
82 |
|
83 |
print(device)
|
84 |
with torch.no_grad():
|
85 |
+
with torch.autocast(device_type="cuda"):
|
86 |
batch, batch_uc = get_batch(
|
87 |
get_unique_embedder_keys_from_conditioner(model.conditioner),
|
88 |
value_dict,
|
|
|
139 |
return video_path
|
140 |
|
141 |
|
142 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
143 |
|
144 |
# download
|
145 |
V3D_ckpt_path = hf_hub_download(repo_id="heheyas/V3D", filename="V3D.ckpt")
|