Datasets:

Aymen-Bouguerra commited on
Commit
83cc089
·
verified ·
1 Parent(s): 7820427

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -149
README.md CHANGED
@@ -1,149 +0,0 @@
1
-
2
- ---
3
- license: cc-by-4.0 # Or your actual license
4
- tags:
5
- - image-object-detection
6
- - fmiyc
7
- - out-of-distribution-detection
8
- pretty_name: "FindMeIfYouCan (FMIYC) Dataset"
9
- dataset_info:
10
- features:
11
- - name: file_name
12
- dtype: string
13
- - name: image_id
14
- dtype: string
15
- - name: height
16
- dtype: float32 # Script outputs float
17
- - name: width
18
- dtype: float32 # Script outputs float
19
- - name: dataset_origin
20
- dtype: string
21
- - name: distance_category
22
- dtype: string
23
- - name: objects
24
- sequence: # 'objects' is a list of dictionaries
25
- # Fields within each object dictionary:
26
- - name: id
27
- dtype: string
28
- - name: area
29
- dtype: float32
30
- - name: bbox_x # FLATTENED
31
- dtype: float32
32
- - name: bbox_y # FLATTENED
33
- dtype: float32
34
- - name: bbox_width # FLATTENED
35
- dtype: float32
36
- - name: bbox_height # FLATTENED
37
- dtype: float32
38
- - name: category_id
39
- dtype: int64
40
- - name: categories
41
- sequence: # 'categories' is a list of dictionaries
42
- - name: id
43
- dtype: int64
44
- - name: name
45
- dtype: string
46
- - name: supercategory
47
- dtype: string
48
- - name: image # This feature is added by the Hub for image datasets
49
- dtype: image
50
- configs:
51
- - config_name: coco_far_voc
52
- - config_name: coco_farther_bdd
53
- - config_name: coco_near_voc
54
- - config_name: oi_far_voc
55
- - config_name: oi_farther_bdd
56
- - config_name: oi_near_voc
57
- ---
58
-
59
- # FMIYC (Find Me If You Can) Dataset
60
-
61
- This dataset is designed for Out-Of-Distribution (OOD) Object Detection tasks. It comprises images sourced from COCO and OpenImages, with annotations provided in the COCO JSON format. The dataset is structured into several configurations based on the image source and perspective.
62
-
63
- ## Dataset Structure
64
-
65
- ### Data Instances
66
-
67
- Each instance corresponds to an image and its associated object annotations.
68
- The features include:
69
- * `file_name`: (string) The original filename of the image.
70
- * `image_id`: (string) Unique identifier for the image.
71
- * `height`: (float32) Height of the image in pixels.
72
- * `width`: (float32) Width of the image in pixels.
73
- * `dataset_origin`: (string) Source dataset ("COCO" or "OpenImages").
74
- * `distance_category`: (string) Perspective ("near", "far", "farther").
75
- * `objects`: A list of dictionaries, where each dictionary represents an annotated object:
76
- * `id`: (string) Unique annotation ID.
77
- * `area`: (float32) Area of the bounding box.
78
- * `bbox_x`: (float32) The x-coordinate of the top-left corner of the bounding box.
79
- * `bbox_y`: (float32) The y-coordinate of the top-left corner of the bounding box.
80
- * `bbox_width`: (float32) The width of the bounding box.
81
- * `bbox_height`: (float32) The height of the bounding box.
82
- * `category_id`: (int64) ID of the object category.
83
- * `categories`: A list of dictionaries defining all categories for the current configuration:
84
- * `id`: (int64) Unique category ID.
85
- * `name`: (string) Category name.
86
- * `supercategory`: (string) Supercategory name.
87
- * `image`: The image object itself (added by the Hugging Face datasets library).
88
-
89
-
90
- ### Dataset Configurations
91
- * `coco_far_voc`
92
- * `coco_farther_bdd`
93
- * `coco_near_voc`
94
- * `oi_far_voc`
95
- * `oi_farther_bdd`
96
- * `oi_near_voc`
97
-
98
- Each configuration is processed into a `train` split.
99
-
100
- ## Citation
101
- ```bibtex
102
- @misc{Montoya_FindMeIfYouCan_YYYY,
103
- author = {Montoya, Daniel and Bouguerra, Aymen and Gomez-Villa, Alexandra and Arnez, Fabio},
104
- title = {FindMeIfYouCan: Bringing Open Set metrics to near, far and farther Out-of-Distribution Object detection},
105
- year = {YYYY}, # Replace YYYY
106
- }
107
- **Steps to Try This:**
108
-
109
- 1. **Replace your `restructure_fmiyc.py`** with the updated version above.
110
- 2. **Run it locally:** `python restructure_fmiyc.py`. This will create a new `FMIYC_restructured` directory with `metadata.jsonl` files containing the flattened bbox structure.
111
- 3. **Replace your `README.md`** in your local Git repository with the updated version above.
112
- 4. **Upload to Hugging Face Hub:**
113
- * You'll need to `git add README.md`.
114
- * You'll also need to re-add the `FMIYC_restructured` directory if you had removed it from Git tracking, or if its contents changed significantly. If it was already tracked, Git will pick up the changes in the `metadata.jsonl` files.
115
- * A clean way if you're unsure about Git state for `FMIYC_restructured`:
116
- ```bash
117
- # Assuming FMIYC_restructured is in your .gitignore or wasn't tracked properly
118
- # If it WAS tracked, these 'rm' commands are for the files on disk, not git history yet
119
- # Make sure you have a backup or can regenerate FMIYC_restructured if needed!
120
-
121
- # Remove the old restructured data from your Git tracking (if it was added)
122
- # git rm -r --cached FMIYC_restructured # Only removes from index, keeps files
123
- # git commit -m "Prepare for new restructured data"
124
-
125
- # Now, ensure FMIYC_restructured (newly generated) is ready to be added
126
- git add FMIYC_restructured/
127
- git add README.md
128
- git commit -m "Update data with flattened bbox and revised README"
129
- git push origin main # Or your branch
130
- ```
131
- * **If `FMIYC_restructured` was never properly tracked with LFS for its images:** You'd need to ensure LFS is tracking image files *within* `FMIYC_restructured/*/*.jpg` etc., then `git add` and commit.
132
- The simplest for a clean upload of `FMIYC_restructured`:
133
- 1. Delete the old `FMIYC_restructured` from your Hub repo (via web UI or `git rm` and push).
134
- 2. Run the new `restructure_fmiyc.py` locally.
135
- 3. In your local repo:
136
- ```bash
137
- # Make sure LFS is tracking images inside the new FMIYC_restructured
138
- # (if not already covered by a broader rule)
139
- # git lfs track "FMIYC_restructured/**/*.jpg"
140
- # git lfs track "FMIYC_restructured/**/*.png"
141
- # git add .gitattributes # if changed
142
-
143
- git add README.md
144
- git add FMIYC_restructured/
145
- git commit -m "Upload restructured data with flattened bbox and new README"
146
- git push origin main
147
- ```
148
-
149
- This approach (flattening `bbox`) directly addresses the most likely point of failure in the Croissant generator by removing the complex nested sequence that it seems to be mishandling. This has the highest chance of making the "Records Generation Test" pass if you are sticking to the `metadata.jsonl` + `README.md` upload method.