|
Train size: 3401 |
|
Val size: 1075 |
|
Test size: 200 |
|
|
|
Classes: |
|
Credit card front face |
|
Credit card back face |
|
Text (lines) |
|
Chip (in front face) |
|
Band (in back face) |
|
|
|
Training command running from the root of the project: |
|
yolo train model=./models/yolov8n.pt data=./datasets/creditCardV0.3/yolo8Config.yaml epochs=300 imgsz=800 |
|
|
|
Command to export as tflite bellow. For some reason the exception [ModuleNotFoundError: No module named 'tensorflow_lite_support'] is raised but the tflite files are created: |
|
yolo export model=./datasets/creditCardV0.3/weights/best.pt format=tflite |
|
|
|
Command to test: |
|
yolo predict model='./datasets/creditCardV0.3/weights/best.pt' source='./test/T0.jpg' |
|
yolo predict model='./datasets/creditCardV0.3/weights/best_float16.tflite' source='./test/T0.jpg' |
|
yolo predict model='./datasets/creditCardV0.3/weights/best_float30.tflite' source='./test/T0.jpg' |
|
|
|
Notes: |
|
|
|
This data set has an issue with the chip. For some reason it was not generated correctly for some images. |
|
The light in the images needs fixing to avoid white clipping parts of the images. |
|
The texture of the plastic is too deep some times. |
|
|
|
For more info: https://docs.ultralytics.com/ |