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

frozen graph convert error #39

Open
varun-tangoit opened this issue Dec 21, 2018 · 4 comments
Open

frozen graph convert error #39

varun-tangoit opened this issue Dec 21, 2018 · 4 comments

Comments

@varun-tangoit
Copy link

varun-tangoit commented Dec 21, 2018

Hey Hi,

Im running some sample tf-trt, i have been successfully build and compiled good, when i try to run;
python scripts/models_to_frozen_graphs.py
i got some import error, but i have downloaded all models from base source, is there anything i missed;

Traceback (most recent call last):
File "scripts/models_to_frozen_graphs.py", line 12, in
import slim.nets as nets
ImportError: No module named 'slim.nets'

Please give me some suggestion to resolve this issue, Thanks in advance

@ghost
Copy link

ghost commented Dec 21, 2018

Hi varun-tangoit,

Thanks for reaching out.

It looks like the script can't find the third party 'slim' package. Did you clone the repository with the --recursive flag set? If not, you can just type

git submodule update --init

from inside the project.

Best,
John

@varun-tangoit
Copy link
Author

Thanks, Join, I did all option but i cant able to resolve this issue. And i follow same as the steps mentioned on the below link;

#2

Please give me some suggestion;

@ghost
Copy link

ghost commented Dec 22, 2018

From the root directory of a fresh git clone (with --recursive), can you try the following

From the terminal:

python

From within the python interpreter:

import sys
sys.path.append('third_party/models/research')
import slim.nets

If that succeeds, then calling

python scripts/models_to_frozen_graphs.py

should also succeed (provided you followed installation steps).

Let me know,
John

@liaoweiguo
Copy link

seems you have to switch to python2

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

2 participants