Skip to content

Commit

Permalink
rollback rollback rollback, rollback to where we were
Browse files Browse the repository at this point in the history
  • Loading branch information
bourdakos1 committed Jan 11, 2020
1 parent ab3a037 commit 19d4968
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
2 changes: 1 addition & 1 deletion cacli/cmd/train.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ func init() {
trainCmd.Flags().String("script", "", "Custom training script.zip")

trainCmd.Flags().String("framework", "tensorflow", "keras, pytorch, caffe")
trainCmd.Flags().String("frameworkv", "1.14", "Framework version")
trainCmd.Flags().String("frameworkv", "1.12", "Framework version")
trainCmd.Flags().String("pythonv", "3.6", "Python version")
}
16 changes: 8 additions & 8 deletions trainer/src/convert/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ def infer_model_structure():
print(e)
print("Unable to convert to TensorFlow Lite")

# try:
# if args.tfjs:
# from convert.convert_to_tfjs import convert_to_tfjs
# output_names = model_structure['output_names']
# convert_to_tfjs(args.exported_graph_path, output_names, args.tfjs_path)
# except Exception as e:
# print(e)
# print("Unable to convert to TensorFlow.js")
try:
if args.tfjs:
from convert.convert_to_tfjs import convert_to_tfjs
output_names = model_structure['output_names']
convert_to_tfjs(args.exported_graph_path, output_names, args.tfjs_path)
except Exception as e:
print(e)
print("Unable to convert to TensorFlow.js")
11 changes: 1 addition & 10 deletions trainer/src/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,4 @@ python -m convert.convert --tfjs --coreml --tflite \
--tfjs-path=${RESULT_DIR}/model_web \
--mlmodel-path=${RESULT_DIR}/model_ios \
--tflite-path=${RESULT_DIR}/model_android \
--exported-graph-path=$OUTPUT_DIRECTORY

tensorflowjs_converter \
--input_format=tf_frozen_model \
--output_format=tfjs_graph_model \
--output_node_names='Postprocessor/ExpandDims_1,Postprocessor/Slice' \
--quantization_bytes=1 \
--skip_op_check \
$OUTPUT_DIRECTORY/frozen_inference_graph.pb \
/model_web
--exported-graph-path=$OUTPUT_DIRECTORY

0 comments on commit 19d4968

Please sign in to comment.