Skip to content

Commit 5fc47c4

Browse files
authored
Update README.md
1 parent c92c492 commit 5fc47c4

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

README.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -176,25 +176,38 @@ tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) fo
176176
</details>
177177

178178
# 2. Colaboratory:Object Detection API設定
179+
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Kazuhito00/Tensorflow2-ObjectDetectionAPI-Colab-Hands-On/blob/master/[Colaboratory]Tensorflow2-ObjectDetectionAPI-Colab-Hands-On.ipynb)<br>
180+
以降の作業はGoogle Colaboratory上で実施します。※パイプラインコンフィグ修正をのぞき<br>
181+
* Google Driveマウント
182+
* Tensorflow Object Detection API設定
183+
* Tensorflow2-ObjectDetectionAPI-Colab-Hands-Onリポジトリクローン
184+
* 学習データ/検証データ 分割
179185

180186
# 3. パイプラインコンフィグ修正
187+
パイプラインコンフィグを修正し「Tensorflow2-ObjectDetectionAPI-Colab-Hands-On/03_pretrained_model」にアップロードしてください(Please modify the pipeline config and upload it to "Tensorflow2-ObjectDetectionAPI-Colab-Hands-On/03_pretrained_model")<br><br>
188+
パイプラインコンフィグは以下の行を修正します(Pipeline Config modifies the following line)<br>
189+
190+
* 3行目(Line 3):クラス数(num_classes)<br>変更前(Before) : 90<br>変更後(After) : 1<br>
191+
* 134行目(Line 134):バッチサイズ(batch_size)<br>変更前(Before) : 128<br>変更後(After) : 16<br>
192+
* 161行目(Line 161):ファインチューニング用のチェックポイント格納先(fine_tune_checkpoint)<br>変更前(Before) : "PATH_TO_BE_CONFIGURED"<br>変更後(After) : "/content/models/research/Tensorflow2-ObjectDetectionAPI-Colab-Hands-On/03_pretrained_model/efficientdet_d0_coco17_tpu-32/checkpoint/ckpt-0"
193+
* 167行目(Line 167):ファインチューニング方法(fine_tune_checkpoint_type)<br>変更前(Before) : "classification"<br>変更後(After) : "detection"<br>
194+
* 168行目(Line 168):Googleカスタム 16ビットbrain浮動小数点の使用有無(use_bfloat16)<br>変更前(Before) : true<br>変更後(After) : false<br>
195+
* 172行目(Line 172):ラベルマップファイルの格納先(label_map_path)<br>変更前(Before) : "PATH_TO_BE_CONFIGURED/label_map.txt"<br>変更後(After) : "/content/models/research/Tensorflow2-ObjectDetectionAPI-Colab-Hands-On/02_tfrecord/tf_label_map.pbtxt"<br>
196+
* 174行目(Line 174):学習データの格納先(input_path)<br>変更前(Before) : "PATH_TO_BE_CONFIGURED/train2017-?????-of-00256.tfrecord"<br>変更後(After) : "/content/models/research/train_data/??????.tfrecord"<br>
197+
* 185行目(Line 185):ラベルマップファイルの格納先(label_map_path)<br>変更前(Before) : "PATH_TO_BE_CONFIGURED/label_map.txt"<br>変更後(After) : "/content/models/research/Tensorflow2-ObjectDetectionAPI-Colab-Hands-On/02_tfrecord/tf_label_map.pbtxt"<br>
198+
* 189行目(Line 189):バリデーションデータの格納先(input_path)<br>変更前(Before) : "PATH_TO_BE_CONFIGURED/val2017-?????-of-00032.tfrecord"<br>変更後(After) : "/content/models/research/val_data/??????.tfrecord"
199+
<br><br>
181200

182201
# 4. Colaboratory:モデル訓練
202+
* Googleドライブに保存先ディレクトリを作成
203+
* TensorBoard
204+
* 学習(Training)
205+
* saved model形式へエクスポート
183206

184207
# 5. Colaboratory:推論
185-
186-
<!--
187-
# パイプラインコンフィグ修正箇所
188-
3行目:num_classes: 90 → 1<br>
189-
134行目:batch_size: 128 → 16<br>
190-
161行目:fine_tune_checkpoint: "PATH_TO_BE_CONFIGURED" → "/content/models/research/Tensorflow2-ObjectDetectionAPI-Colab-Hands-On/03_pretrained_model/efficientdet_d0_coco17_tpu-32/checkpoint/ckpt-0"
191-
167行目:fine_tune_checkpoint_type: "classification" → "detection"<br>
192-
168行目:use_bfloat16: true → false<br>
193-
172行目:label_map_path: "PATH_TO_BE_CONFIGURED/label_map.txt" → "/content/models/research/Tensorflow2-ObjectDetectionAPI-Colab-Hands-On/02_tfrecord/tf_label_map.pbtxt"<br>
194-
174行目:input_path: "PATH_TO_BE_CONFIGURED/train2017-?????-of-00256.tfrecord" → "/content/models/research/train_data/??????.tfrecord"<br>
195-
185行目:label_map_path: "PATH_TO_BE_CONFIGURED/label_map.txt" → "/content/models/research/Tensorflow2-ObjectDetectionAPI-Colab-Hands-On/02_tfrecord/tf_label_map.pbtxt"<br>
196-
189行目:input_path: "PATH_TO_BE_CONFIGURED/val2017-?????-of-00032.tfrecord" → "/content/models/research/val_data/??????.tfrecord"
197-
-->
208+
* モデルロード
209+
* 推論
210+
* 推論結果確認
198211

199212
# Author
200213
高橋かずひと(https://twitter.com/KzhtTkhs)

0 commit comments

Comments
 (0)