TF_FeatureExtraction icon indicating copy to clipboard operation
TF_FeatureExtraction copied to clipboard

Error while running the code the second time

Open NainaSaid opened this issue 6 years ago • 1 comments

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?

NainaSaid avatar Jan 30 '19 07:01 NainaSaid

Maybe use tf.reset_default_graph() ?

AzizCode92 avatar Apr 26 '19 11:04 AzizCode92