starpig commited on
Commit
f8699ca
Β·
1 Parent(s): b95e7a1

Add YAML metadata to fix warning

Browse files
Files changed (1) hide show
  1. README.md +28 -7
README.md CHANGED
@@ -1,5 +1,23 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
4
 
5
  # TLPD: Taiwan License Plate Dataset
@@ -10,18 +28,21 @@ This dataset is designed for tasks such as license plate detection, polygon segm
10
 
11
  ## πŸ“ Dataset Structure
12
 
13
- All data are located under the `dataset/` directory:
14
 
15
  ```
16
- dataset/
17
  β”œβ”€β”€ 0001.jpg
18
- β”œβ”€β”€ 0001.json
19
  β”œβ”€β”€ 0002.jpg
 
 
 
 
20
  β”œβ”€β”€ 0002.json
21
- β”œβ”€β”€ ...
22
  ```
23
 
24
- Each `.jpg` image is paired with a `.json` file of the same name containing the polygon annotation.
25
 
26
  ## 🏷️ Annotation Format (LabelMe)
27
 
@@ -61,7 +82,7 @@ To load this dataset using the Hugging Face πŸ€— `datasets` library:
61
  ```python
62
  from datasets import load_dataset
63
 
64
- ds = load_dataset("evan6007/TLPD", data_dir="dataset", trust_remote_code=True)
65
  sample = ds["train"][0]
66
 
67
  image = sample["image"] # PIL image
@@ -69,7 +90,7 @@ label = sample["label"] # "carplate"
69
  points = sample["points"] # [[x1, y1], ..., [x4, y4]]
70
  ```
71
 
72
- > Note: This dataset requires a custom loading script. Be sure to set `trust_remote_code=True`.
73
 
74
  ## πŸ§‘β€πŸ”¬ Intended Use
75
 
 
1
  ---
2
  license: mit
3
+ pretty_name: Taiwan License Plate Dataset
4
+ annotations_creators:
5
+ - expert-generated
6
+ language:
7
+ - en
8
+ multilinguality: monolingual
9
+ size_categories:
10
+ - 1K<n<10K
11
+ source_datasets:
12
+ - original
13
+ task_categories:
14
+ - object-detection
15
+ task_ids:
16
+ - polygon-object-detection
17
+ tags:
18
+ - license-plate
19
+ - polygon
20
+ - labelme
21
  ---
22
 
23
  # TLPD: Taiwan License Plate Dataset
 
28
 
29
  ## πŸ“ Dataset Structure
30
 
31
+ All image files are stored in the `images/` directory, and their corresponding polygon annotations are in the `labels/` directory:
32
 
33
  ```
34
+ images/
35
  β”œβ”€β”€ 0001.jpg
 
36
  β”œβ”€β”€ 0002.jpg
37
+ └── ...
38
+
39
+ labels/
40
+ β”œβ”€β”€ 0001.json
41
  β”œβ”€β”€ 0002.json
42
+ └── ...
43
  ```
44
 
45
+ Each `.jpg` image is paired with a `.json` file of the same name containing the polygon annotation (in LabelMe format).
46
 
47
  ## 🏷️ Annotation Format (LabelMe)
48
 
 
82
  ```python
83
  from datasets import load_dataset
84
 
85
+ ds = load_dataset("evan6007/TLPD", data_dir=".", trust_remote_code=True)
86
  sample = ds["train"][0]
87
 
88
  image = sample["image"] # PIL image
 
90
  points = sample["points"] # [[x1, y1], ..., [x4, y4]]
91
  ```
92
 
93
+ > Note: This dataset requires a custom loading script (`dataset.py`). Be sure to set `trust_remote_code=True`.
94
 
95
  ## πŸ§‘β€πŸ”¬ Intended Use
96