Edmond Yoo
2018-09-06 625ad010f3ed65c4f03ee43df95471484275594d
README.md
@@ -1,8 +1,36 @@
![Darknet Logo](http://pjreddie.com/media/files/darknet-black-small.png)
#Darknet#
Darknet is an open source neural network framework written in C and CUDA. It is fast, easy to install, and supports CPU and GPU computation.
# Magic: The Gathering Card Detection Model
For more information see the [Darknet project website](http://pjreddie.com/darknet).
This is a fork of [Yolo-v3 and Yolo-v2 for Windows and Linux by AlexeyAB](https://github.com/AlexeyAB/darknet#how-to-compile-on-linux) for creating a custom model for [My MTG card detection project](https://github.com/hj3yoo/MTGCardDetector).
For questions or issues please use the [Google Group](https://groups.google.com/forum/#!forum/darknet).
## Day ~0: Sep 6th, 2018
---------------------
Uploading all the progresses on the model training for the last few days.
First batch of model training is completed, where I used ~40,000 generated images of MTG cards laid out in one of the pre-defined pattern.
<img src="https://github.com/hj3yoo/darknet/blob/master/figures/0_training_set_example_1.jpg" width="600">
<img src="https://github.com/hj3yoo/darknet/blob/master/figures/0_training_set_example_1.jpg" width="600">
<img src="https://github.com/hj3yoo/darknet/blob/master/figures/0_training_set_example_1.jpg" width="600">
After 5000 training epochs, the model got 88% validation accuracy on the generated test set.
<img src="https://github.com/hj3yoo/darknet/blob/master/figures/0_detection_result_1.jpg" width="600">
<img src="https://github.com/hj3yoo/darknet/blob/master/figures/0_detection_result_2.jpg" width="600">
<img src="https://github.com/hj3yoo/darknet/blob/master/figures/0_detection_result_3.jpg" width="600">
<img src="https://github.com/hj3yoo/darknet/blob/master/figures/0_detection_result_4.jpg" width="600">
However, there are some blind spots on the model, notably:
- Fails to spot some of the obscured cards, where only a fraction of them are shown.
- Fairly fragile against any glaring or light variations.
- Cannot detect any skewed cards.
Example of bad detections:
<img src="https://github.com/hj3yoo/darknet/blob/master/figures/0_detection_result_5.jpg" width="600">
<img src="https://github.com/hj3yoo/darknet/blob/master/figures/0_detection_result_6.jpg" width="600">
<img src="https://github.com/hj3yoo/darknet/blob/master/figures/0_detection_result_7.jpg" width="600">
The second and third problems should easily be solved by further augmenting the dataset with random lighting and image skew. I'll have to think more about the first problem, though.