Spaces:
Runtime error
Runtime error
Update open_oasis_master/generate.py
Browse files
open_oasis_master/generate.py
CHANGED
|
@@ -97,7 +97,7 @@ for i in tqdm(range(n_prompt_frames, total_frames)):
|
|
| 97 |
|
| 98 |
# get model predictions
|
| 99 |
with torch.no_grad():
|
| 100 |
-
with autocast("
|
| 101 |
v = model(x_curr, t, actions[:, start_frame : i + 1])
|
| 102 |
|
| 103 |
x_start = alphas_cumprod[t].sqrt() * x_curr - (1 - alphas_cumprod[t]).sqrt() * v
|
|
|
|
| 97 |
|
| 98 |
# get model predictions
|
| 99 |
with torch.no_grad():
|
| 100 |
+
with autocast("cpu", dtype=torch.half):
|
| 101 |
v = model(x_curr, t, actions[:, start_frame : i + 1])
|
| 102 |
|
| 103 |
x_start = alphas_cumprod[t].sqrt() * x_curr - (1 - alphas_cumprod[t]).sqrt() * v
|