Files changed (1) hide show
  1. README.md +24 -43
README.md CHANGED
@@ -155,50 +155,31 @@ Object detection in security X-ray scans has advanced significantly in recent ye
155
 
156
  ### Dataset Structure
157
 
158
- DET-COMPASS is provided in two configurations:
159
-
160
- - **default**: The entire dataset is used in a zero-shot setting, where only text labels are available for each object. This configuration is suitable for evaluating open-vocabulary object detectors without access to any visual prototypes.
161
- - **raxo**: This configuration replicates the setting in the RAXO paper, where a subset of x-ray prototypes for the objects is available. It is intended for experiments that leverage a small number of visual examples per class.
162
-
163
- Each sample in the dataset has the following structure:
164
-
165
- ```json
166
- {
167
- "rgb_image": PIL.Image, // loaded RGB image
168
- "rgb_width": int,
169
- "rgb_height": int,
170
- "xray_images": [ // list of 5 loaded images, order: Colour, Grey, High, Low, Density
171
- PIL.Image, PIL.Image, PIL.Image, PIL.Image, PIL.Image
172
- ],
173
- "xray_width": int,
174
- "xray_height": int,
175
- "objects": {
176
- "rgb_bbox": [ [float, float, float, float], ... ], // list of [x_min, y_min, width, height]
177
- "xray_bbox": [ [float, float, float, float], ... ], // list of [x_min, y_min, width, height]
178
- "categories": [ string, ... ], // list of text labels
179
- "rgb_visible": [ bool, ... ], // list of booleans
180
- "xray_visible": [ bool, ... ], // list of booleans
181
- "dangerous": [ bool, ... ], // list of booleans
182
- "IN_ids": [ string, ... ], // list of ImageNet IDs (may be empty)
183
- "WN_ids": [ string, ... ] // list of WordNet synset IDs (may be empty)
184
- }
185
- }
186
- ```
187
-
188
- - The `xray_images` list always follows this order: **Colour, Grey, High, Low, Density**.
189
- - All bounding boxes are in `[x_min, y_min, width, height]` format.
190
- - The `categories` field contains the text label for each object.
191
- - The `IN_ids` and `WN_ids` fields provide ImageNet and WordNet synset IDs when available.
192
- - **All lists within the `objects` field are aligned by index:** for any index `i`, the elements `rgb_bbox[i]`, `xray_bbox[i]`, `categories[i]`, `rgb_visible[i]`, `xray_visible[i]`, `dangerous[i]`, `IN_ids[i]`, and `WN_ids[i]` all correspond to the same object instance in the image.
193
-
194
- **The repository also includes a `classes.csv` file listing all classes present in the dataset. This file has the following columns:**
195
-
196
- - `class`: Class name (string)
197
- - `IN_id`: ImageNet class ID (string, may be empty)
198
- - `WN_id`: WordNet synset ID (string, may be empty)
199
- - `dangerous`: Whether the class is considered dangerous (boolean)
200
 
201
- This structure supports both zero-shot and prototype-based open-vocabulary object detection experiments.
202
 
203
  ### Usage
204
 
 
155
 
156
  ### Dataset Structure
157
 
158
+ - ๐Ÿ“ **Low**: Raw 8-bit greyscale data from the scannerโ€™s **low-energy X-ray channel**.
159
+ - ๐Ÿ“ **High**: Raw 8-bit greyscale data from the scannerโ€™s **high-energy X-ray channel**.
160
+ - ๐Ÿ“ **Density**: 8-bit greyscale data representing **inferred material density**, computed by combining the low and high energy channels.
161
+ - ๐Ÿ“ **Grey**: RGB images that blends low and high energy channels with **visual enhancements**. While nominally greyscale, it includes **subtle color details**.
162
+ - ๐Ÿ“ **Colour**: RGB images using a **color palette** to represent material density variations.
163
+ - ๐Ÿ“ **Photo**: RGB images caputred with a RGB camera.
164
+
165
+ - ๐Ÿ“„ **meta.txt**: Original metadata from COMPASS-XP, including:
166
+ ```
167
+ basename: Shared ID for each image pair
168
+ class: Object class
169
+ instance: An integer identifying the object instance
170
+ pose: An integer identifying the object pose
171
+ scan tray: Either A, indicating that the pose was imaged in a weighted tray, or N indicating it was not
172
+ dangerous: Boolean indicating aviation threat
173
+ IN_id: ImageNet class ID (if available)
174
+ WN_id: WordNet synset ID (if available)
175
+ ```
176
+ - ๐Ÿ“„ **rgb_compass.json** and ๐Ÿ“„**xray_compass.json**: Bounding box annotations for both the X-ray (Low, High, Density, Grey, Colour), and the RGB (Photo) images.
177
+ > Note: The category id/name must be retrieved from `meta.txt` (now there is a dummy 1).
178
+ - ๐Ÿ“ **Raxo_splits**: Train/Test splits used in the [RAXO](https://github.com/PAGF188/RAXO) paper, stored in **COCO format** .
179
+ - ๐Ÿ“„ **xray_prot.json**: Used to build the prototypes.
180
+ - ๐Ÿ“„ **xray_1image_test.json**: Used for test.
181
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
 
 
183
 
184
  ### Usage
185