Skip to content

Instantly share code, notes, and snippets.

@Kanazawanaoaki
Created December 23, 2021 10:58
Show Gist options
  • Save Kanazawanaoaki/422d80c5df5efe50b1207be845d9e886 to your computer and use it in GitHub Desktop.
Save Kanazawanaoaki/422d80c5df5efe50b1207be845d9e886 to your computer and use it in GitHub Desktop.
+ docker run --rm --privileged --userns=host --gpus all --mount type=bind,src=/home/kanazawa/20211223-195546-3000-dataset_training-9-industry-objects-train-test-in-order-300x300-rembg-w-config/learn,dst=/root/Tensorflow/demo/models_test object_detection bash docker_train.sh
generate_record.sh: line 1: 22 Illegal instruction (core dumped) python3 generate_tfrecord.py -x ./images/train -l ./annotations/label_map.pbtxt -o ./annotations/train.record
generate_record.sh: line 3: 42 Illegal instruction (core dumped) python3 generate_tfrecord.py -x ./images/test -l ./annotations/label_map.pbtxt -o ./annotations/test.record
docker_train.sh: line 10: 59 Illegal instruction (core dumped) python3 model_main-fine-tune.py --model_dir=models/my_ssd --pipeline_config_path=models/my_ssd/pipeline.config --num_train_steps=$ITERATION_TIMES
convert.sh: line 5: 76 Illegal instruction (core dumped) python3 ./export_tflite_ssd_graph.py --pipeline_config_path="my_ssd/pipeline.config" --trained_checkpoint_prefix="my_ssd/model.ckpt-$1" --output_directory="./"
convert.sh: line 18: 92 Illegal instruction (core dumped) tflite_convert --output_file="./my_object_detection.tflite" --graph_def_file="./tflite_graph.pb" --inference_type=QUANTIZED_UINT8 --input_arrays="normalized_input_image_tensor" --output_arrays='TFLite_Detection_PostProcess','TFLite_Detection_PostProcess:1','TFLite_Detection_PostProcess:2','TFLite_Detection_PostProcess:3' --mean_values=128 --std_dev_values=128 --input_shapes=1,300,300,3 --change_concat_input_ranges=false --allow_nudging_weights_to_use_fast_gemm_kernel=true --allow_custom_ops
Edge TPU Compiler version 16.0.384591198
Error opening file for reading: my_object_detection.tflite
mv: cannot stat 'my_object_detection_edgetpu.tflite': No such file or directory
+ set +x
Done generating model file for edgetpu object detection
- /home/kanazawa/20211223-195546-3000-dataset_training-9-industry-objects-train-test-in-order-300x300-rembg-w-config/learn/models/labels.txt
- /home/kanazawa/20211223-195546-3000-dataset_training-9-industry-objects-train-test-in-order-300x300-rembg-w-config/learn/models/output_tflite_graph.tflite
- /home/kanazawa/20211223-195546-3000-dataset_training-9-industry-objects-train-test-in-order-300x300-rembg-w-config/learn/models/output_tflite_graph_edgetpu.tflite
+ mkdir -p /home/kanazawa/Downloads/dataset_training-9-industry-objects-train-test-in-order-300x300-rembg-w-config-20211223-195546-3000
+ scp -r '133.11.216.122:~/20211223-195546-3000-dataset_training-9-industry-objects-train-test-in-order-300x300-rembg-w-config/learn' /home/kanazawa/Downloads/dataset_training-9-industry-objects-train-test-in-order-300x300-rembg-w-config-20211223-195546-3000/
export_tflite_ssd_graph.py 100% 5894 9.8MB/s 00:00
pipeline.config 100% 5502 10.0MB/s 00:00
pipeline-fine-tune.config 100% 5503 7.3MB/s 00:00
convert.sh 100% 923 2.0MB/s 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment