Running examples/policy.py the algorithm uses your perception/image.py file but the coordinates in the crop function are float values so the system complains. All it needs is a cast to int for the 4 values like so:
and it will work. I managed to run the gqcnn code in Ubuntu 14.04 and when I switched to Ubuntu 16.04 it was giving me this error. I believe I had the same libraries installed so even though I am not sure I think the problem has to do with the OS version. Adding this cast shouldn't break the code for Ubuntu 14.04.
Thanks! I just pushed this fix to master. Apologies for the error - it's almost certainly because of a different in the version of either PIL or numpy on 16.04.
Running examples/policy.py the algorithm uses your perception/image.py file but the coordinates in the crop function are float values so the system complains. All it needs is a cast to int for the 4 values like so:
and it will work. I managed to run the gqcnn code in Ubuntu 14.04 and when I switched to Ubuntu 16.04 it was giving me this error. I believe I had the same libraries installed so even though I am not sure I think the problem has to do with the OS version. Adding this cast shouldn't break the code for Ubuntu 14.04.