Remove map_location

This commit is contained in:
henryruhs
2025-03-11 14:43:09 +01:00
parent 575f215408
commit 83ef075b1d
5 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -19,9 +19,9 @@ class FaceSwapperLoss:
motion_extractor_path = CONFIG.get('training.model', 'motion_extractor_path')
self.batch_size = CONFIG.getint('training.loader', 'batch_size')
self.mse_loss = nn.MSELoss()
self.id_embedder = torch.jit.load(id_embedder_path, map_location = 'cpu') # type:ignore[no-untyped-call]
self.landmarker = torch.jit.load(landmarker_path, map_location = 'cpu') # type:ignore[no-untyped-call]
self.motion_extractor = torch.jit.load(motion_extractor_path, map_location = 'cpu') # type:ignore[no-untyped-call]
self.id_embedder = torch.jit.load(id_embedder_path) # type:ignore[no-untyped-call]
self.landmarker = torch.jit.load(landmarker_path) # type:ignore[no-untyped-call]
self.motion_extractor = torch.jit.load(motion_extractor_path) # type:ignore[no-untyped-call]
self.id_embedder.eval()
self.landmarker.eval()
self.motion_extractor.eval()