balancap / SSD-Tensorflow

Single Shot MultiBox Detector in TensorFlow
4.11k stars 1.89k forks source link

I run the eval_ssd_network.py,got TypeError: _variable_v2_call() got an unexpected keyword argument 'collections' #327

Open Sulince opened 5 years ago

Sulince commented 5 years ago

I run the eval_ssd_network.py in VOCtest07,and got a TypeError: File "/home/sulince/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/variables.py", line 185, in call return cls._variable_v2_call(*args, **kwargs) TypeError: _variable_v2_call() got an unexpected keyword argument 'collections'

EdwinChien commented 5 years ago

It should be work if you change the code in ./tf_extended/metrics.py Line 51. "return variables.Variable" =>> "return variables.VariableV1"

cjnjuwhy commented 5 years ago

It should be work if you change the code in ./tf_extended/metrics.py Line 51. "return variables.Variable" =>> "return variables.VariableV1"

Actually, it works!

Patrickctyyx commented 5 years ago

It should be work if you change the code in ./tf_extended/metrics.py Line 51. "return variables.Variable" =>> "return variables.VariableV1"

This works for me, too! Thanks a lot.

GongliDuan commented 5 years ago

Works for me, thanks!

qinzhenyi1314 commented 5 years ago

it works for me too, thanks!

creabob commented 5 years ago

Thanks,it works

dhiyu commented 5 years ago

Thanks,it really works.

zhangk19 commented 4 years ago

thanks a lot!

1992Zz commented 4 years ago

Will you use tensorflowf 1.14?

weixinxu666 commented 4 years ago

thanks