torrvision / siamfc-tf

SiamFC tracking in TensorFlow.
567 stars 189 forks source link

AttributeError: '_VariableStore' object has no attribute '_get_single_variable' #44

Open bigbigrabbit opened 5 years ago

bigbigrabbit commented 5 years ago

I encountered this error while running, I don't know how to solve it.

runfile('E:/0目标跟踪/siamfc-tf-master/run_tracker_evaluation.py', wdir='E:/0目标跟踪/siamfc-tf-master') C:\ProgramData\Anaconda3\lib\site-packages\h5py__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters Using Tensorflow 1.13.1 WARNING:tensorflow:From C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\control_flow_ops.py:3632: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version. Instructions for updating: Colocations handled automatically by placer.

Layer 1 CONV: setting br_conv1f br_conv1b CONV: stride 2, filter-group False BNORM: setting br_bn1b br_bn1m br_bn1x Traceback (most recent call last):

File "", line 1, in runfile('E:/0目标跟踪/siamfc-tf-master/run_tracker_evaluation.py', wdir='E:/0目标跟踪/siamfc-tf-master')

File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile execfile(filename, namespace)

File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "E:/0目标跟踪/siamfc-tf-master/run_tracker_evaluation.py", line 174, in sys.exit(main())

File "E:/0目标跟踪/siamfc-tf-master/run_tracker_evaluation.py", line 24, in main filename, image, templates_z, scores = siam.build_tracking_graph(final_score_sz, design, env)

File "E:\0目标跟踪\siamfc-tf-master\src\siamese.py", line 58, in build_tracking_graph template_z, templates_x, p_names_list, p_val_list = _create_siamese(os.path.join(env.root_pretrained,design.net), x_crops, z_crops)

File "E:\0目标跟踪\siamfc-tf-master\src\siamese.py", line 102, in _create_siamese scope='conv'+str(i+1), reuse=False)

File "E:\0目标跟踪\siamfc-tf-master\src\convolutional.py", line 10, in set_convolutional W = tf.get_variable("W", W.shape, trainable=False, initializer=tf.constant_initializer(W))

File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 1480, in get_variable aggregation=aggregation)

File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 1221, in get_variable aggregation=aggregation)

File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 547, in get_variable aggregation=aggregation)

File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 485, in _true_getter return self._get_single_variable(

AttributeError: '_VariableStore' object has no attribute '_get_single_variable'