mirror of
https://github.com/facefusion/facefusion-labs.git
synced 2026-05-22 23:59:40 +02:00
Fix tensor foobar
This commit is contained in:
@@ -34,7 +34,7 @@ class FaceSwapperLoss:
|
||||
weight_pose = CONFIG.getfloat('training.losses', 'weight_pose')
|
||||
weight_gaze = CONFIG.getfloat('training.losses', 'weight_gaze')
|
||||
source_tensor, target_tensor = batch
|
||||
is_same_person = torch.tensor(0) if source_tensor == target_tensor else torch.tensor(1)
|
||||
is_same_person = torch.tensor(0) if torch.equal(source_tensor, target_tensor) else torch.tensor(1)
|
||||
generator_loss_set =\
|
||||
{
|
||||
'loss_adversarial': self.calc_adversarial_loss(discriminator_outputs),
|
||||
|
||||
Reference in New Issue
Block a user