BinaryNet.tf
BinaryNet.tf copied to clipboard
No module named models.BNN_cifar10
I find the good way to solve ts problem. Thank you
I find the good way to solve ts problem. Thank you
Hello, Can you please tell me how to solve this problem? I found that the error seems to occur in main.py: if not gfile.Exists(FLAGS.checkpoint_dir): # gfile.DeleteRecursively(FLAGS.checkpoint_dir) gfile.MakeDirs(FLAGS.checkpoint_dir) model_file = os.path.join('models', FLAGS.model + '.py') assert gfile.Exists(model_file), 'no model file named: ' + model_file gfile.Copy(model_file, FLAGS.checkpoint_dir + '/model.py') (IDE: Spyder)
got below error upon executing "python main.py --model BNN_cifar10 --save BNN_cifar10 --dataset cifar10 --gpu True"
Traceback (most recent call last):
File "main.py", line 240, in
I find the good way to solve ts problem. Thank you
can u plz explain how
I find the good way to solve ts problem. Thank you
can u plz explain how
I solved it by adding "__init__.py" in models. You can google "__init__.py" for more details. Hope it helps.