nilboy / tensorflow-yolo

tensorflow implementation of 'YOLO : Real-Time Object Detection'(train and test)
774 stars 312 forks source link

An error occurred in "./yolo/net/net.py" in Branch "python 3" #12

Closed Liang-yc closed 7 years ago

Liang-yc commented 7 years ago

Hi, I tried to run this code with Branch "python 3". Howerver, as I have used the tensorflow ver1.0, the error "module 'tensorflow' has no attribute 'mul'" occurred in this file("./yolo/net/net.py"); qq 20170329144136 then I replaced "tf.mul" with "tf.matmul", another error "ValueError: Shape must be rank 2 but is rank 0 for 'conv1/weight_loss' Mul'.... " occurred. As I am not good at python programming, I cannot put it right. Noticing that you are still maintaining this project in Branch "python 2.7", so, can you help me solve this problem?(I ran this project with W7 x64, the python version is 3.5.2)

nilboy commented 7 years ago

you should use 'tf.multiply' to replace 'tf.mul'

Liang-yc commented 7 years ago

Thanks for your reply. I have replaced it and other functions which have been discarded in Tensorflow 1.0(the files which need to be modified are in ./yolo/net folder). All in all, it seems that it can work now . Thank you.