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

Generate pb file command is error #12

Open
fmbao opened this issue Apr 28, 2020 · 3 comments
Open

Generate pb file command is error #12

fmbao opened this issue Apr 28, 2020 · 3 comments

Comments

@fmbao
Copy link

fmbao commented Apr 28, 2020

correct is

python freeze.py --num_classes 12 --checkpoint_path work/v1/TCResNet8Model-1.0/mfcc_40_3010_0.001_mom_l1/TCResNet8Model-30000 --output_name softmax  --preprocess_method no_preprocessing --height 49 --width 40 --channels 1 TCResNet8Model --width_multiplier 1.0 
@fmbao
Copy link
Author

fmbao commented Apr 28, 2020

meanwhile ,convert_to_tflite command should be

tflite_convert --graph_def_file=work/v1/TCResNet8Model-1.0/mfcc_40_3010_0.001_mom_l1/TCResNet8Model-30000.pb --input_format=TENSORFLOW_GRAPHDEF --output_format=TFLITE --output_file=work/v1/TCResNet8Model-1.0/mfcc_40_3010_0.001_mom_l1/TCResNet8Model-30000.tflite --inference_type=FLOAT --inference_input_type=FLOAT --input_arrays=input --output_arrays=softmax --allow_custom_ops

@tubinwei
Copy link

thank you

@yifan-scyyy6
Copy link

Thanks a lot

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