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 when run examples #13

Closed
YangBain opened this issue Jun 20, 2018 · 5 comments
Closed

Error when run examples #13

YangBain opened this issue Jun 20, 2018 · 5 comments

Comments

@YangBain
Copy link

When I run examples, I get the following error. Could you give me some suggestions? Thank you very much.

snntoolbox <./examples/models/vgg16/config> -t
Traceback (most recent call last):
File "/home/beans/anaconda3/envs/py27/bin/snntoolbox", line 11, in
sys.exit(main())
File "/home/beans/snn_toolbox/snntoolbox/bin/run.py", line 38, in main
filepath = os.path.abspath(args.config_filepath)
File "/home/beans/anaconda3/envs/py27/lib/python3.6/posixpath.py", line 371, in abspath
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType

@rbodo
Copy link
Contributor

rbodo commented Jun 20, 2018

Hi YangBain, please post the command you use to run the example. It seems you are not specifying a path to the config file.

@YangBain
Copy link
Author

YangBain commented Jun 21, 2018 via email

@rbodo
Copy link
Contributor

rbodo commented Jun 21, 2018

Please try without the <>.

By the way, the VGG example will not work unless you have a VGG model in Keras yourself. We could not upload our VGG model onto the repository for memory reasons. I suggest you try the LeNet examples first.

@ljxgit
Copy link

ljxgit commented Jul 5, 2018

I run the LeNet example in Keras, the command is "snntoolbox -t ./examples/models/lenet5/keras/config", and there is an error, "AttributeError: 'Conv2D' object has no attribute '_inbound_nodes'"
Could you give me some suggestions? Thank you very much! @rbodo

@rbodo
Copy link
Contributor

rbodo commented Jul 5, 2018

Duplicate of #14

@rbodo rbodo marked this as a duplicate of #14 Jul 5, 2018
@rbodo rbodo closed this as completed Jul 5, 2018
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

3 participants