1 Star 0 Fork 0

Kenny小狼 / bash-shell-to-bat-converter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
convert-model.sh 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
Daniel Schreiber 提交于 2019-10-21 16:44 . minimal refactoring
#!/usr/bin/bash
set -e
OBJECT_DETECTION_PATH='C:\devsbb\projekte\\tf-models\\research'
PROJECT_PATH=.
CKPT_NO=16579
ASDF=/c/my/paths
TEST=$ASDF
echo ">>>>>> Cleaning saved model... <<<<<<"
rm -rf ${PROJECT_PATH}/object_detection/saved_model
echo ">>>>>> Exporting saved model... <<<<<<"
python3 ${OBJECT_DETECTION_PATH}/object_detection/export_inference_graph.py \
--input_type=image_tensor \
--pipeline_config_path=${PROJECT_PATH}/object_detection/faster_rcnn_inception_v2_coco_2018_01_28/pipeline.config \
--trained_checkpoint_prefix=${PROJECT_PATH}/object_detection/training/model.ckpt-${CKPT_NO} \
--output_directory=${PROJECT_PATH}/object_detection/saved_model
echo ">>>>>> Converting saved model to tfjs... <<<<<<"
# tensorflowjs_converter 0.8.6:
tensorflowjs_converter \
--input_format=tf_saved_model \
--output_format=tensorflowjs\
--saved_model_tags=serve \
--output_json=true \
--output_node_names='detection_boxes,detection_classes,detection_features,detection_multiclass_scores,detection_scores,num_detections,raw_detection_boxes,raw_detection_scores' \
${PROJECT_PATH}/object_detection/saved_model/saved_model \
${PROJECT_PATH}/src/assets/web_model
1
https://gitee.com/kennylee/bash-shell-to-bat-converter.git
git@gitee.com:kennylee/bash-shell-to-bat-converter.git
kennylee
bash-shell-to-bat-converter
bash-shell-to-bat-converter
master

搜索帮助