sniklaus / 3d-ken-burns

an implementation of 3D Ken Burns Effect from a Single Image using PyTorch
Other
1.52k stars 225 forks source link

'NoneType' object has no attribute 'shape' happens for almost every image, why? #27

Closed GuusDeKroon closed 4 years ago

GuusDeKroon commented 4 years ago

Here's an example of what errors I get when running in colab, by the way when it does work, it's very cool! Congrats!

Traceback (most recent call last): File "autozoom.py", line 65, in intWidth = numpyImage.shape[1] AttributeError: 'NoneType' object has no attribute 'shape' Traceback (most recent call last): File "autozoom.py", line 65, in intWidth = numpyImage.shape[1] AttributeError: 'NoneType' object has no attribute 'shape' Traceback (most recent call last): File "autozoom.py", line 65, in intWidth = numpyImage.shape[1] AttributeError: 'NoneType' object has no attribute 'shape'

sniklaus commented 4 years ago

Seems like an issue with your Colab setup. My guess is that the script cannot find your image, possible due to a wrong path? I am afraid that I am unable to debug your environment that I am closing this case for now since the issue isn't with the provided code. Should you end up figuring out what the issue is then I would appreciate if you shared your findings here such that others with the same problem are able to read about it. Thanks!