Commit
·
b09c365
1
Parent(s):
b11e254
Update mymodels.py
Browse files- mymodels.py +0 -2
mymodels.py
CHANGED
@@ -258,7 +258,6 @@ class Color2Sketch(nn.Module):
|
|
258 |
self.decoder = Decoder()
|
259 |
if pretrained:
|
260 |
print('Loading pretrained {0} model...'.format('Color2Sketch'), end=' ')
|
261 |
-
assert os.path.isdir('checkpoint'), 'Error: no checkpoint directory found!'
|
262 |
checkpoint = torch.load('color2edge.pth')
|
263 |
self.load_state_dict(checkpoint['netG'], strict=True)
|
264 |
print("Done!")
|
@@ -396,7 +395,6 @@ class Sketch2Color(nn.Module):
|
|
396 |
self.decoder = Decoder()
|
397 |
if pretrained:
|
398 |
print('Loading pretrained {0} model...'.format('Sketch2Color'), end=' ')
|
399 |
-
assert os.path.isdir('checkpoint'), 'Error: no checkpoint directory found!'
|
400 |
checkpoint = torch.load('edge2color.pth')
|
401 |
self.load_state_dict(checkpoint['netG'], strict=True)
|
402 |
print("Done!")
|
|
|
258 |
self.decoder = Decoder()
|
259 |
if pretrained:
|
260 |
print('Loading pretrained {0} model...'.format('Color2Sketch'), end=' ')
|
|
|
261 |
checkpoint = torch.load('color2edge.pth')
|
262 |
self.load_state_dict(checkpoint['netG'], strict=True)
|
263 |
print("Done!")
|
|
|
395 |
self.decoder = Decoder()
|
396 |
if pretrained:
|
397 |
print('Loading pretrained {0} model...'.format('Sketch2Color'), end=' ')
|
|
|
398 |
checkpoint = torch.load('edge2color.pth')
|
399 |
self.load_state_dict(checkpoint['netG'], strict=True)
|
400 |
print("Done!")
|