mirror of
https://github.com/facefusion/facefusion-labs.git
synced 2026-10-03 08:16:49 +02:00
Fix export using Trainer
This commit is contained in:
1 parent
84b4451366
commit
c8801ececd
1 file changed
+1
-1
@@ -40,7 +40,7 @@ class FaceSwapperTrainer(lightning.LightningModule):
|
||||
self.embedder = torch.jit.load(embedder_path, map_location = 'cpu') # type:ignore[no-untyped-call]
|
||||
self.automatic_optimization = False
|
||||
|
||||
def forward(self, target_tensor : Tensor, source_embedding : Embedding) -> Tensor:
|
||||
def forward(self, source_embedding : Embedding, target_tensor : Tensor) -> Tensor:
|
||||
output_tensor = self.generator(source_embedding, target_tensor)
|
||||
return output_tensor
|
||||
|
||||
|
||||
Reference in new issue
Block a user