Spaces:
Runtime error
Runtime error
karanravindra
commited on
Commit
•
9f1fbd5
1
Parent(s):
f6a41bd
change weights map location
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ torch.set_grad_enabled(False)
|
|
18 |
decoder = Autoencoder().decoder
|
19 |
dit = DiT()
|
20 |
|
21 |
-
decoder.load_state_dict(torch.load("models/ft-decoder.pth", weights_only=True))
|
22 |
-
dit.load_state_dict(torch.load("models/diffusion.pth", weights_only=True))
|
23 |
|
24 |
rf = RF(dit)
|
25 |
|
|
|
18 |
decoder = Autoencoder().decoder
|
19 |
dit = DiT()
|
20 |
|
21 |
+
decoder.load_state_dict(torch.load("models/ft-decoder.pth", weights_only=True, map_location="cpu"))
|
22 |
+
dit.load_state_dict(torch.load("models/diffusion.pth", weights_only=True, map_location="cpu"))
|
23 |
|
24 |
rf = RF(dit)
|
25 |
|