Simswap 512 on Colab #162
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello!
The results are awesome, I'm trying to reproduce them on Colab but I'm having issues, the code as it is, seems to output as the original behavior.
If I modify
crop_size = opt.crop_size
to
crop_size = 512
nothing happens.
I I use instead use:
opt.crop_size = 512
crop_size = opt.crop_size
I get these results, they vary on each run:
I managed to fix it (this may not be perfect and may have bugs), if anyone wants to try it, do this:
You can switch between 224 and 512 by modifying opt.crop_size value.
224

512

Congratulations to the authors for doing a wonderful job.
Sorry for the late respond. Grate to see you make it work, I forget to update the colab file to the latest version yesterday, I will update those files today.Have a nice day.
I was contacted about this subject at https://github.com/woctezuma/SimSwap-colab/issues/3 and was a bit confused about the original issue, and where the fix was in the code posted above. So I will try to explain what I understood and see if I got it right after reading both of these issues:
As I understand, the issue only arises for people who use Colab notebooks instead of the official Python scripts. In these cases, the value of the
crop_sizevariable is not set via the function argument--crop_size 512, but manually set by the user in the Colab notebook. This is an issue becauseopt.crop_sizeis later used by the program whencreate_model()is called, so the user is supposed to have set it to the non-default value (512) beforehand.050ed8a00a/models/fs_model.py (L53-L56)dd1ecdd2a7/options/test_options.py (L36)The fix consists in setting
opt.crop_size(to the same value ascrop_size) in the Colab notebook.How is this going?
I don't know which script you are trying to run, and you don't show the error message. I cannot help you with that. 😄
I´ve copied the code and ended up with 256 anyway
Anyone who has a working copy of the colab so you can pass it to me? Please 🥹