Open RiweiChen opened 9 years ago
if the first line was successful, then you should have a file called "adiencealign-0.1.tar.gz" under a subdir called "dist" in the adience_align folder.
Please check the output of the "python setup.py sdist" and see it successfully created the package.
You can try sending me the printout of this line, if there is an error and I will try to help.
NOTE: I just pushed a correction to an error into the repository, so I recommend restarting the process, pullling the new version.
Eran.
On Tue, Dec 23, 2014 at 8:32 AM, Riwei Chen notifications@github.com wrote:
Hi,
I want to use you code to alignment my own face image, however I face the problem of ImportError , I follow the install
python setup.py sdist sudo pip install dist/adience-.tar.gz
I search the file system but I can not find a "adience" module . so can you kindly tell me what the problem it maybe ?
Thanks.
Chen
— Reply to this email directly or view it on GitHub https://github.com/eranid/adience_align/issues/1.
Hi, @eranid I have look through the source code and find something error.
Firstly, I redownload the code today,and run "python setup.py sdist", it have file 'adiencealign-0.1.tar.gz' under the dist path. so I think this step is correct.
Secondly, I run "sudo pip install dist/adiencealign-0.1.tar.gz" it also result well. the output of the terminal is ‘Successfully installed adiencealign’ ,so I think this step is also correct.
Finally, When I run the ' test_pipeline.py ' it also runnint well the first time, But when I run the 'clear_test.sh' and rerun the 'test_pipeline.py', it make a error:'AttributeError: 'cv2.CascadeClassifier' object has no attribute 'detectMultiScaleWithScores'', I look through the Opencv documents and find that it actually doesn't have a function called 'detectMultiScaleWithScores',the most similar function is 'detectMultiScale' of 'cv2.CascadeClassifier'.(In my computer,the version of Opencv is 2.4.9 and OS is Ubuntu 14.04 LTS) so I modify it myself(detectMultiScaleWithScores-->detectMultiScale in the line 60 of cascade_detector.py ),but it result another error at line 99: xp = face[0][0] ,because I find the face's shape is (4,) , so face[0][0] must out of the border, (in the documents of opencv I found that the return of detectMultiScale is only the vector of coordinates but not score of the detection ), I don't know what to do next, if you have time ,can you tell me how to fix it next?
Another error I meet is the code in line 10: 'from adience.common.utils.fidu import draw_fidu ' in file 'test_landmarks_detector.py', I modify it by mysel(from adience.common.utils.fidu import draw_fidu-->from adiencealign.common.landmarks import draw_fidu).
Thanks .
Chen
HI ,I got such error, when I trying to run test_pipeline.py, can you help us?
slu@kui-virtual-machine:~/facrec/adience_align/adiencealign/tests$ python test_pipeline.py
Traceback (most recent call last):
File "test_pipeline.py", line 8, in
Hi,
I want to use you code to alignment my own face image, however I face the problem of ImportError , I follow the install
python setup.py sdist sudo pip install dist/adience-.tar.gz
I search the file system but I can not find a "adience" module . so can you kindly tell me what the problem it maybe ?
Thanks.
Chen