mirror of
https://github.com/facefusion/facefusion-labs.git
synced 2026-10-03 08:16:49 +02:00
Restore map_location = 'cpu'
This commit is contained in:
1 parent
206a1411d1
commit
ac41bab3a2
2 files changed
+2
-2
No files matched your search
@@ -17,7 +17,7 @@ def export() -> None:
|
||||
opset_version = CONFIG.getint('exporting', 'opset_version')
|
||||
|
||||
makedirs(directory_path, exist_ok = True)
|
||||
model = EmbeddingConverterTrainer.load_from_checkpoint(source_path)
|
||||
model = EmbeddingConverterTrainer.load_from_checkpoint(source_path, map_location = 'cpu')
|
||||
model.eval()
|
||||
model.ir_version = torch.tensor(ir_version)
|
||||
input_tensor = (torch.randn(1, 512), )
|
||||
|
||||
Reference in new issue
Block a user