raghavchalapathy / oc-nn_old

Models for one class neural networks
45 stars 18 forks source link

Problem with internal variables #8

Open kefitk opened 5 years ago

kefitk commented 5 years ago

while running the code, I got the following error:


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

File "tf_OneClass_CNN_model.py", line 45, in r = tf.get_variable(name="r", dtype=tf.float32, shape=(), trainable=False) File "sklearn_OCSVM_model.py", line 8, in from tf_OneClass_CNN_model import func_get_ImageVectors File "synthetic_models.py", line 1, in

from sklearn_OCSVM_model import sklearn_OCSVM_linear,sklearn_OCSVM_rbf


The problem is that I am getting it while running both sections "Experiments: PFAM datasets" and "Experiments: Synthetic data"

Did anyone face the same problem? Do you, please, have any suggestions to fix the problem? I am waiting forward to hearing from you

raghavchalapathy commented 5 years ago

I am releasing the new code with experiments running on keras so Kindly check the new code and use the same it will be available by latest next week or so

with regards raghav

On Thu, Dec 13, 2018 at 6:37 PM kefitk notifications@github.com wrote:

while running the code, I got the following error:

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

File "tf_OneClass_CNN_model.py", line 45, in r = tf.get_variable(name="r", dtype=tf.float32, shape=(), trainable=False) File "sklearn_OCSVM_model.py", line 8, in from tf_OneClass_CNN_model import func_get_ImageVectors File "synthetic_models.py", line 1, in

from sklearn_OCSVM_model import sklearn_OCSVM_linear,sklearn_OCSVM_rbf


The problem is that I am getting it while running both sections "Experiments: PFAM datasets" and "Experiments: Synthetic data"

Did anyone faced the same problem? Do you, please, have any suggestions to fix the problem? I am waiting forward to hearing from you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/raghavchalapathy/oc-nn/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AGBJTDpAwh52eg6h2gZn_Y-t4RXbtpjxks5u4gOygaJpZM4ZRFSk .