You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 24, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,13 +45,11 @@ For more model and configuration please see [YOLO website](http://pjreddie.com/
45
45
--path_weights ./model_data/yolo.h5 \
46
46
--path_anchors ./model_data/yolo_anchors.csv \
47
47
--path_classes ./model_data/coco_classes.txt \
48
-
--model_image_size 608 608 \
49
48
--path_output ./results \
50
49
--path_image ./model_data/bike-car-dog.jpg \
51
50
--path_video person.mp4
52
51
```
53
52
For Full YOLOv3, just doin a similar way, just specify model path and anchor path with `--path_weights <model_file>` and `--path_anchors <anchor_file>`.
54
-
Note `model_image_size` is depending on used model, see width and height in model config `*.cfg`. Expected values are ` 608 608`for full YOLO and and `416 416`for Tiny YOLO.
55
53
4. MultiGPU usage: use `--nb_gpu N` to use N GPUs. It is passed to the Keras [multi_gpu_model()](https://keras.io/utils/#multi_gpu_model).
56
54
57
55
---
@@ -93,7 +91,14 @@ If you want to use original pre-trained weights for YOLOv3:
93
91
1. The test environment is Python 3.x ; Keras 2.2.0 ; tensorflow 1.14.0
94
92
2. Default anchors are used. If you use your own anchors, probably some changes are needed.
95
93
3. The inference result is not totally the same as Darknet but the difference is small.
96
-
4. The loaded model takes whole GPU memory.
97
-
5. Always load pretrained weights and freeze layers in the first stage of training. Or try Darknet training. It's OK if there is a mismatch warning.
98
-
6. The training strategy is for reference only. Adjust it according to your dataset and your goal. and add further strategy if needed.
99
-
7. For speeding up the training process with frozen layers train_bottleneck.py can be used. It will compute the bottleneck features of the frozen model first and then only trains the last layers. This makes training on CPU possible in a reasonable time. See this [post](https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html) for more information on bottleneck features.
94
+
4. Always load pretrained weights and freeze layers in the first stage of training. Or try Darknet training. It's OK if there is a mismatch warning.
95
+
5. The training strategy is for reference only. Adjust it according to your dataset and your goal. and add further strategy if needed.
96
+
6. For speeding up the training process with frozen layers train_bottleneck.py can be used. It will compute the bottleneck features of the frozen model first and then only trains the last layers. This makes training on CPU possible in a reasonable time. See this [post](https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html) for more information on bottleneck features.
97
+
7. Failing while run multi-GPU training, think about porting to TF 2.0.
98
+
99
+
---
100
+
101
+
## Nice reading
102
+
103
+
- [Building efficient data pipelines using TensorFlow](https://towardsdatascience.com/building-efficient-data-pipelines-using-tensorflow-8f647f03b4ce)
104
+
- [How to use half precision float16 when training on RTX cards with Tensorflow / Keras](https://medium.com/@noel_kennedy/how-to-use-half-precision-float16-when-training-on-rtx-cards-with-tensorflow-keras-d4033d59f9e4)
0 commit comments