Dirake commited on
Commit
982c544
·
verified ·
1 Parent(s): f1fe526

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -11
README.md CHANGED
@@ -1,12 +1,29 @@
1
- ---
2
- title: Pokemon
3
- emoji: 📈
4
- colorFrom: green
5
- colorTo: purple
6
- sdk: gradio
7
- sdk_version: 5.49.1
8
- app_file: app.py
9
- pinned: false
10
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
+ # Pokemon object detections
2
+ Using yolov8 after training with Google Colab
3
+ ## Dataset
4
+ Because of lack of data, there are only 7 classes: ```pikachu```, ```charmander```, ```bulbasaur```, ```squirtle```, ```eevee```, ```jigglypuff``` and ```other```.
5
+
6
+ ![labels](https://github.com/vovod/yolov8-pokemon-object-detection/blob/main/after_train/labels.jfif)
7
+ ## Requirements
8
+ ```
9
+ pip install ultralytics
10
+ ```
11
+ ## Preprocess Data
12
+ The ```convert.py``` used to convert *.xml* label file to *.txt* yolo label file.
13
+ Run ```resize_image.py``` to resize image's width to 640.
14
+ ## Train with Colab
15
+ Edit ```name.yaml```.
16
+ Upload images and labels.
17
+ ```
18
+ !yolo train model=yolov8n.pt data=/content/name.yaml epochs=50 imgsz=640
19
+ ```
20
+ ## Training's Result
21
+ ```last.pt``` and ```best.pt``` in result folder.
22
+
23
+ ![train](https://github.com/vovod/yolov8-pokemon-object-detection/blob/main/after_train/results.png?raw=true)
24
+ ## Predict
25
+ Run ```predict.py``` to see result. This is my predict to ```test.mp4```:
26
+
27
+ ![result](https://github.com/vovod/yolov8-pokemon-object-detection/blob/main/result.gif?raw=true)
28
 
29
+ #### Thank you for stopping by!