Skip to content

Commit

Permalink
fix face disc
Browse files Browse the repository at this point in the history
  • Loading branch information
tcwang0509 committed Sep 20, 2018
1 parent 0adb7b0 commit ab25dd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/vid2vid_model_D.py
Expand Up @@ -216,7 +216,7 @@ def forward(self, scale_T, tensors_list):
def get_face_region(self, real_A):
_, _, h, w = real_A.size()
if not self.opt.openpose_only:
face = (real_A[:,2] > 0.9).nonzero()
face = (real_A[:,2] > 0.95).nonzero()
else:
face = (((real_A[:,0] == 0.6) | (real_A[:,0] == 0.2)) & (real_A[:,1] == 0) & (real_A[:,2] == 0.6)).nonzero()
if face.size()[0]:
Expand Down

0 comments on commit ab25dd9

Please sign in to comment.