Hemanth-Thaluru
commited on
Commit
•
34aefa1
1
Parent(s):
8c9aa4f
code cleanup
Browse files- colorizers/siggraph17.py +3 -0
- model.pth +3 -0
colorizers/siggraph17.py
CHANGED
@@ -164,6 +164,9 @@ def siggraph17(pretrained=True):
|
|
164 |
if(pretrained):
|
165 |
import torch.utils.model_zoo as model_zoo
|
166 |
# model.load_state_dict(torch.load('model.pth'))
|
|
|
|
|
|
|
167 |
model.load_state_dict(model_zoo.load_url('https://colorizers.s3.us-east-2.amazonaws.com/siggraph17-df00044c.pth',map_location='cpu',check_hash=True))
|
168 |
return model
|
169 |
|
|
|
164 |
if(pretrained):
|
165 |
import torch.utils.model_zoo as model_zoo
|
166 |
# model.load_state_dict(torch.load('model.pth'))
|
167 |
+
# local_path = 'model.pth'
|
168 |
+
# state_dict = torch.load(local_path, map_location=torch.device('cpu'))
|
169 |
+
# model.load_state_dict(state_dict)
|
170 |
model.load_state_dict(model_zoo.load_url('https://colorizers.s3.us-east-2.amazonaws.com/siggraph17-df00044c.pth',map_location='cpu',check_hash=True))
|
171 |
return model
|
172 |
|
model.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:df00044c0a4d7c3edcecf6f75437ce346a66e7a42612d9b968e1a7e17dbc6f66
|
3 |
+
size 136787426
|