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

Debug mode error #49

Open
tzuyun-huang-ss opened this issue Jun 30, 2022 · 0 comments
Open

Debug mode error #49

tzuyun-huang-ss opened this issue Jun 30, 2022 · 0 comments

Comments

@tzuyun-huang-ss
Copy link

tzuyun-huang-ss commented Jun 30, 2022

I use python3 -m keras2ncnn -i model.h5 -o ./ -d in command for debugging the output inconsistent with keras
But I got error below, and I can't find keras2ncnn.cpp in the github web.
Where should i download this file?
Thanks

Reading and parsing keras h5df file...
Start graph optimizing pass...
        Removing unused nodes...
        Removing squeeze reshape after pooling...
        Refreshing graph...
Converting keras graph to ncnn graph...
Start emitting to ncnn files.
        Emitting param...
        Emitting binary...
Running accuracy matcher...
        Initing Env...
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: virtualenv==16.7.9 in /tools/software/anaconda3-4.4.0/envs/py3.7-tzuyun/lib/python3.6/site-packages (16.7.9)
        cmake is not inside PATH, please install it first.
        Preparing File...
        Generting File...
Traceback (most recent call last):
  File "/tools/software/anaconda3/envs/py3.7-tzuyun/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/tools/software/anaconda3/envs/py3.7-tzuyun/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tools/software/anaconda3/envs/py3.7-tzuyun/lib/python3.6/site-packages/keras2ncnn/__main__.py", line 12, in <module>
    sys.exit(_main())
  File "/tools/software/anaconda3/envs/py3.7-tzuyun/lib/python3.6/site-packages/keras2ncnn/keras2ncnn.py", line 130, in main
    graph_seq)
  File "/tools/software/anaconda3/envs/py3.7-tzuyun/lib/python3.6/site-packages/keras2ncnn/keras_debugger.py", line 214, in emit_file
    'w+').write(c_payload)
FileNotFoundError: [Errno 2] No such file or directory: '.keras2ncnn_build/ncnn/benchmark/keras2ncnn.cpp'
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

1 participant