KittiBox
KittiBox copied to clipboard
AttributeError: 'generator' object has no attribute 'next'
Hello, I'am a new to python and tensorflow.
I am trying to run the KittiBox.
However, below logs are printed when I run 'train.py''
===================================================================
Layer shape: (3, 3, 512, 512)
Layer name: conv5_3
Layer shape: (3, 3, 512, 512)
Layer name: fc6
Layer shape: [7, 7, 512, 4096]
Layer name: fc7
Layer shape: [1, 1, 4096, 4096]
Traceback (most recent call last):
File "/home/kimna/TensorflowWorkspace/KittiBox/train.py", line 82, in
Process finished with exit code 1
I think the 'generator' is written in 'kitti_input.py' -> '_load_kitti_txt' function. However I can't debug the function with Pycharm debuging tool.
What is the my problem?
Thank you
I have the same problem. Did you ever figure it out ? This is an error because the training file was written for python 2.7. In Python 3, the generator's next method is called using next(generator). There are a few other ones related to using xrange and using random.random().