feat image2sketch 变更模型
fix
This commit is contained in:
@@ -92,7 +92,7 @@ class Generator(nn.Module):
|
||||
|
||||
|
||||
model1 = Generator(3, 1, 3)
|
||||
model1.load_state_dict(torch.load('service/image2sketch_2/model.pth', map_location=torch.device('cpu')))
|
||||
model1.load_state_dict(torch.load('app/service/image2sketch_2/model.pth', map_location=torch.device('cpu')))
|
||||
model1.eval()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user