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

Help exporting to saved model #21

Open
bho01 opened this issue May 23, 2019 · 1 comment
Open

Help exporting to saved model #21

bho01 opened this issue May 23, 2019 · 1 comment

Comments

@bho01
Copy link

bho01 commented May 23, 2019

I am new to tensorflow and I need help exporting this model as a savedmodel to use it in tensorflowJS.

I used this command:

python export_savedmodel.py

and it returns this:

usage: export_savedmodel.py [-h] -i {tensor,base64_jpeg} [-v EXPORT_VERSION]
-m MODEL_WEIGHTS
target
export_savedmodel.py: error: too few arguments

but I have no clue what to fill the arguments with.

@Valentine23v
Copy link

Valentine23v commented Aug 16, 2019

I just export model in Windows ,-m is the npy path, -i you should use tensor or base64_jpeg
try this command
python export_savedmodel.py -m D:\PyProject\tensorflow-open_nsfw-master\data\open_nsfw-weights.npy -i tensor D:\tfout
if you use linux ,you can try
python export_savedmodel.py -m ./data/open_nsfw-weights.npy -i tensor ./tfout

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