ai-forever / ghost

A new one shot face swap approach for image and video domains
Apache License 2.0
1.25k stars 265 forks source link

Bad source images #16

Open loboere opened 2 years ago

loboere commented 2 years ago

colab does not detect some faces get "Bad source images" the faces are jpg

r/local/lib/python3.7/dist-packages/torch/nn/functional.py:3680: UserWarning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and now uses scale_factor directly, instead of relying on the computed output size. If you wish to restore the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. 
  "The default behavior for interpolate/upsample with float scale_factor changed "
Bad source images
100%|██████████| 1/1 [00:00<00:00, 38.86it/s]
1it [00:00, 391.37it/s]
100%|██████████| 1/1 [00:00<00:00, 19.83it/s]
100%|██████████| 1/1 [00:00<00:00, 2481.84it/s]
1it [00:00,  6.08it/s]
thepirat000 commented 2 years ago

Try cropping the source images to only the face, I've fixed that error before in that way