shasph / dualFace

dualFace: Two-Stage Drawing Guidance for Freehand Portrait Sketching (CVMJ)
MIT License
53 stars 16 forks source link

ModuleNotFoundError: No module named 'APDrawingGAN.options' #1

Closed farzadmohseni-ir closed 3 years ago

farzadmohseni-ir commented 3 years ago

When I run the code

image

Explain how to fix the error ...

Thank

Huang-Zhengyu commented 3 years ago

When I run the code

image

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.

farzadmohseni-ir commented 3 years ago

We downloaded the package and extracted it in the mentioned folder :

image

image

&

The following error has occurred Please help ...

ModuleNotFoundError: No module named 'APDrawingGAN.data.face_landmark'

image

puckikk1202 commented 3 years ago

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.

farzadmohseni-ir commented 3 years ago

When I run the code image 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

image

puckikk1202 commented 3 years ago

It seems that we have some missing files on our remote repo. We will make a further update ASAP. Thanks for your patient!

puckikk1202 commented 3 years ago

We had pushed a new version. Hope it fixed.

When I run the code image 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

image

farzadmohseni-ir commented 3 years ago

We had pushed a new version. Hope it fixed.

When I run the code image 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 image

Thank you very much for your guidance and help . But again the following error occurs .

New Error ) TypeError: exceptions must derive from BaseException

https://user-images.githubusercontent.com/57835828/119436105-d08e5200-bd30-11eb-8e80-ca5a4a0007c4.mp4

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 ?

puckikk1202 commented 3 years ago

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.

farzadmohseni-ir commented 3 years ago

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 :

Click : Error Link

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

farzadmohseni-ir commented 3 years ago

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

image

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

image

Help me get the Run Code . Thanks