Datasets:
Commit ·
8eda787
verified ·
0
Parent(s):
Duplicate from lambdaWalker/creditCardDetectionDS
Browse filesCo-authored-by: David Garcia <lambdaWalker@users.noreply.huggingface.co>
This view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +55 -0
- .gitignore +3 -0
- README.md +56 -0
- card.yaml +17 -0
- desc.md +29 -0
- images-vis/test/cc_0.jpg +3 -0
- images-vis/test/cc_1.jpg +3 -0
- images-vis/test/cc_10.jpg +3 -0
- images-vis/test/cc_100.jpg +3 -0
- images-vis/test/cc_101.jpg +3 -0
- images-vis/test/cc_102.jpg +3 -0
- images-vis/test/cc_103.jpg +3 -0
- images-vis/test/cc_104.jpg +3 -0
- images-vis/test/cc_105.jpg +3 -0
- images-vis/test/cc_106.jpg +3 -0
- images-vis/test/cc_107.jpg +3 -0
- images-vis/test/cc_108.jpg +3 -0
- images-vis/test/cc_109.jpg +3 -0
- images-vis/test/cc_11.jpg +3 -0
- images-vis/test/cc_110.jpg +3 -0
- images-vis/test/cc_111.jpg +3 -0
- images-vis/test/cc_112.jpg +3 -0
- images-vis/test/cc_113.jpg +3 -0
- images-vis/test/cc_114.jpg +3 -0
- images-vis/test/cc_115.jpg +3 -0
- images-vis/test/cc_116.jpg +3 -0
- images-vis/test/cc_117.jpg +3 -0
- images-vis/test/cc_118.jpg +3 -0
- images-vis/test/cc_119.jpg +3 -0
- images-vis/test/cc_12.jpg +3 -0
- images-vis/test/cc_120.jpg +3 -0
- images-vis/test/cc_121.jpg +3 -0
- images-vis/test/cc_122.jpg +3 -0
- images-vis/test/cc_123.jpg +3 -0
- images-vis/test/cc_124.jpg +3 -0
- images-vis/test/cc_125.jpg +3 -0
- images-vis/test/cc_126.jpg +3 -0
- images-vis/test/cc_127.jpg +3 -0
- images-vis/test/cc_128.jpg +3 -0
- images-vis/test/cc_129.jpg +3 -0
- images-vis/test/cc_13.jpg +3 -0
- images-vis/test/cc_130.jpg +3 -0
- images-vis/test/cc_131.jpg +3 -0
- images-vis/test/cc_132.jpg +3 -0
- images-vis/test/cc_133.jpg +3 -0
- images-vis/test/cc_134.jpg +3 -0
- images-vis/test/cc_135.jpg +3 -0
- images-vis/test/cc_136.jpg +3 -0
- images-vis/test/cc_137.jpg +3 -0
- images-vis/test/cc_138.jpg +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
# Audio files - uncompressed
|
| 38 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
# Audio files - compressed
|
| 42 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
# Image files - uncompressed
|
| 48 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
# Image files - compressed
|
| 53 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
weights
|
| 2 |
+
train-log
|
| 3 |
+
*.cache
|
README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- object-detection
|
| 5 |
+
pretty_name: Credit Card V0.3 Dataset
|
| 6 |
+
size_categories:
|
| 7 |
+
- 1K<n<10K
|
| 8 |
+
configs:
|
| 9 |
+
- config_name: default
|
| 10 |
+
data_files:
|
| 11 |
+
- split: train
|
| 12 |
+
path: images/train/train.jsonl
|
| 13 |
+
- split: test
|
| 14 |
+
path: images/test/test.jsonl
|
| 15 |
+
- split: validation
|
| 16 |
+
path: images/val/val.jsonl
|
| 17 |
+
tags:
|
| 18 |
+
- finance
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# Synthetic Credit Card Dataset
|
| 22 |
+
|
| 23 |
+
## Overview
|
| 24 |
+
|
| 25 |
+
This repository contains a synthetic dataset of credit card images designed for training and validating machine learning models, specifically using the YOLOv8 object detection model. The dataset consists of 3000 items for training and 1000 items for validation and testing. Each image is 800x800 in JPG format and is accompanied by the necessary annotation files for YOLOv8 and Hugging Face.
|
| 26 |
+
|
| 27 |
+
## Dataset Features
|
| 28 |
+
|
| 29 |
+
- **Total Items**: 5000
|
| 30 |
+
- **Training**: 3000 items
|
| 31 |
+
- **Validation**: 1000 items
|
| 32 |
+
- **Testing**: 1000 items
|
| 33 |
+
- **Image Format**: JPG
|
| 34 |
+
- **Image Size**: 800x800 pixels
|
| 35 |
+
- **Annotations**: Provided for YOLOv8 and Hugging Face in JSONL format
|
| 36 |
+
|
| 37 |
+
## Annotations
|
| 38 |
+
|
| 39 |
+
### YOLOv8
|
| 40 |
+
The annotation files for YOLOv8 are generated as per the [YOLOv8 dataset requirements](https://docs.ultralytics.com/datasets/detect/). Each image has a corresponding `.txt` file with the bounding box coordinates.
|
| 41 |
+
|
| 42 |
+
### Hugging Face
|
| 43 |
+
The annotation files for Hugging Face are generated in JSONL format as per the [Hugging Face image dataset documentation](https://huggingface.co/docs/datasets/en/image_dataset).
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
## License
|
| 47 |
+
|
| 48 |
+
This dataset is licensed under the Apache License Version 2.0.
|
| 49 |
+
|
| 50 |
+
## Contributions
|
| 51 |
+
|
| 52 |
+
We welcome contributions from the community. If you plan to use this dataset or modified versions in a product, research project, or any other initiative that adds value, please notify us. This helps us maintain a record of users and allows us to acknowledge your contributions on our website.
|
| 53 |
+
|
| 54 |
+
## Contact
|
| 55 |
+
|
| 56 |
+
For any inquiries or further information, please contact us at [bytesWright@isdavid.com](mailto:bytesWright@isdavid.com).
|
card.yaml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
license: apache-2.0
|
| 2 |
+
task_categories:
|
| 3 |
+
- object-detection
|
| 4 |
+
pretty_name: Credit Card V0.3 Dataset
|
| 5 |
+
size_categories:
|
| 6 |
+
- 1K<n<10K
|
| 7 |
+
configs:
|
| 8 |
+
- config_name: default
|
| 9 |
+
data_files:
|
| 10 |
+
- split: train
|
| 11 |
+
path: /images/train/metadata.jsonl
|
| 12 |
+
- split: test
|
| 13 |
+
path: /images/test/metadata.jsonl
|
| 14 |
+
- split: validation
|
| 15 |
+
path: /images/val/metadata.jsonl
|
| 16 |
+
tags:
|
| 17 |
+
- finance
|
desc.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Train size: 3401
|
| 2 |
+
Val size: 1075
|
| 3 |
+
Test size: 200
|
| 4 |
+
|
| 5 |
+
Classes:
|
| 6 |
+
Credit card front face
|
| 7 |
+
Credit card back face
|
| 8 |
+
Text (lines)
|
| 9 |
+
Chip (in front face)
|
| 10 |
+
Band (in back face)
|
| 11 |
+
|
| 12 |
+
Training command running from the root of the project:
|
| 13 |
+
yolo train model=./models/yolov8n.pt data=./datasets/creditCardV0.3/yolo8Config.yaml epochs=300 imgsz=800
|
| 14 |
+
|
| 15 |
+
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:
|
| 16 |
+
yolo export model=./datasets/creditCardV0.3/weights/best.pt format=tflite
|
| 17 |
+
|
| 18 |
+
Command to test:
|
| 19 |
+
yolo predict model='./datasets/creditCardV0.3/weights/best.pt' source='./test/T0.jpg'
|
| 20 |
+
yolo predict model='./datasets/creditCardV0.3/weights/best_float16.tflite' source='./test/T0.jpg'
|
| 21 |
+
yolo predict model='./datasets/creditCardV0.3/weights/best_float30.tflite' source='./test/T0.jpg'
|
| 22 |
+
|
| 23 |
+
Notes:
|
| 24 |
+
|
| 25 |
+
This data set has an issue with the chip. For some reason it was not generated correctly for some images.
|
| 26 |
+
The light in the images needs fixing to avoid white clipping parts of the images.
|
| 27 |
+
The texture of the plastic is too deep some times.
|
| 28 |
+
|
| 29 |
+
For more info: https://docs.ultralytics.com/
|
images-vis/test/cc_0.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_1.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_10.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_100.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_101.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_102.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_103.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_104.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_105.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_106.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_107.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_108.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_109.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_11.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_110.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_111.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_112.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_113.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_114.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_115.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_116.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_117.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_118.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_119.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_12.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_120.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_121.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_122.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_123.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_124.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_125.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_126.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_127.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_128.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_129.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_13.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_130.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_131.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_132.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_133.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_134.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_135.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_136.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_137.jpg
ADDED
|
Git LFS Details
|
images-vis/test/cc_138.jpg
ADDED
|
Git LFS Details
|