d4nst / RotNet

https://d4nst.github.io/2017/01/12/image-orientation/
MIT License
539 stars 189 forks source link

correct_rotation.py not working #5

Closed duduRodrigues closed 6 years ago

duduRodrigues commented 6 years ago

Hi, I am trying to run your code but I keep getting these errors:

image

I am using Python 3.6.3, Cuda 8, Cudnn 6 and installed all the others dependencies using pip with exception of the MarkupSafe that was with some bugs so I compiled and installed it myself. Do you have any idea of how can I fix it? I am using the following image as input (resolution of 259 x 194) for your network:

download

d4nst commented 6 years ago

What model file are you passing to correct_rotation.py? From the error message, it looks like you are using the small model trained on the MNIST dataset (which takes input images of shape 28 x 28 x 1) instead of the ResNet50 model trained on the Google Street View dataset (which takes input images of shape 224 x 224 x 3).

duduRodrigues commented 6 years ago

It worked!! Thanks!!!!