Spaces:
Running
Running
gavinyuan
commited on
Commit
•
d25d54e
1
Parent(s):
7fdc8e2
update: app.py
Browse files
third_party/arcface/mouth_net.py
CHANGED
@@ -65,7 +65,7 @@ class MouthNet(nn.Module):
|
|
65 |
torch.save(self.backbone.state_dict(), path)
|
66 |
|
67 |
def load_backbone(self, path: str):
|
68 |
-
self.backbone.load_state_dict(torch.load(path))
|
69 |
|
70 |
|
71 |
if __name__ == "__main__":
|
|
|
65 |
torch.save(self.backbone.state_dict(), path)
|
66 |
|
67 |
def load_backbone(self, path: str):
|
68 |
+
self.backbone.load_state_dict(torch.load(path, map_location='cpu'))
|
69 |
|
70 |
|
71 |
if __name__ == "__main__":
|