mirror of
https://github.com/facefusion/facefusion-labs.git
synced 2026-05-22 23:59:40 +02:00
Mask typing and naming related updates
This commit is contained in:
@@ -53,7 +53,7 @@ class FaceSwapperTrainer(LightningModule):
|
||||
self.mask_loss = MaskLoss(config_parser, self.face_parser)
|
||||
self.automatic_optimization = False
|
||||
|
||||
def forward(self, source_embedding : Embedding, target_tensor : Tensor) -> Tuple[Tensor, Tensor]:
|
||||
def forward(self, source_embedding : Embedding, target_tensor : Tensor) -> Tuple[Tensor, Mask]:
|
||||
with torch.no_grad():
|
||||
output_tensor, target_attributes = self.generator(source_embedding, target_tensor)
|
||||
target_attribute = target_attributes[-1]
|
||||
|
||||
Reference in New Issue
Block a user