tf-faster-rcnn
tf-faster-rcnn copied to clipboard
ImportError: cannot import name resnet_v1
hi,Is there anyone have this problem?
Traceback (most recent call last):
File "./tools/test_net.py", line 20, in
is your tf version 1.2+?
my tf version is 0.12.1 it reports that "ImportError: cannot import name resnet_v1 from tensorflow.contrib.slim.python.slim.nets" when I load test_faster_rcnn.sh i add a new PYTHONPATH environment variable where there is resnet_v1.py, but it still failed. thx
I also have this problem and my tf_version is 1.1 with GPU. Is there anyone can solve this problem? thx.
tf_version 1.2 can solve the error
+1 I have the same issue.. tf_1.2 did not work out
i think maybe you can reinstall tf with version 1.2+,i solve this problem with the approach
i find a solution under tf_0.12.1 do a little change
tf-faster-rcnn/lib/nets/resnet_v1.py LINE 15
#from tensorflow.contrib.slim.python.slim.nets import resnet_v1 import resnet_v1
it works
https://stackoverflow.com/questions/40957286/attributeerror-module-tensorflow-contrib-slim-has-no-attribute-nets This works for me on tensorflow version 1.15.