pytorch-neural-enhance
pytorch-neural-enhance copied to clipboard
'tuple' object is not callable
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.
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
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.