keras-rcnn
keras-rcnn copied to clipboard
Import syntax error with losses/_rpn.py
I was playing around with keras-rcnn using Ubuntu and Python 3.4. From my Python shell:
$ python Python 3.4.3 (default, Nov 17 2016, 01:08:31) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from keras_rcnn.models import RCNN Using TensorFlow backend. Traceback (most recent call last): File "", line 1, in File "/home/adrian/keras-rcnn/keras_rcnn/models/__init__.py", line 1, in from ._rcnn import RCNN File "/home/adrian/keras-rcnn/keras_rcnn/models/_rcnn.py", line 10, in import keras_rcnn.layers File "/home/adrian/keras-rcnn/keras_rcnn/layers/__init__.py", line 1, in from .losses import ( File "/home/adrian/keras-rcnn/keras_rcnn/layers/losses/__init__.py", line 7, in from ._rpn import ( File "/home/adrian/keras-rcnn/keras_rcnn/layers/losses/_rpn.py", line 86 return {**super(RPN, self).get_config(), **configuration} ^ SyntaxError: invalid syntax
Since this is a syntax error perhaps I suppose I should be testing with a different version of Python?
Hmm not sure if 3.4 works. We use 3.6
Thanks, I will give that a try.
@jhung0 3.5.3 works fine.
I got the same error, my system is ubuntu14.04 and python 2.7.6
@chituma110 With new commits, It needs at least python 3.6 to run.