Open syddharth opened 6 months ago
Hmmm it looks like this might be a windows filesystem issue. I will investigate!
Tried to move all the from .simswap.* import *
to the top of each file and was able to get it to work. But I think it was a very hacky solution.
Tried to move all the
from .simswap.* import *
to the top of each file and was able to get it to work. But I think it was a very hacky solution.
Oh glad you got it to work! I think it might be only line 326 in scripts/simswap_swapper.py that needs to be moved up. I'll try to do some testing on my end and push a new commit if it works.
After moving the 326 on scripts/simswap_swapper.py, I got two more similar/realted errors: line 12 on simswap/models/models.py, line 58 on simswap/models/fs_models.py moving all those imports to the top solved the problem. Though I had to comment out the opt.crop_size if else section on simswap/models/fs_models.py I wonder if this will have any problems running the non-512 models.
After moving the 326 on scripts/simswap_swapper.py, I got two more similar/realted errors: line 12 on simswap/models/models.py, line 58 on simswap/models/fs_models.py moving all those imports to the top solved the problem. Though I had to comment out the opt.crop_size if else section on simswap/models/fs_models.py I wonder if this will have any problems running the non-512 models.
Thanks for the update. I'd love to get that fixed so at least it works out of the box for windows users. You shouldn't have to comment out those relative imports in there that depend on crop_size. Though the crop size is under options/test_options.py I think and it's set to 512 by default. So keep that in mind. I haven't played with that much yet and I don't think it would be too hard to add it as a parameter for the actual node.
I'm going to try something else here and I'll get back to you.
Can I see the error you get when you don't comment out that if/elif statement?
One gets the following error on running the swimswap node.