Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import torch
|
|
3 |
from utils import transformer, tensor_to_img
|
4 |
from network import Style_Transfer_Network
|
5 |
|
6 |
-
check_point = torch.load("
|
7 |
model = Style_Transfer_Network()
|
8 |
model.load_state_dict(check_point['state_dict'])
|
9 |
|
|
|
3 |
from utils import transformer, tensor_to_img
|
4 |
from network import Style_Transfer_Network
|
5 |
|
6 |
+
check_point = torch.load("check_point1_0.pth", map_location = torch.device('cpu'))
|
7 |
model = Style_Transfer_Network()
|
8 |
model.load_state_dict(check_point['state_dict'])
|
9 |
|