DeepNude_NoWatermark_withModel icon indicating copy to clipboard operation
DeepNude_NoWatermark_withModel copied to clipboard

AttributeError: 'NoneType' object has no attribute 'shape'

Open DebbySaurus opened this issue 2 years ago • 4 comments

Processing input.png Traceback (most recent call last): File "I:\DNs\Deepnude\main.py", line 56, in main(inputpath, outputpath, show) File "I:\DNs\Deepnude\main.py", line 35, in main watermark = deep_nude_process(inputpath) File "I:\DNs\Deepnude\main.py", line 43, in deep_nude_process h = dress.shape[0] AttributeError: 'NoneType' object has no attribute 'shape'

Am I doing something wrong or is there an error in the script?

DebbySaurus avatar Nov 12 '21 23:11 DebbySaurus

how did you solve this problem? I have same problem

kkkmmmmm avatar Mar 14 '22 15:03 kkkmmmmm

how did you solve this problem? I have same problem

I didn't, just gave up on it.

DebbySaurus avatar Mar 14 '22 15:03 DebbySaurus

I think i just solved... I tried to use an input of 2000x3000 pix, and had the same error, "no shape". So I used photopea.com, create a new file with 512x512pix and add the image into it. Then run the program and worked. Also saved the image as png.

Mmauortega avatar Mar 23 '22 16:03 Mmauortega

your file path have problem

guanw666 avatar Jul 23 '22 12:07 guanw666