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

Error while running the code the second time #15

Open
NainaSaid opened this issue Jan 30, 2019 · 1 comment
Open

Error while running the code the second time #15

NainaSaid opened this issue Jan 30, 2019 · 1 comment

Comments

@NainaSaid
Copy link

Dear all

I first successfully ran the code and saved the extracted features to .H5 file. But now when i am trying to run it again, i am the getting the following error

Variable resnet_v1_101/conv1/weights already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:

File "c:\users\nainasaid\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\framework\ops.py", line 1719, in init
self._traceback = tf_stack.extract_stack()
File "c:\users\nainasaid\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\framework\ops.py", line 3158, in create_op
op_def=op_def)
File "c:\users\nainasaid\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\util\deprecation.py", line 454, in new_func
return func(*args, **kwargs)

Can someone please tell me how to fix this issue?

@AzizCode92
Copy link

Maybe use tf.reset_default_graph() ?

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

2 participants