Closed ghost closed 6 years ago
There is an issue with Windows not reading openCV state properly. I had a fix implemented in Staging. I have just pushed to Master, so please checkout the latest commit, try again and let me know if it works.
If it doesn't, could you let me know how your python is setup (Anaconda, python venv etc.) and within your venv post the output from:
python -c 'import sys; import platform ; print(sys.version); print (platform.system())'
There is an issue with Windows not reading openCV state properly. I had a fix implemented in Staging. I have just pushed to Master, so please checkout the latest commit, try again and let me know if it works.
If it doesn't, could you let me know how your python is setup (Anaconda, python venv etc.) and within your venv post the output from:
python -c 'import sys; import platform ; print(sys.version); print (platform.system())'
I don't know if I did right but I downloaded the latest download ZIP in master branch, and tried again but they still disappear. Here's my setup.
print(sys.version) 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] print(platform.system()) Windows
Thanks a lot!
Ok, it's a hacky fix, but I've added the ability to disable window state monitoring. It should now work, but you'll be unable to close the window with the "x" button (you'll need to press escape).
Launch with the -dm
flag:
python D:\pythondf\python-3.6.3.amd64\faceswap\tools.py alignments -j manual -a D:/pythondf/python-3.6.3.amd64/faceswap/imgA/alignments.json -fr D:/pythondf/python-3.6.3.amd64/faceswap/imgA -dm
it works now! Thank you!
command: python D:\pythondf\python-3.6.3.amd64\faceswap\tools.py alignments -j manual -a D:/pythondf/python-3.6.3.amd64/faceswap/imgA/alignments.json -fc D:\pythondf\python-3.6.3.amd64\faceswap\data\dataset\A\face -fr D:/pythondf/python-3.6.3.amd64/faceswap/imgA -fmt json -o console
Loading... Please backup your data and/or test the tool you want to use with a smaller data set to make sure you understand how it works. Using TensorFlow backend.
[ALIGNMENT DATA] Loading alignments from D:\pythondf\python-3.6.3.amd64\faceswap\imgA\alignments.json
[FRAMES DATA] Loading file list from D:\pythondf\python-3.6.3.amd64\faceswap\imgA
[MANUAL PROCESSING] Loading Extract from Extract_Align plugin...
=============== NAVIGATION ===============
It seems to be a few windows show up in very tiny moment and disappears. Please help