pytorch-neural-enhance icon indicating copy to clipboard operation
pytorch-neural-enhance copied to clipboard

'tuple' object is not callable

Open datduong opened this issue 4 years ago • 2 comments

Hi, I want to run a test case, my command is

python evaluations.py --model_type unet --image_path /data/duongdb/neural_enhance/DebugImagesInput/TestLowQualityImage.jpg --final_dir /data/duongdb/neural_enhance/DebugImagesOutput

I see this error.

Traceback (most recent call last): File "evaluations.py", line 62, in <module> if im.size()[2] > im.size()[1]: TypeError: 'tuple' object is not callable

Is this python version problem? Or is my input incorrect?

Thanks.

datduong avatar Sep 14 '20 22:09 datduong

Hello, As far as I remember, I have never seen this error message. Are you running the same module versions that we included in the requirements.txt file?

Pierluca

proceduralia avatar Sep 15 '20 14:09 proceduralia

I am using my own recent anaconda and pytorch. I manually installed all the libraries required. I found out that using im.size[0] and im.size[1] returns the height and width. img.size() isn't valid anymore. This can just be the problem with different version of read-image function.

datduong avatar Sep 15 '20 16:09 datduong