在运行验证码(cnn)的识别代码时报错:ValueError: Variable wc1 already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at

原因:重复使用变量wc1

解决方案:在代码前面加上以下一行代码

tf.reset_default_graph()