Spaces:
Runtime error
Runtime error
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"]
|