Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bigbigrabbit opened this issue Apr 11, 2019 · 0 comments

Comments

@bigbigrabbit
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant