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

Did you know how to train the model on the custom datasets? #1

Open
kangkang59812 opened this issue Nov 10, 2019 · 2 comments
Open

Comments

@kangkang59812
Copy link

I want to use the model to segment food. And I just need a picture to segment.

@toniz
Copy link
Owner

toniz commented Jan 2, 2020

Use this model From model zoo:

mobilenetv2_dm05_coco_voc_trainaug
https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md

Convert tflite like this:
convert2pb.sh:

xwj@master01:/data/xwj/segmentation/train$ cat convert2pb.sh
python ../../models/research/deeplab/export_model.py
--checkpoint_path=log_all/model.ckpt-100000
--depth_multiplier=0.5
--quantize_delay_step=0
--export_path=tflite_all/frozen_inference_graph.pb

conver2tflite.sh:

xwj@master01:/data/xwj/segmentation/train$ cat conver2tflite.sh
tflite_convert
--graph_def_file=tflite_all/frozen_inference_graph.pb
--output_file=tflite_all/frozen_inference_graph.tflite
--output_format=TFLITE
--input_shape=1,513,513,3
--input_arrays="MobilenetV2/MobilenetV2/input"
--change_concat_input_ranges=true
--output_arrays="ArgMax"

@hemant-novotrax
Copy link

How to colored or remove background?

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