VictorButoi commited on
Commit
b3d8920
·
verified ·
1 Parent(s): 9a071df

Consolidate the FleXray ensemble into one repository (members/ + ensemble.json)

Browse files
README.md CHANGED
@@ -12,7 +12,7 @@ tags:
12
  - flexray
13
  ---
14
 
15
- # FleXray: `flexray-base`
16
 
17
  - Website and in-browser demo: [victorbutoi.github.io/FleXray](https://victorbutoi.github.io/FleXray/)
18
  - Code: [github.com/VictorButoi/FleXray](https://github.com/VictorButoi/FleXray)
@@ -20,16 +20,15 @@ tags:
20
  - Tutorial: [Colab notebook](https://colab.research.google.com/drive/1MNIeN9LN-tY8wAifWSolxmFZi3Q0BlVX)
21
  - Paper: *FleXray: Flexible Full-Body X-ray Segmentation* (coming soon)
22
 
23
- `flexray-base` is the **flagship FleXray model**: a single 2D UNet that segments
24
- anatomy from standard radiographs across body regions, projections, and
25
- acquisition settings. It predicts 60 anatomical structures (plus background) as
26
- independent sigmoid channels at 256 x 256 resolution and is the default bundle
27
- loaded by `flexify` and `FleXraySegmenter.from_pretrained`.
28
 
29
- It is also one member of a five-model ensemble; see
30
- [The FleXray ensemble](#the-flexray-ensemble) for the other four and
31
- [Test-time augmentation](#test-time-augmentation) for the inference recipe we
32
- use for reported results.
33
 
34
  ## Quick start
35
 
@@ -41,7 +40,7 @@ flexify --input ./image.png --output-dir ./predictions
41
  ```python
42
  from fxr.inference import FleXraySegmenter
43
 
44
- segmenter = FleXraySegmenter.from_pretrained("VictorButoi/flexray-base")
45
  prediction = segmenter.predict("./image.png", threshold=0.5)
46
  prediction.masks # uint8, CxHxW thresholded masks
47
  prediction.probabilities # float32, CxHxW sigmoid probabilities
@@ -60,41 +59,36 @@ The flagship was trained with a 0.375 FluXray proportion in the training mix.
60
  Four sibling models share its architecture, label schema, preprocessing, and
61
  training recipe and differ only in that proportion:
62
 
63
- | Model ID | FluXray proportion | Role |
64
  | --- | --- | --- |
65
- | `VictorButoi/flexray-base-flux000` | 0.0 | ensemble member |
66
- | `VictorButoi/flexray-base-flux025` | 0.25 | ensemble member |
67
- | **`VictorButoi/flexray-base`** | **0.375** | **flagship (this repository)** |
68
- | `VictorButoi/flexray-base-flux050` | 0.5 | ensemble member |
69
- | `VictorButoi/flexray-base-flux075` | 0.75 | ensemble member |
70
 
71
- Because the members share one output space, any subset can be averaged in
72
- probability space:
 
73
 
74
  ```bash
75
- flexify --model-id VictorButoi/flexray-base \
76
- --model-id VictorButoi/flexray-base-flux000 \
77
- --model-id VictorButoi/flexray-base-flux025 \
78
- --model-id VictorButoi/flexray-base-flux050 \
79
- --model-id VictorButoi/flexray-base-flux075 \
80
- --tta-samples 16 --input ./image.png --output-dir ./predictions
81
  ```
82
 
83
  ```python
84
- segmenter = FleXraySegmenter.from_pretrained([
85
- "VictorButoi/flexray-base",
86
- "VictorButoi/flexray-base-flux000",
87
- "VictorButoi/flexray-base-flux025",
88
- "VictorButoi/flexray-base-flux050",
89
- "VictorButoi/flexray-base-flux075",
90
- ])
91
  prediction = segmenter.predict("./image.png", tta_samples=16)
 
 
 
 
92
  ```
93
 
94
  The website demo exposes the same choices as quality modes: **Low** runs the
95
  flagship once, **Normal** runs the flagship with 16-pass TTA, **High** runs the
96
  five-model ensemble once, and **X-High** runs the ensemble with 16-pass TTA.
97
- Release status of each member is tracked in
98
  [MODEL_ZOO.md](https://github.com/VictorButoi/FleXray/blob/main/MODEL_ZOO.md).
99
 
100
  ## Test-time augmentation
@@ -145,7 +139,7 @@ FleXray outputs 60 foreground masks (61 channels including `background`). The
145
  broader dataset/evaluation protocol also recognizes aggregate `lumbar_spine` and
146
  `thoracolumbar_spine` annotations; these are evaluated by combining the relevant
147
  per-vertebra outputs and are not checkpoint channels. Channel order is stored in
148
- `label_schema.json`.
149
 
150
  - **Skull / shoulder girdle:** skull, scapulae, clavicles
151
  - **Upper limb:** humeri, radii, ulnae, carpals, metacarpals, phalanges
@@ -163,11 +157,11 @@ laterality is not predicted.
163
  `fxr.models.UNet`, 2D, 1 input channel, 61 output channels; filters
164
  `[64, 128, 256, 512, 512, 720, 1024]`, 3 convolutions per block, residual
165
  blocks with instance norm, `align_corners=True` upsampling. The full
166
- architecture is in `config.yml`.
167
 
168
  ## Training data
169
 
170
- The model was trained on three source types unified under the FleXray label
171
  protocol. For training mixture proportions, please refer to the paper:
172
 
173
  - **Real X-ray masks:** HandBones, FootBones, MURA forearm, and MURA humerus,
@@ -188,8 +182,8 @@ Every dataset's license, redistribution status, and download pointer is
188
  documented in the
189
  [`VictorButoi/flexray-data`](https://huggingface.co/datasets/VictorButoi/flexray-data)
190
  card. That repository ships the real X-ray sources whose licenses permit
191
- redistribution, already packed in the FleXray protocol, plus the MURA masks;
192
- the FluXray database is released alongside it.
193
 
194
  ## Evaluation
195
 
@@ -214,16 +208,20 @@ clinical diagnosis, treatment planning, or patient-care decisions.
214
  - Performance on acquisition settings, views, or populations far from the
215
  training sources has not been validated.
216
 
217
- ## Files
218
-
219
- - `model.safetensors`: exported model weights.
220
- - `config.yml`: architecture and protocol config consumed by `from_pretrained`.
221
- - `label_schema.json`: ordered output labels.
222
- - `preprocessing.json`: public preprocessing contract.
223
- - `checksums.json`: SHA256 checksums of the bundle files.
224
- - `onnx/flexray-base-256-fp16.onnx`: fp16 ONNX export (opset 18, sigmoid
225
- baked in) used by the in-browser demo; parity-checked against the PyTorch
226
- weights by `tools/export_web_demo.py`.
 
 
 
 
227
 
228
  ## Licenses
229
 
 
12
  - flexray
13
  ---
14
 
15
+ # FleXray: `VictorButoi/flexray`
16
 
17
  - Website and in-browser demo: [victorbutoi.github.io/FleXray](https://victorbutoi.github.io/FleXray/)
18
  - Code: [github.com/VictorButoi/FleXray](https://github.com/VictorButoi/FleXray)
 
20
  - Tutorial: [Colab notebook](https://colab.research.google.com/drive/1MNIeN9LN-tY8wAifWSolxmFZi3Q0BlVX)
21
  - Paper: *FleXray: Flexible Full-Body X-ray Segmentation* (coming soon)
22
 
23
+ FleXray is a single 2D UNet that segments anatomy from standard radiographs
24
+ across body regions, projections, and acquisition settings. It predicts 60
25
+ anatomical structures (plus background) as independent sigmoid channels at
26
+ 256 x 256 resolution.
 
27
 
28
+ This repository holds the **flagship model** and the four sibling models of
29
+ the FleXray ensemble, one bundle per `members/` subfolder (see
30
+ [Repository layout](#repository-layout)). `flexify` and
31
+ `FleXraySegmenter.from_pretrained` load the flagship by default.
32
 
33
  ## Quick start
34
 
 
40
  ```python
41
  from fxr.inference import FleXraySegmenter
42
 
43
+ segmenter = FleXraySegmenter.from_pretrained("VictorButoi/flexray")
44
  prediction = segmenter.predict("./image.png", threshold=0.5)
45
  prediction.masks # uint8, CxHxW thresholded masks
46
  prediction.probabilities # float32, CxHxW sigmoid probabilities
 
59
  Four sibling models share its architecture, label schema, preprocessing, and
60
  training recipe and differ only in that proportion:
61
 
62
+ | Subfolder | FluXray proportion | Role |
63
  | --- | --- | --- |
64
+ | `members/flux000` | 0.0 | ensemble member |
65
+ | `members/flux025` | 0.25 | ensemble member |
66
+ | **`members/flux0375`** | **0.375** | **flagship (loaded by default)** |
67
+ | `members/flux050` | 0.5 | ensemble member |
68
+ | `members/flux075` | 0.75 | ensemble member |
69
 
70
+ `ensemble.json` at the repository root lists the flagship and the members.
71
+ Because the members share one output space, they are averaged in probability
72
+ space:
73
 
74
  ```bash
75
+ flexify --ensemble --tta-samples 16 --input ./image.png --output-dir ./predictions
76
+ flexify --subfolder members/flux000 --input ./image.png --output-dir ./predictions
 
 
 
 
77
  ```
78
 
79
  ```python
80
+ segmenter = FleXraySegmenter.from_pretrained("VictorButoi/flexray", ensemble=True)
 
 
 
 
 
 
81
  prediction = segmenter.predict("./image.png", tta_samples=16)
82
+
83
+ member = FleXraySegmenter.from_pretrained(
84
+ "VictorButoi/flexray", subfolder="members/flux000"
85
+ )
86
  ```
87
 
88
  The website demo exposes the same choices as quality modes: **Low** runs the
89
  flagship once, **Normal** runs the flagship with 16-pass TTA, **High** runs the
90
  five-model ensemble once, and **X-High** runs the ensemble with 16-pass TTA.
91
+ The members are also listed in
92
  [MODEL_ZOO.md](https://github.com/VictorButoi/FleXray/blob/main/MODEL_ZOO.md).
93
 
94
  ## Test-time augmentation
 
139
  broader dataset/evaluation protocol also recognizes aggregate `lumbar_spine` and
140
  `thoracolumbar_spine` annotations; these are evaluated by combining the relevant
141
  per-vertebra outputs and are not checkpoint channels. Channel order is stored in
142
+ each bundle's `label_schema.json`.
143
 
144
  - **Skull / shoulder girdle:** skull, scapulae, clavicles
145
  - **Upper limb:** humeri, radii, ulnae, carpals, metacarpals, phalanges
 
157
  `fxr.models.UNet`, 2D, 1 input channel, 61 output channels; filters
158
  `[64, 128, 256, 512, 512, 720, 1024]`, 3 convolutions per block, residual
159
  blocks with instance norm, `align_corners=True` upsampling. The full
160
+ architecture is in each bundle's `config.yml`.
161
 
162
  ## Training data
163
 
164
+ The models were trained on three source types unified under the FleXray label
165
  protocol. For training mixture proportions, please refer to the paper:
166
 
167
  - **Real X-ray masks:** HandBones, FootBones, MURA forearm, and MURA humerus,
 
182
  documented in the
183
  [`VictorButoi/flexray-data`](https://huggingface.co/datasets/VictorButoi/flexray-data)
184
  card. That repository ships the real X-ray sources whose licenses permit
185
+ redistribution, already packed in the FleXray protocol, the MURA masks, and
186
+ the FluXray database.
187
 
188
  ## Evaluation
189
 
 
208
  - Performance on acquisition settings, views, or populations far from the
209
  training sources has not been validated.
210
 
211
+ ## Repository layout
212
+
213
+ - `README.md`: this card.
214
+ - `ensemble.json`: the `flagship` subfolder and the `members` list with their
215
+ FluXray proportions.
216
+ - `members/<name>/model.safetensors`: exported model weights.
217
+ - `members/<name>/config.yml`: architecture and protocol config consumed by
218
+ `from_pretrained`.
219
+ - `members/<name>/label_schema.json`: ordered output labels.
220
+ - `members/<name>/preprocessing.json`: public preprocessing contract.
221
+ - `members/<name>/checksums.json`: SHA256 checksums of the bundle files.
222
+ - `members/<name>/onnx/flexray-<name>-256-fp16.onnx`: fp16 ONNX export
223
+ (opset 18, sigmoid baked in) used by the in-browser demo; parity-checked
224
+ against the PyTorch weights by `tools/export_web_demo.py`.
225
 
226
  ## Licenses
227
 
ensemble.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "aggregation": "mean_probability",
3
+ "flagship": "members/flux0375",
4
+ "members": [
5
+ {
6
+ "fluxray_proportion": 0.375,
7
+ "subfolder": "members/flux0375"
8
+ },
9
+ {
10
+ "fluxray_proportion": 0.0,
11
+ "subfolder": "members/flux000"
12
+ },
13
+ {
14
+ "fluxray_proportion": 0.25,
15
+ "subfolder": "members/flux025"
16
+ },
17
+ {
18
+ "fluxray_proportion": 0.5,
19
+ "subfolder": "members/flux050"
20
+ },
21
+ {
22
+ "fluxray_proportion": 0.75,
23
+ "subfolder": "members/flux075"
24
+ }
25
+ ]
26
+ }
members/flux000/checksums.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "algorithm": "sha256",
3
+ "files": {
4
+ "config.yml": "7c7d52b2404d5e3cb5347036feac994ab8b8a18dd6bef5cfa47b749077af727a",
5
+ "label_schema.json": "6f60e2369859b7e17e275c04394c9ec33ac194a8118111577886b1c7fd3cf9f5",
6
+ "model.safetensors": "921ffc5d146882b5912a4930c393ef540bc9f511bd0a0a4191fe10c3d951eaee",
7
+ "preprocessing.json": "5994ede07dc359e7fd62215ed1e97b811360fccacb6327bd91b6def439926155"
8
+ }
9
+ }
config.yml → members/flux000/config.yml RENAMED
File without changes
label_schema.json → members/flux000/label_schema.json RENAMED
@@ -63,7 +63,7 @@
63
  "heart"
64
  ],
65
  "label_order_verified": true,
66
- "model_id": "VictorButoi/flexray-base",
67
  "num_labels": 61,
68
  "schema_version": 1,
69
  "weights_license": "CC-BY-NC-4.0"
 
63
  "heart"
64
  ],
65
  "label_order_verified": true,
66
+ "model_id": "VictorButoi/flexray",
67
  "num_labels": 61,
68
  "schema_version": 1,
69
  "weights_license": "CC-BY-NC-4.0"
members/flux000/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:921ffc5d146882b5912a4930c393ef540bc9f511bd0a0a4191fe10c3d951eaee
3
+ size 405630476
members/flux000/onnx/flexray-flux000-256-fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff01dfae72efcb5201bb4c24bcf22fc6a05b5fd619de8a033c475267073aba3b
3
+ size 203297320
preprocessing.json → members/flux000/preprocessing.json RENAMED
File without changes
members/flux025/checksums.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "algorithm": "sha256",
3
+ "files": {
4
+ "config.yml": "7c7d52b2404d5e3cb5347036feac994ab8b8a18dd6bef5cfa47b749077af727a",
5
+ "label_schema.json": "6f60e2369859b7e17e275c04394c9ec33ac194a8118111577886b1c7fd3cf9f5",
6
+ "model.safetensors": "ba738a88f2473f3df11080f2106e577c475a40c351fb66c1410da25424cbf9f4",
7
+ "preprocessing.json": "5994ede07dc359e7fd62215ed1e97b811360fccacb6327bd91b6def439926155"
8
+ }
9
+ }
members/flux025/config.yml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model:
2
+ _class: fxr.models.UNet
3
+ in_channels: 1
4
+ out_channels: 61
5
+ filters:
6
+ - 64
7
+ - 128
8
+ - 256
9
+ - 512
10
+ - 512
11
+ - 720
12
+ - 1024
13
+ convs_per_block: 3
14
+ bottleneck_convs: null
15
+ skip_connections: true
16
+ dropout: 0.0
17
+ norm: instance
18
+ residual: true
19
+ norm_after_activation: true
20
+ upsample_align_corners: true
21
+ residual_projection: auto
22
+ residual_shortcut_norm: true
23
+ protocol:
24
+ name: all_structures_flexray_v4
25
+ model_labels:
26
+ names:
27
+ - background
28
+ - skull
29
+ - scapulae
30
+ - clavicles
31
+ - humeri
32
+ - phalanges
33
+ - metacarpals
34
+ - carpals
35
+ - radii
36
+ - ulnae
37
+ - tibiae
38
+ - femurs
39
+ - patellae
40
+ - fibulae
41
+ - metatarsals
42
+ - tarsals
43
+ - toes
44
+ - rib_1
45
+ - rib_2
46
+ - rib_3
47
+ - rib_4
48
+ - rib_5
49
+ - rib_6
50
+ - rib_7
51
+ - rib_8
52
+ - rib_9
53
+ - rib_10
54
+ - rib_11
55
+ - rib_12
56
+ - sternum
57
+ - vertebra_c1
58
+ - vertebra_c2
59
+ - vertebra_c3
60
+ - vertebra_c4
61
+ - vertebra_c5
62
+ - vertebra_c6
63
+ - vertebra_c7
64
+ - vertebra_t1
65
+ - vertebra_t2
66
+ - vertebra_t3
67
+ - vertebra_t4
68
+ - vertebra_t5
69
+ - vertebra_t6
70
+ - vertebra_t7
71
+ - vertebra_t8
72
+ - vertebra_t9
73
+ - vertebra_t10
74
+ - vertebra_t11
75
+ - vertebra_t12
76
+ - vertebra_l1
77
+ - vertebra_l2
78
+ - vertebra_l3
79
+ - vertebra_l4
80
+ - vertebra_l5
81
+ - hips
82
+ - sacrum
83
+ - kidneys
84
+ - liver
85
+ - spleen
86
+ - lungs
87
+ - heart
members/flux025/label_schema.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label_names": [
3
+ "background",
4
+ "skull",
5
+ "scapulae",
6
+ "clavicles",
7
+ "humeri",
8
+ "phalanges",
9
+ "metacarpals",
10
+ "carpals",
11
+ "radii",
12
+ "ulnae",
13
+ "tibiae",
14
+ "femurs",
15
+ "patellae",
16
+ "fibulae",
17
+ "metatarsals",
18
+ "tarsals",
19
+ "toes",
20
+ "rib_1",
21
+ "rib_2",
22
+ "rib_3",
23
+ "rib_4",
24
+ "rib_5",
25
+ "rib_6",
26
+ "rib_7",
27
+ "rib_8",
28
+ "rib_9",
29
+ "rib_10",
30
+ "rib_11",
31
+ "rib_12",
32
+ "sternum",
33
+ "vertebra_c1",
34
+ "vertebra_c2",
35
+ "vertebra_c3",
36
+ "vertebra_c4",
37
+ "vertebra_c5",
38
+ "vertebra_c6",
39
+ "vertebra_c7",
40
+ "vertebra_t1",
41
+ "vertebra_t2",
42
+ "vertebra_t3",
43
+ "vertebra_t4",
44
+ "vertebra_t5",
45
+ "vertebra_t6",
46
+ "vertebra_t7",
47
+ "vertebra_t8",
48
+ "vertebra_t9",
49
+ "vertebra_t10",
50
+ "vertebra_t11",
51
+ "vertebra_t12",
52
+ "vertebra_l1",
53
+ "vertebra_l2",
54
+ "vertebra_l3",
55
+ "vertebra_l4",
56
+ "vertebra_l5",
57
+ "hips",
58
+ "sacrum",
59
+ "kidneys",
60
+ "liver",
61
+ "spleen",
62
+ "lungs",
63
+ "heart"
64
+ ],
65
+ "label_order_verified": true,
66
+ "model_id": "VictorButoi/flexray",
67
+ "num_labels": 61,
68
+ "schema_version": 1,
69
+ "weights_license": "CC-BY-NC-4.0"
70
+ }
members/flux025/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba738a88f2473f3df11080f2106e577c475a40c351fb66c1410da25424cbf9f4
3
+ size 405630476
members/flux025/onnx/flexray-flux025-256-fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bde735f1514fa252c3179cbb21bdad1f442eefc1cd8d53aa34845b49e27186f5
3
+ size 203297320
members/flux025/preprocessing.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "color_mode": "grayscale",
3
+ "image_size": [
4
+ 256,
5
+ 256
6
+ ],
7
+ "mean": null,
8
+ "normalization": {
9
+ "eps": 1e-08,
10
+ "percentiles": [
11
+ 0.5,
12
+ 99.5
13
+ ],
14
+ "scheme": "percentile_minmax"
15
+ },
16
+ "pad_to_square": true,
17
+ "probability_mode": "multilabel",
18
+ "scale": "zero_one",
19
+ "std": null
20
+ }
checksums.json → members/flux0375/checksums.json RENAMED
@@ -1,9 +1,8 @@
1
  {
2
  "algorithm": "sha256",
3
  "files": {
4
- "README.md": "ce0a7a4087fec705e9cfe753bb01a06e0e2b29377e896e31e012f361e97b7058",
5
  "config.yml": "7c7d52b2404d5e3cb5347036feac994ab8b8a18dd6bef5cfa47b749077af727a",
6
- "label_schema.json": "c8fa61b6585fc4043e2c51ba1f53271f9313cdae8d812479449b8a2a0ba12d7a",
7
  "model.safetensors": "716ce3a8fb2a6abe22b2f2188fd596ddc4642b273fb0d336d629448154fc6d24",
8
  "preprocessing.json": "5994ede07dc359e7fd62215ed1e97b811360fccacb6327bd91b6def439926155"
9
  }
 
1
  {
2
  "algorithm": "sha256",
3
  "files": {
 
4
  "config.yml": "7c7d52b2404d5e3cb5347036feac994ab8b8a18dd6bef5cfa47b749077af727a",
5
+ "label_schema.json": "6f60e2369859b7e17e275c04394c9ec33ac194a8118111577886b1c7fd3cf9f5",
6
  "model.safetensors": "716ce3a8fb2a6abe22b2f2188fd596ddc4642b273fb0d336d629448154fc6d24",
7
  "preprocessing.json": "5994ede07dc359e7fd62215ed1e97b811360fccacb6327bd91b6def439926155"
8
  }
members/flux0375/config.yml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model:
2
+ _class: fxr.models.UNet
3
+ in_channels: 1
4
+ out_channels: 61
5
+ filters:
6
+ - 64
7
+ - 128
8
+ - 256
9
+ - 512
10
+ - 512
11
+ - 720
12
+ - 1024
13
+ convs_per_block: 3
14
+ bottleneck_convs: null
15
+ skip_connections: true
16
+ dropout: 0.0
17
+ norm: instance
18
+ residual: true
19
+ norm_after_activation: true
20
+ upsample_align_corners: true
21
+ residual_projection: auto
22
+ residual_shortcut_norm: true
23
+ protocol:
24
+ name: all_structures_flexray_v4
25
+ model_labels:
26
+ names:
27
+ - background
28
+ - skull
29
+ - scapulae
30
+ - clavicles
31
+ - humeri
32
+ - phalanges
33
+ - metacarpals
34
+ - carpals
35
+ - radii
36
+ - ulnae
37
+ - tibiae
38
+ - femurs
39
+ - patellae
40
+ - fibulae
41
+ - metatarsals
42
+ - tarsals
43
+ - toes
44
+ - rib_1
45
+ - rib_2
46
+ - rib_3
47
+ - rib_4
48
+ - rib_5
49
+ - rib_6
50
+ - rib_7
51
+ - rib_8
52
+ - rib_9
53
+ - rib_10
54
+ - rib_11
55
+ - rib_12
56
+ - sternum
57
+ - vertebra_c1
58
+ - vertebra_c2
59
+ - vertebra_c3
60
+ - vertebra_c4
61
+ - vertebra_c5
62
+ - vertebra_c6
63
+ - vertebra_c7
64
+ - vertebra_t1
65
+ - vertebra_t2
66
+ - vertebra_t3
67
+ - vertebra_t4
68
+ - vertebra_t5
69
+ - vertebra_t6
70
+ - vertebra_t7
71
+ - vertebra_t8
72
+ - vertebra_t9
73
+ - vertebra_t10
74
+ - vertebra_t11
75
+ - vertebra_t12
76
+ - vertebra_l1
77
+ - vertebra_l2
78
+ - vertebra_l3
79
+ - vertebra_l4
80
+ - vertebra_l5
81
+ - hips
82
+ - sacrum
83
+ - kidneys
84
+ - liver
85
+ - spleen
86
+ - lungs
87
+ - heart
members/flux0375/label_schema.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label_names": [
3
+ "background",
4
+ "skull",
5
+ "scapulae",
6
+ "clavicles",
7
+ "humeri",
8
+ "phalanges",
9
+ "metacarpals",
10
+ "carpals",
11
+ "radii",
12
+ "ulnae",
13
+ "tibiae",
14
+ "femurs",
15
+ "patellae",
16
+ "fibulae",
17
+ "metatarsals",
18
+ "tarsals",
19
+ "toes",
20
+ "rib_1",
21
+ "rib_2",
22
+ "rib_3",
23
+ "rib_4",
24
+ "rib_5",
25
+ "rib_6",
26
+ "rib_7",
27
+ "rib_8",
28
+ "rib_9",
29
+ "rib_10",
30
+ "rib_11",
31
+ "rib_12",
32
+ "sternum",
33
+ "vertebra_c1",
34
+ "vertebra_c2",
35
+ "vertebra_c3",
36
+ "vertebra_c4",
37
+ "vertebra_c5",
38
+ "vertebra_c6",
39
+ "vertebra_c7",
40
+ "vertebra_t1",
41
+ "vertebra_t2",
42
+ "vertebra_t3",
43
+ "vertebra_t4",
44
+ "vertebra_t5",
45
+ "vertebra_t6",
46
+ "vertebra_t7",
47
+ "vertebra_t8",
48
+ "vertebra_t9",
49
+ "vertebra_t10",
50
+ "vertebra_t11",
51
+ "vertebra_t12",
52
+ "vertebra_l1",
53
+ "vertebra_l2",
54
+ "vertebra_l3",
55
+ "vertebra_l4",
56
+ "vertebra_l5",
57
+ "hips",
58
+ "sacrum",
59
+ "kidneys",
60
+ "liver",
61
+ "spleen",
62
+ "lungs",
63
+ "heart"
64
+ ],
65
+ "label_order_verified": true,
66
+ "model_id": "VictorButoi/flexray",
67
+ "num_labels": 61,
68
+ "schema_version": 1,
69
+ "weights_license": "CC-BY-NC-4.0"
70
+ }
model.safetensors → members/flux0375/model.safetensors RENAMED
File without changes
onnx/flexray-base-256-fp16.onnx → members/flux0375/onnx/flexray-flux0375-256-fp16.onnx RENAMED
File without changes
members/flux0375/preprocessing.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "color_mode": "grayscale",
3
+ "image_size": [
4
+ 256,
5
+ 256
6
+ ],
7
+ "mean": null,
8
+ "normalization": {
9
+ "eps": 1e-08,
10
+ "percentiles": [
11
+ 0.5,
12
+ 99.5
13
+ ],
14
+ "scheme": "percentile_minmax"
15
+ },
16
+ "pad_to_square": true,
17
+ "probability_mode": "multilabel",
18
+ "scale": "zero_one",
19
+ "std": null
20
+ }
members/flux050/checksums.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "algorithm": "sha256",
3
+ "files": {
4
+ "config.yml": "7c7d52b2404d5e3cb5347036feac994ab8b8a18dd6bef5cfa47b749077af727a",
5
+ "label_schema.json": "6f60e2369859b7e17e275c04394c9ec33ac194a8118111577886b1c7fd3cf9f5",
6
+ "model.safetensors": "ebf580d17ad55c6316698e293837a11540c98dee07583812fe77690affed3edd",
7
+ "preprocessing.json": "5994ede07dc359e7fd62215ed1e97b811360fccacb6327bd91b6def439926155"
8
+ }
9
+ }
members/flux050/config.yml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model:
2
+ _class: fxr.models.UNet
3
+ in_channels: 1
4
+ out_channels: 61
5
+ filters:
6
+ - 64
7
+ - 128
8
+ - 256
9
+ - 512
10
+ - 512
11
+ - 720
12
+ - 1024
13
+ convs_per_block: 3
14
+ bottleneck_convs: null
15
+ skip_connections: true
16
+ dropout: 0.0
17
+ norm: instance
18
+ residual: true
19
+ norm_after_activation: true
20
+ upsample_align_corners: true
21
+ residual_projection: auto
22
+ residual_shortcut_norm: true
23
+ protocol:
24
+ name: all_structures_flexray_v4
25
+ model_labels:
26
+ names:
27
+ - background
28
+ - skull
29
+ - scapulae
30
+ - clavicles
31
+ - humeri
32
+ - phalanges
33
+ - metacarpals
34
+ - carpals
35
+ - radii
36
+ - ulnae
37
+ - tibiae
38
+ - femurs
39
+ - patellae
40
+ - fibulae
41
+ - metatarsals
42
+ - tarsals
43
+ - toes
44
+ - rib_1
45
+ - rib_2
46
+ - rib_3
47
+ - rib_4
48
+ - rib_5
49
+ - rib_6
50
+ - rib_7
51
+ - rib_8
52
+ - rib_9
53
+ - rib_10
54
+ - rib_11
55
+ - rib_12
56
+ - sternum
57
+ - vertebra_c1
58
+ - vertebra_c2
59
+ - vertebra_c3
60
+ - vertebra_c4
61
+ - vertebra_c5
62
+ - vertebra_c6
63
+ - vertebra_c7
64
+ - vertebra_t1
65
+ - vertebra_t2
66
+ - vertebra_t3
67
+ - vertebra_t4
68
+ - vertebra_t5
69
+ - vertebra_t6
70
+ - vertebra_t7
71
+ - vertebra_t8
72
+ - vertebra_t9
73
+ - vertebra_t10
74
+ - vertebra_t11
75
+ - vertebra_t12
76
+ - vertebra_l1
77
+ - vertebra_l2
78
+ - vertebra_l3
79
+ - vertebra_l4
80
+ - vertebra_l5
81
+ - hips
82
+ - sacrum
83
+ - kidneys
84
+ - liver
85
+ - spleen
86
+ - lungs
87
+ - heart
members/flux050/label_schema.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label_names": [
3
+ "background",
4
+ "skull",
5
+ "scapulae",
6
+ "clavicles",
7
+ "humeri",
8
+ "phalanges",
9
+ "metacarpals",
10
+ "carpals",
11
+ "radii",
12
+ "ulnae",
13
+ "tibiae",
14
+ "femurs",
15
+ "patellae",
16
+ "fibulae",
17
+ "metatarsals",
18
+ "tarsals",
19
+ "toes",
20
+ "rib_1",
21
+ "rib_2",
22
+ "rib_3",
23
+ "rib_4",
24
+ "rib_5",
25
+ "rib_6",
26
+ "rib_7",
27
+ "rib_8",
28
+ "rib_9",
29
+ "rib_10",
30
+ "rib_11",
31
+ "rib_12",
32
+ "sternum",
33
+ "vertebra_c1",
34
+ "vertebra_c2",
35
+ "vertebra_c3",
36
+ "vertebra_c4",
37
+ "vertebra_c5",
38
+ "vertebra_c6",
39
+ "vertebra_c7",
40
+ "vertebra_t1",
41
+ "vertebra_t2",
42
+ "vertebra_t3",
43
+ "vertebra_t4",
44
+ "vertebra_t5",
45
+ "vertebra_t6",
46
+ "vertebra_t7",
47
+ "vertebra_t8",
48
+ "vertebra_t9",
49
+ "vertebra_t10",
50
+ "vertebra_t11",
51
+ "vertebra_t12",
52
+ "vertebra_l1",
53
+ "vertebra_l2",
54
+ "vertebra_l3",
55
+ "vertebra_l4",
56
+ "vertebra_l5",
57
+ "hips",
58
+ "sacrum",
59
+ "kidneys",
60
+ "liver",
61
+ "spleen",
62
+ "lungs",
63
+ "heart"
64
+ ],
65
+ "label_order_verified": true,
66
+ "model_id": "VictorButoi/flexray",
67
+ "num_labels": 61,
68
+ "schema_version": 1,
69
+ "weights_license": "CC-BY-NC-4.0"
70
+ }
members/flux050/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebf580d17ad55c6316698e293837a11540c98dee07583812fe77690affed3edd
3
+ size 405630476
members/flux050/onnx/flexray-flux050-256-fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b729e19adf45956f081d3ac6093ea5f64147289b4ae2bb4e52ae07aafc3b8505
3
+ size 203297320
members/flux050/preprocessing.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "color_mode": "grayscale",
3
+ "image_size": [
4
+ 256,
5
+ 256
6
+ ],
7
+ "mean": null,
8
+ "normalization": {
9
+ "eps": 1e-08,
10
+ "percentiles": [
11
+ 0.5,
12
+ 99.5
13
+ ],
14
+ "scheme": "percentile_minmax"
15
+ },
16
+ "pad_to_square": true,
17
+ "probability_mode": "multilabel",
18
+ "scale": "zero_one",
19
+ "std": null
20
+ }
members/flux075/checksums.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "algorithm": "sha256",
3
+ "files": {
4
+ "config.yml": "7c7d52b2404d5e3cb5347036feac994ab8b8a18dd6bef5cfa47b749077af727a",
5
+ "label_schema.json": "6f60e2369859b7e17e275c04394c9ec33ac194a8118111577886b1c7fd3cf9f5",
6
+ "model.safetensors": "177a0bbc27d350c6a47de355b075a113882f5fb3fcd6d0e1314d7adf54821a5c",
7
+ "preprocessing.json": "5994ede07dc359e7fd62215ed1e97b811360fccacb6327bd91b6def439926155"
8
+ }
9
+ }
members/flux075/config.yml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model:
2
+ _class: fxr.models.UNet
3
+ in_channels: 1
4
+ out_channels: 61
5
+ filters:
6
+ - 64
7
+ - 128
8
+ - 256
9
+ - 512
10
+ - 512
11
+ - 720
12
+ - 1024
13
+ convs_per_block: 3
14
+ bottleneck_convs: null
15
+ skip_connections: true
16
+ dropout: 0.0
17
+ norm: instance
18
+ residual: true
19
+ norm_after_activation: true
20
+ upsample_align_corners: true
21
+ residual_projection: auto
22
+ residual_shortcut_norm: true
23
+ protocol:
24
+ name: all_structures_flexray_v4
25
+ model_labels:
26
+ names:
27
+ - background
28
+ - skull
29
+ - scapulae
30
+ - clavicles
31
+ - humeri
32
+ - phalanges
33
+ - metacarpals
34
+ - carpals
35
+ - radii
36
+ - ulnae
37
+ - tibiae
38
+ - femurs
39
+ - patellae
40
+ - fibulae
41
+ - metatarsals
42
+ - tarsals
43
+ - toes
44
+ - rib_1
45
+ - rib_2
46
+ - rib_3
47
+ - rib_4
48
+ - rib_5
49
+ - rib_6
50
+ - rib_7
51
+ - rib_8
52
+ - rib_9
53
+ - rib_10
54
+ - rib_11
55
+ - rib_12
56
+ - sternum
57
+ - vertebra_c1
58
+ - vertebra_c2
59
+ - vertebra_c3
60
+ - vertebra_c4
61
+ - vertebra_c5
62
+ - vertebra_c6
63
+ - vertebra_c7
64
+ - vertebra_t1
65
+ - vertebra_t2
66
+ - vertebra_t3
67
+ - vertebra_t4
68
+ - vertebra_t5
69
+ - vertebra_t6
70
+ - vertebra_t7
71
+ - vertebra_t8
72
+ - vertebra_t9
73
+ - vertebra_t10
74
+ - vertebra_t11
75
+ - vertebra_t12
76
+ - vertebra_l1
77
+ - vertebra_l2
78
+ - vertebra_l3
79
+ - vertebra_l4
80
+ - vertebra_l5
81
+ - hips
82
+ - sacrum
83
+ - kidneys
84
+ - liver
85
+ - spleen
86
+ - lungs
87
+ - heart
members/flux075/label_schema.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label_names": [
3
+ "background",
4
+ "skull",
5
+ "scapulae",
6
+ "clavicles",
7
+ "humeri",
8
+ "phalanges",
9
+ "metacarpals",
10
+ "carpals",
11
+ "radii",
12
+ "ulnae",
13
+ "tibiae",
14
+ "femurs",
15
+ "patellae",
16
+ "fibulae",
17
+ "metatarsals",
18
+ "tarsals",
19
+ "toes",
20
+ "rib_1",
21
+ "rib_2",
22
+ "rib_3",
23
+ "rib_4",
24
+ "rib_5",
25
+ "rib_6",
26
+ "rib_7",
27
+ "rib_8",
28
+ "rib_9",
29
+ "rib_10",
30
+ "rib_11",
31
+ "rib_12",
32
+ "sternum",
33
+ "vertebra_c1",
34
+ "vertebra_c2",
35
+ "vertebra_c3",
36
+ "vertebra_c4",
37
+ "vertebra_c5",
38
+ "vertebra_c6",
39
+ "vertebra_c7",
40
+ "vertebra_t1",
41
+ "vertebra_t2",
42
+ "vertebra_t3",
43
+ "vertebra_t4",
44
+ "vertebra_t5",
45
+ "vertebra_t6",
46
+ "vertebra_t7",
47
+ "vertebra_t8",
48
+ "vertebra_t9",
49
+ "vertebra_t10",
50
+ "vertebra_t11",
51
+ "vertebra_t12",
52
+ "vertebra_l1",
53
+ "vertebra_l2",
54
+ "vertebra_l3",
55
+ "vertebra_l4",
56
+ "vertebra_l5",
57
+ "hips",
58
+ "sacrum",
59
+ "kidneys",
60
+ "liver",
61
+ "spleen",
62
+ "lungs",
63
+ "heart"
64
+ ],
65
+ "label_order_verified": true,
66
+ "model_id": "VictorButoi/flexray",
67
+ "num_labels": 61,
68
+ "schema_version": 1,
69
+ "weights_license": "CC-BY-NC-4.0"
70
+ }
members/flux075/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:177a0bbc27d350c6a47de355b075a113882f5fb3fcd6d0e1314d7adf54821a5c
3
+ size 405630476
members/flux075/onnx/flexray-flux075-256-fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d94b18c53e5d47c65aaeede0155f9c4b557df1a2e7fd926b43dc992e21521c63
3
+ size 203297320
members/flux075/preprocessing.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "color_mode": "grayscale",
3
+ "image_size": [
4
+ 256,
5
+ 256
6
+ ],
7
+ "mean": null,
8
+ "normalization": {
9
+ "eps": 1e-08,
10
+ "percentiles": [
11
+ 0.5,
12
+ 99.5
13
+ ],
14
+ "scheme": "percentile_minmax"
15
+ },
16
+ "pad_to_square": true,
17
+ "probability_mode": "multilabel",
18
+ "scale": "zero_one",
19
+ "std": null
20
+ }