ysharma HF staff commited on
Commit
fd8bc49
1 Parent(s): 83a6d20
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ import open_clip
29
 
30
  def load_model_from_config(config, ckpt, verbose=False):
31
  print(f"Loading model from {ckpt}")
32
- pl_sd = torch.load(ckpt, map_location="cuda")
33
  #please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
34
  pl_sd = torch.load(ckpt, map_location=torch.device('cpu'))
35
  sd = pl_sd["state_dict"]
 
29
 
30
  def load_model_from_config(config, ckpt, verbose=False):
31
  print(f"Loading model from {ckpt}")
32
+ #pl_sd = torch.load(ckpt, map_location="cuda")
33
  #please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
34
  pl_sd = torch.load(ckpt, map_location=torch.device('cpu'))
35
  sd = pl_sd["state_dict"]