Facial_Details_Synthesis icon indicating copy to clipboard operation
Facial_Details_Synthesis copied to clipboard

AttributeError: 'Image' object has no attribute 'ndim'

Open bushiwoxixi opened this issue 5 years ago • 3 comments

Thank you for your work. I run facialDetails.py with the following error:

Traceback (most recent call last): File "facialDetails.py", line 307, in main(args) File "facialDetails.py", line 284, in main displacementMap, normalMap = predict_details(save_texture_path, args) File "facialDetails.py", line 171, in predict_details testset, areas = loadimage(image_root,args) File "facialDetails.py", line 134, in loadimage hsv = np.array(rgb2hsv(img)) File "D:\python37\lib\site-packages\skimage\color\colorconv.py", line 249, in input_is_one_pixel = rgb.ndim == 1 AttributeError: 'Image' object has no attribute 'ndim'

What is the cause of this error and how can I solve it?Thank you.

bushiwoxixi avatar Jun 27 '20 02:06 bushiwoxixi

try conda install scikit-image=0.14.2

IQ17 avatar Jul 09 '20 07:07 IQ17

try conda install scikit-image=0.14.2

Thank you ! I tried to change the version of scikit-image and the problem was solved.

bushiwoQAQ avatar Jul 09 '20 09:07 bushiwoQAQ

try conda install scikit-image=0.14.2

Thank you!

SlimeVRX avatar Jun 02 '23 15:06 SlimeVRX