Spaces:
Runtime error
Runtime error
Update open_oasis_master/generate.py
Browse files
open_oasis_master/generate.py
CHANGED
@@ -10,8 +10,9 @@ from utils import one_hot_actions, sigmoid_beta_schedule
|
|
10 |
from tqdm import tqdm
|
11 |
from einops import rearrange
|
12 |
from torch import autocast
|
13 |
-
assert torch.cuda.is_available()
|
14 |
-
device = "cuda:0"
|
|
|
15 |
|
16 |
# load DiT checkpoint
|
17 |
ckpt = torch.load("oasis500m.pt")
|
|
|
10 |
from tqdm import tqdm
|
11 |
from einops import rearrange
|
12 |
from torch import autocast
|
13 |
+
#assert torch.cuda.is_available()
|
14 |
+
#device = "cuda:0"
|
15 |
+
device = "cpu"
|
16 |
|
17 |
# load DiT checkpoint
|
18 |
ckpt = torch.load("oasis500m.pt")
|