junma commited on
Commit
d88b762
·
verified ·
1 Parent(s): be8109f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +68 -3
README.md CHANGED
@@ -1,3 +1,68 @@
1
- ---
2
- license: cc-by-nc-sa-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ ---
4
+
5
+ # CVPR 2025 Competition: Foundation Models for 3D Biomedical Image Segmentation
6
+
7
+ **Highly recommend watching the [webinar recording](https://www.youtube.com/playlist?list=PLWPTMGguY4Kh48ov6WTkAQDfKRrgXZqlh) to learn about the task settings and baseline methods.**
8
+
9
+ The dataset covers five commonly used 3D biomedical image modalities: CT, MR, PET, Ultrasound, and Microscopy. All the images are from public datasets with a License for redistribution.
10
+ To reduce dataset size, all labeled slices are extracted and preprocessed into npz files. Each `npz` file contains
11
+ - `imgs`: image data; shape: (D,H,W); Intensity range: [0, 255]
12
+ - `gts`: ground truth; shape: (D,H,W);
13
+ - `spacing`
14
+
15
+ Folder structure
16
+
17
+ - 3D_train_npz_all: complete training set
18
+ - 3D_train_npz_random_10percent_16G: randomly selected 10% cases from the above training set. In other words, these cases have been included in the complete training set. Participants are allowed to use other criteria to select 10% cases as the coreset.
19
+ - 3D_val_npz: validation set
20
+ - 3D_val_gt: ground truth of validation set
21
+ - CVPR25_TextSegFMData_with_class.json: text prompt for test-guided segmentation task
22
+
23
+
24
+
25
+ ## Interactive 3D segmentation ([Homepage](https://www.codabench.org/competitions/5263/))
26
+
27
+ The training `npz` files contain three keys: `imgs`, `gts`, and `spacing`.
28
+ The validation (and testing) `npz` files don't have `gts` keys. We provide an optional box key in the `npz` file, which is defined by the middle slice 2D bounding box and the top and bottom slice (closed interval).
29
+ Here is a demo to load the data:
30
+
31
+ ```python
32
+ npz = np.load(‘path to npz file’, allow_pickle=True)
33
+ print(npz.keys())
34
+ imgs = npz[‘imgs’]
35
+ gts = npz[‘gts’] # will not be in the npz for testing cases
36
+ boxes = npz[‘boxes’] # a list of bounding box prompts
37
+ print(boxes[0].keys()) # dict_keys(['z_min', 'z_max', 'z_mid', 'z_mid_x_min', 'z_mid_y_min', 'z_mid_x_max', 'z_mid_y_max'])
38
+ ```
39
+
40
+ Remarks:
41
+
42
+ 1. Box prompt is optional to use, where the corresponding DSC and NSD scores are also not used during ranking.
43
+
44
+ 2. Some objects don't have box prompts, such as vessels (filename contains `vessel`) and multicomponent brain lesions (filename contains `brats`), becuase the box is not a proper prompt for such targets. The evaluation script will generate a zero-mask and then algorithms can directly start with the point prompt for segmentation.
45
+
46
+ 3. The provided box prompts is designed for better efficiency for annotators, which may not cover the whole object. [Here](https://github.com/JunMa11/CVPR-MedSegFMCompetition/blob/main/get_boxes.py ) is the script to generate box prompts from ground truth.
47
+
48
+
49
+ ## Text-guided segmentation ([Homepage](https://www.codabench.org/competitions/5651/))
50
+
51
+ For the training set, we provide a json file with dataset-wise prompts `CVPR25_TextSegFMData_with_class.json`.
52
+
53
+ In the text prompts,
54
+ - `'instance_label': 1` denotes the instance mask where each label corresponds to one instance (e.g., lesions). It is generated by tumor_instance = cc3d.connected_components(tumor_binary_mask>0)
55
+ - `'instance_label': 0` denotes the common semantic mask
56
+
57
+ For the validation (and hidden testing) set, we provided a text key for each validation npz file
58
+
59
+ ```python
60
+ npz = np.load(‘path to npz file’, allow_pickle=True)
61
+ print(npz.keys())
62
+ imgs = npz[‘imgs’]
63
+ print(npz[‘text_prompts’])
64
+ ```
65
+
66
+
67
+
68
+