Guanghan / ROLO

ROLO is short for Recurrent YOLO, aimed at simultaneous object detection and tracking
Apache License 2.0
879 stars 278 forks source link

ImportError: No module named tf.models.rnn #20

Closed MansourTrabelsi closed 7 years ago

MansourTrabelsi commented 7 years ago

running this first command " ./experiments/testing/ROLO_network_test_all.py " gave me this error : Traceback (most recent call last): File "./../experiments/testing/ROLO_network_test_all.py", line 30, in from tf.models.rnn import rnn, rnn_cell ImportError: No module named tf.models.rnn

Vivianyzw commented 7 years ago

It is the problem of tensorflow version. You can change the "from tf.models.rnn import rnn, rnn_cell" into " from tensorflow.contrib import rnn, from tensorflow.python.ops.nn import rnn_cell". Coz the module rnn and cell_rnn are put into the different positions in version 1.0 or above.

MansourTrabelsi commented 7 years ago

Thank you a lot @Vivianyzw

groot-1313 commented 6 years ago

Hi,

@Vivianyzw I tried what you mentioned, but now I face the following error:

outputs, state = rnn(cell, [_X[step]], state) TypeError: 'module' object is not callable