@@ -178,22 +178,22 @@ tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) fo
178
178
179
179
# 2. Colaboratory:Object Detection API Setting
180
180
[ ![ 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 >
181
- 以降の作業はGoogle Colaboratory上で実施します。※パイプラインコンフィグ修正をのぞく <br >
182
- [ Open In Colab] リンクからノートブックを開き、以下の順に実行してください。
183
- * Google Driveマウント
184
- * Tensorflow Object Detection API設定
185
- * Tensorflow2-ObjectDetectionAPI-Colab-Hands-Onリポジトリクローン
186
-
187
- # 3.TFRecordアップロード
188
- 「 Tensorflow2-ObjectDetectionAPI -Colab-Hands-On/ 02_tfrecord」に< br >VoTTからエクスポートしたTFRecordとtf_label_map.pbtxtを格納してください。 <br >
189
- 格納後、以下を実行してください。
190
- * 学習データ/検証データ 分割
191
-
192
- # 4. パイプラインコンフィグ修正
193
- 「 03_pretrained_model\efficientdet_d0_coco17_tpu -32\ pipeline.config」のパイプラインコンフィグを以下のように修正して、 <br >
194
- Colaboratory上の「 Tensorflow2-ObjectDetectionAPI-Colab-Hands-On/03_pretrained_model」にアップロードしてください。 <br >
181
+ Subsequent work will be performed on Google Colaboratory. ※Except for pipeline config modification <br >
182
+ Open your notebook from the [ Open In Colab] link and run it in the following order.
183
+ * Google Drive mount
184
+ * Set Tensorflow Object Detection API
185
+ * Clone Tensorflow2-ObjectDetectionAPI-Colab-Hands-On repository
186
+
187
+ # 3.Upload TFRecord
188
+ Store the TFRecord exported from VoTT and tf_label_map.pbtxt in " Tensorflow2-Object Detection API -Colab-Hands-On / 02_tfrecord". <br >
189
+ After storing, execute the following.
190
+ * Split Training data/validation data
191
+
192
+ # 4. Pipeline-config correction
193
+ Modify the pipeline config of " 03_pretrained_model/coefficientdet_d0_coco17_tpu -32/ pipeline.config" as follows, <br >
194
+ Please upload to " Tensorflow2-ObjectDetectionAPI-Colab-Hands-On/03_pretrained_model" on Colaboratory. <br >
195
195
<details >
196
- <summary >パイプラインコンフィグ修正箇所 </summary >
196
+ <summary >Pipeline-config correction part </summary >
197
197
198
198
* 3行目(Line 3):クラス数(num_classes)<br >変更前(Before) : 90<br >変更後(After) : 1<br >
199
199
* 134行目(Line 134):バッチサイズ(batch_size)<br >変更前(Before) : 128<br >変更後(After) : 16<br >
@@ -207,10 +207,10 @@ Colaboratory上の「Tensorflow2-ObjectDetectionAPI-Colab-Hands-On/03_pretrained
207
207
</details >
208
208
209
209
<details >
210
- <summary >パイプラインコンフィグ修正箇所 ※余裕のある方向け </summary >
210
+ <summary >Pipeline-config correction parts ※Those who can afford </summary >
211
211
212
- パイプラインコンフィグにはデータ拡張設定も記載されています。 <br >
213
- 初期のパイプラインコンフィグには、以下の水平反転、ランダムスケールクロップのみのデータ拡張が設定されています。 <br >
212
+ Data Augmentation settings are also listed in the pipeline config. <br >
213
+ In the initial pipeline config, the following horizontal inversion and random scale crop only data augmentation are set. <br >
214
214
<pre >
215
215
data_augmentation_options {
216
216
random_horizontal_flip {
@@ -225,22 +225,22 @@ Colaboratory上の「Tensorflow2-ObjectDetectionAPI-Colab-Hands-On/03_pretrained
225
225
}
226
226
</pre >
227
227
228
- 使用可能なデータ拡張手法は、 [ preprocessor.proto] ( https://github.com/tensorflow/models/blob/master/research/object_detection/protos/preprocessor.proto ) 、[ preprocessor.py] ( https://github.com/tensorflow/models/blob/master/research/object_detection/core/preprocessor.py ) に記載されているため、 <br >
229
- 必要に応じて追加してみてください。
228
+ Available data augmentation techniques are [ preprocessor.proto] ( https://github.com/tensorflow/models/blob/master/research/object_detection/protos/preprocessor.proto ) 、[ preprocessor.py] ( https://github.com/tensorflow/models/blob/master/research/object_detection/core/preprocessor.py ) so <br >
229
+ Try adding as needed.
230
230
</details >
231
231
232
- # 5. Colaboratory:モデル訓練
233
- 以下の順に実行してください。
234
- * Googleドライブに保存先ディレクトリを作成
232
+ # 5. Colaboratory:Model training
233
+ Please execute in the following order.
234
+ * Create directory in Google Drive
235
235
* TensorBoard
236
- * 学習( Training)
237
- * saved model形式へエクスポート
236
+ * Training
237
+ * Export to saved-model format
238
238
239
239
# 6. Colaboratory:推論
240
- 以下の順に実行してください。
241
- * モデルロード
242
- * 推論
243
- * 推論結果確認
240
+ Please execute in the following order.
241
+ * Load model
242
+ * Inference
243
+ * Inference result confirmation
244
244
245
245
# Author
246
246
高橋かずひと(https://twitter.com/KzhtTkhs )
0 commit comments