File size: 1,213 Bytes
dca0b3b
 
 
 
 
 
 
 
 
 
 
 
7595bea
dca0b3b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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/