Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,7 +106,7 @@ def build_generator():
|
|
| 106 |
return Generator(3, 6, 32)
|
| 107 |
|
| 108 |
model=build_generator().to(device)
|
| 109 |
-
model.load_state_dict(torch.load('./
|
| 110 |
|
| 111 |
|
| 112 |
def numpify(imgs):
|
|
|
|
| 106 |
return Generator(3, 6, 32)
|
| 107 |
|
| 108 |
model=build_generator().to(device)
|
| 109 |
+
model.load_state_dict(torch.load('./generator_weight.pt', map_location=torch.device('cpu')))
|
| 110 |
|
| 111 |
|
| 112 |
def numpify(imgs):
|