Skip to content

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

@bigbigrabbit

Description

@bigbigrabbit

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions