endernewton / tf-faster-rcnn

Tensorflow Faster RCNN for Object Detection
https://arxiv.org/pdf/1702.02138.pdf
MIT License
3.65k stars 1.57k forks source link

Branch 1.0 cannot import name resnet_v1_block #205

Closed ChengZY closed 7 years ago

ChengZY commented 7 years ago

Hi, guys, I have a problem. I am using unbuntu14.0, python 2.7 tensorflow 1.0. When I try to train my own model, its hows from tensorflow.contrib.slim.python.slim.nets.resnet_v1 import resnet_v1_block ImportError: cannot import name resnet_v1_block I have down loaded branch r1.0, why I still have this problem Could you give me some advice?

ChengZY commented 7 years ago

./experiments/scripts/train_faster_rcnn.sh 0 pascal_voc vgg16

JRCondeNast commented 7 years ago

I tested with ubuntu 16.04 and python 2.7 and tensorflow-gpu=1.0.1(installed by conda) in conda environment. By open python and type the following command: '''Shell (tensorflow_1_0) jiwen@bigo:~$ python Python 2.7.13 |Continuum Analytics, Inc.| (default, Dec 20 2016, 23:09:15) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://anaconda.org

import tensorflow from tensorflow.contrib.slim.python.slim.nets.resnet_v1 import resnet_v1_block

''' It works. Not a completely same environment as yours but hope this can give you some alternatives.

endernewton commented 7 years ago

close as of now. thanks @JRCondeNast !