mirror of
https://github.com/facefusion/facefusion-labs.git
synced 2026-04-19 15:56:37 +02:00
Fix export using Trainer
This commit is contained in:
@@ -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