Skip to content

ValueError:Variable conv does not exist #115

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

Open
ericliyanghui opened this issue Oct 19, 2019 · 0 comments
Open

ValueError:Variable conv does not exist #115

ericliyanghui opened this issue Oct 19, 2019 · 0 comments

Comments

@ericliyanghui
Copy link

I have the weird error. When I run demo.ipynb with ipython notebook, it is ok. But When I run on terminal it has the following problem:

053] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 3371 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1050, pci bus id: 0000:01:00.0, compute capability: 6.1) Error: /home/lxiao/icnet/ICNet-tensorflow/model/cityscapes/icnet_cityscapes_trainval_90k.npy Internal Server Error: /process_picture/ Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python3.5/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/home/lxiao/DjangoImageSegmentation/DjangoSegment/DjangoSegment_Service/views.py", line 30, in process_picture processPicSegment.create_base() File "/home/lxiao/icnet/ICNet-tensorflow/processPicSegment.py", line 48, in create_base net.restore(cfg.model_weight) File "/home/lxiao/icnet/ICNet-tensorflow/network.py", line 78, in restore self.load_npy(data_path, self.sess) File "/home/lxiao/icnet/ICNet-tensorflow/network.py", line 110, in load_npy var = tf.get_variable(param_name) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/variable_scope.py", line 1317, in get_variable constraint=constraint) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/variable_scope.py", line 1079, in get_variable constraint=constraint) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/variable_scope.py", line 425, in get_variable constraint=constraint) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/variable_scope.py", line 394, in _true_getter use_resource=use_resource, constraint=constraint) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/variable_scope.py", line 751, in _get_single_variable "reuse=tf.AUTO_REUSE in VarScope?" % name) ValueError: Variable conv5_1_1x1_proj/biases does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=tf.AUTO_REUSE in VarScope?

Help Me!

I use Tensroflwo-gpu 1.8.0

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