Closed farzadmohseni-ir closed 3 years ago
When I run the code
Explain how to fix the error ...
Thank
Please download from APDrawingGAN as follows:
https://github.com/yiranran/APDrawingGAN
and copy the code to APDrawingGAN folder.
We downloaded the package and extracted it in the mentioned folder :
&
The following error has occurred Please help ...
ModuleNotFoundError: No module named 'APDrawingGAN.data.face_landmark'
as the error mentioned that it did not find 'APDrawingGAN.data.face_landmark'. I think you should grab the face_landmark.py which currently under your /APDrawingGAN folder into the /APDrawingGAN/data. Hope this can help.
When I run the code Explain how to fix the error ... Thank
Please download from APDrawingGAN as follows:
https://github.com/yiranran/APDrawingGAN
and copy the code to APDrawingGAN folder.
as the error mentioned that it did not find 'APDrawingGAN.data.face_landmark'. I think you should grab the face_landmark.py which currently under your /APDrawingGAN folder into the /APDrawingGAN/data. Hope this can help.
Error 1 ) ModuleNotFoundError: No module named 'APDrawingGAN.options'
Corrected by : Download https://github.com/yiranran/APDrawingGAN & extracted it in the ./APDrawingGAN folder
Error 2 ) ModuleNotFoundError: No module named 'APDrawingGAN.data.face_landmark'
Corrected by : Move file location _facelandmark.py from ./APDrawingGAN folder to ./APDrawingGAN/data folder
Error 3 ) ImportError: cannot import name 'Ui_Form' from 'ui.ui' (C:\Users\farza\AppData\Local\Programs\Python\Python38\lib\site-packages\ui\ui.py)
Now how do I fix this error ⬆? Help fix the error Thanks
It seems that we have some missing files on our remote repo. We will make a further update ASAP. Thanks for your patient!
We had pushed a new version. Hope it fixed.
When I run the code Explain how to fix the error ... Thank
Please download from APDrawingGAN as follows: https://github.com/yiranran/APDrawingGAN and copy the code to APDrawingGAN folder.
as the error mentioned that it did not find 'APDrawingGAN.data.face_landmark'. I think you should grab the face_landmark.py which currently under your /APDrawingGAN folder into the /APDrawingGAN/data. Hope this can help.
It is discussed in this issue :
Error 1 ) ModuleNotFoundError: No module named 'APDrawingGAN.options'
Corrected by : Download https://github.com/yiranran/APDrawingGAN & extracted it in the ./APDrawingGAN folder
Error 2 ) ModuleNotFoundError: No module named 'APDrawingGAN.data.face_landmark'
Corrected by : Move file location _facelandmark.py from ./APDrawingGAN folder to ./APDrawingGAN/data folder
Error 3 ) ImportError: cannot import name 'Ui_Form' from 'ui.ui' (C:\Users\farza\AppData\Local\Programs\Python\Python38\lib\site-packages\ui\ui.py)
Now how do I fix this error ⬆? Help fix the error Thanks
We had pushed a new version. Hope it fixed.
When I run the code Explain how to fix the error ... Thank
Please download from APDrawingGAN as follows: https://github.com/yiranran/APDrawingGAN and copy the code to APDrawingGAN folder.
as the error mentioned that it did not find 'APDrawingGAN.data.face_landmark'. I think you should grab the face_landmark.py which currently under your /APDrawingGAN folder into the /APDrawingGAN/data. Hope this can help.
It is discussed in this issue :
Error 1 ) ModuleNotFoundError: No module named 'APDrawingGAN.options' Corrected by : Download https://github.com/yiranran/APDrawingGAN & extracted it in the ./APDrawingGAN folder Error 2 ) ModuleNotFoundError: No module named 'APDrawingGAN.data.face_landmark' Corrected by : Move file location _facelandmark.py from ./APDrawingGAN folder to ./APDrawingGAN/data folder Error 3 ) ImportError: cannot import name 'Ui_Form' from 'ui.ui' (C:\Users\farza\AppData\Local\Programs\Python\Python38\lib\site-packages\ui\ui.py) Now how do I fix this error ⬆? Help fix the error Thanks
New Error ) TypeError: exceptions must derive from BaseException
Is it possible to connect to my system with AnyDesk software ( This application is for desktop control of people from remote places ) and teach me the run of this project ? I have all the necessary libraries and directories in my system . Please set a time for me to give you the address of my AnyDesk to teach you how to run this project . Is it possible ?
I have done some search on your new error. It seems that the python version does matter. We ran our project on python3.6 basically. I think it's better to rebuild a conda environment with python3.6 and run on it.
I have done some search on your new error. It seems that the python version does matter. We ran our project on python3.6 basically. I think it's better to rebuild a conda environment with python3.6 and run on it.
I Run the project with Anaconda But the following error occurs and cannot be fixed :
ModuleNotFoundError: No module named 'face_recognition'
&
I installed it from this link
pip install face-recognition
If possible, send me your email so that I can give you my AnyDesk ID to connect to my system and run the project , Please .
Thanks
Recorded video file of running all the steps Click Link
1 ) In the first stage run with Anaconda :
cd sse
sse.exe "-i index_file -v vocabulary -f filelist -n 8"
call conda activate py36df
python demo.py
Error :
ImportError: numpy.core.multiarray failed to import Traceback (most recent call last): File "demo.py", line 3, in
import cv2 File "C:\Users\farza.conda\envs\py36df\lib\site-packages\cv2__init__.py", line 5, in from .cv2 import * ImportError: numpy.core.multiarray failed to import
2 ) In the second stage run with VSCode :
cd sse
sse.exe "-i index_file -v vocabulary -f filelist -n 8"
Error :
sse.exe : The term 'sse.exe' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling
of the name, or if a path was included, verify that the path is
correct and try again. At line:1 char:1
- sse.exe "-i index_file -v vocabulary -f filelist -n 8"
+ CategoryInfo : ObjectNotFound: (sse.exe:String) [], Com mandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Suggestion [3,General]: The command sse.exe was not found, but does exist in the current location. Windows PowerShell does > not load commands from the current location by default. If you trust this command, instead type: ".\sse.exe". See "get-help > > about_Command_Precedence" for more details.
+
python demo.py
Error :
Load sse list with length 518 base-img imgdata/CelebAMask-HQ\16.jpg drawOriSkin= True QPixmap::fromImage: QPixmap cannot be created without a QGuiApplication QPixmap: Must construct a QGuiApplication before a QPixmap
Help me get the Run Code . Thanks
When I run the code
Explain how to fix the error ...
Thank