tree3po commited on
Commit
507db9b
1 Parent(s): fc7a6ef

Update open_oasis_master/generate.py

Browse files
Files changed (1) hide show
  1. open_oasis_master/generate.py +3 -2
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")