Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from test import inference_img
|
|
| 4 |
device='cuda'
|
| 5 |
model = MaskForm()
|
| 6 |
model = model.to(device)
|
| 7 |
-
checkpoint = f"
|
| 8 |
state_dict = torch.load(checkpoint, map_location=f'{device}')
|
| 9 |
|
| 10 |
model.load_state_dict(state_dict)
|
|
|
|
| 4 |
device='cuda'
|
| 5 |
model = MaskForm()
|
| 6 |
model = model.to(device)
|
| 7 |
+
checkpoint = f"stylematte.pth"
|
| 8 |
state_dict = torch.load(checkpoint, map_location=f'{device}')
|
| 9 |
|
| 10 |
model.load_state_dict(state_dict)
|