Commit ·
f6efb0e
0
Parent(s):
Co-authored-by: nielsr <nielsr@users.noreply.huggingface.co>
Co-authored-by: MrGiovanni <MrGiovanni@users.noreply.huggingface.co>
- .gitattributes +61 -0
- LICENSE.txt +328 -0
- MerlinPlus_manifest.csv +0 -0
- MerlinPlus_part001of025_1000cases.tar.gz +3 -0
- MerlinPlus_part002of025_1000cases.tar.gz +3 -0
- MerlinPlus_part003of025_1000cases.tar.gz +3 -0
- MerlinPlus_part004of025_1000cases.tar.gz +3 -0
- MerlinPlus_part005of025_1000cases.tar.gz +3 -0
- MerlinPlus_part006of025_1000cases.tar.gz +3 -0
- MerlinPlus_part007of025_1000cases.tar.gz +3 -0
- MerlinPlus_part008of025_1000cases.tar.gz +3 -0
- MerlinPlus_part009of025_1000cases.tar.gz +3 -0
- MerlinPlus_part010of025_1000cases.tar.gz +3 -0
- MerlinPlus_part011of025_1000cases.tar.gz +3 -0
- MerlinPlus_part012of025_1000cases.tar.gz +3 -0
- MerlinPlus_part013of025_1000cases.tar.gz +3 -0
- MerlinPlus_part014of025_1000cases.tar.gz +3 -0
- MerlinPlus_part015of025_1000cases.tar.gz +3 -0
- MerlinPlus_part016of025_1000cases.tar.gz +3 -0
- MerlinPlus_part017of025_1000cases.tar.gz +3 -0
- MerlinPlus_part018of025_1000cases.tar.gz +3 -0
- MerlinPlus_part019of025_1000cases.tar.gz +3 -0
- MerlinPlus_part020of025_1000cases.tar.gz +3 -0
- MerlinPlus_part021of025_1000cases.tar.gz +3 -0
- MerlinPlus_part022of025_1000cases.tar.gz +3 -0
- MerlinPlus_part023of025_1000cases.tar.gz +3 -0
- MerlinPlus_part024of025_1000cases.tar.gz +3 -0
- MerlinPlus_part025of025_1470cases.tar.gz +3 -0
- README.md +239 -0
- documents/MICCAI2026-Merlin-Plus.pdf +3 -0
- documents/longitudinal_example.png +3 -0
- documents/longitudinal_statistics.png +3 -0
- documents/performance_merlin_comparison.png +3 -0
- documents/performance_public_models.png +3 -0
- documents/tumor_examples.png +3 -0
- documents/tumor_mask_counts.png +3 -0
- merlin_longitudinal_metadata.csv +0 -0
- unzip.sh +174 -0
.gitattributes
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
# Audio files - uncompressed
|
| 39 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
# Audio files - compressed
|
| 43 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
# Image files - uncompressed
|
| 49 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
# Image files - compressed
|
| 54 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
# Video files - compressed
|
| 58 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
documents/MICCAI2026-Merlin-Plus.pptx filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
documents/MICCAI2026-Merlin-Plus.pdf filter=lfs diff=lfs merge=lfs -text
|
LICENSE.txt
ADDED
|
@@ -0,0 +1,328 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
© The Johns Hopkins University. This work is openly licensed via CC BY-NC-ND.
|
| 2 |
+
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0
|
| 3 |
+
International Public License
|
| 4 |
+
|
| 5 |
+
By exercising the Licensed Rights (defined below), You accept and agree
|
| 6 |
+
to be bound by the terms and conditions of this Creative Commons
|
| 7 |
+
Attribution-NonCommercial-NoDerivatives 4.0 International Public
|
| 8 |
+
License ("Public License"). To the extent this Public License may be
|
| 9 |
+
interpreted as a contract, You are granted the Licensed Rights in
|
| 10 |
+
consideration of Your acceptance of these terms and conditions, and the
|
| 11 |
+
Licensor grants You such rights in consideration of benefits the
|
| 12 |
+
Licensor receives from making the Licensed Material available under
|
| 13 |
+
these terms and conditions.
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
Section 1 -- Definitions.
|
| 17 |
+
|
| 18 |
+
a. Adapted Material means material subject to Copyright and Similar
|
| 19 |
+
Rights that is derived from or based upon the Licensed Material
|
| 20 |
+
and in which the Licensed Material is translated, altered,
|
| 21 |
+
arranged, transformed, or otherwise modified in a manner requiring
|
| 22 |
+
permission under the Copyright and Similar Rights held by the
|
| 23 |
+
Licensor. For purposes of this Public License, where the Licensed
|
| 24 |
+
Material is a musical work, performance, or sound recording,
|
| 25 |
+
Adapted Material is always produced where the Licensed Material is
|
| 26 |
+
synched in timed relation with a moving image.
|
| 27 |
+
|
| 28 |
+
b. Copyright and Similar Rights means copyright and/or similar rights
|
| 29 |
+
closely related to copyright including, without limitation,
|
| 30 |
+
performance, broadcast, sound recording, and Sui Generis Database
|
| 31 |
+
Rights, without regard to how the rights are labeled or
|
| 32 |
+
categorized. For purposes of this Public License, the rights
|
| 33 |
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
| 34 |
+
Rights.
|
| 35 |
+
|
| 36 |
+
c. Effective Technological Measures means those measures that, in the
|
| 37 |
+
absence of proper authority, may not be circumvented under laws
|
| 38 |
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
| 39 |
+
Treaty adopted on December 20, 1996, and/or similar international
|
| 40 |
+
agreements.
|
| 41 |
+
|
| 42 |
+
d. Exceptions and Limitations means fair use, fair dealing, and/or
|
| 43 |
+
any other exception or limitation to Copyright and Similar Rights
|
| 44 |
+
that applies to Your use of the Licensed Material.
|
| 45 |
+
|
| 46 |
+
e. Licensed Material means the artistic or literary work, database,
|
| 47 |
+
or other material to which the Licensor applied this Public
|
| 48 |
+
License.
|
| 49 |
+
|
| 50 |
+
f. Licensed Rights means the rights granted to You subject to the
|
| 51 |
+
terms and conditions of this Public License, which are limited to
|
| 52 |
+
all Copyright and Similar Rights that apply to Your use of the
|
| 53 |
+
Licensed Material and that the Licensor has authority to license.
|
| 54 |
+
|
| 55 |
+
g. Licensor means the individual(s) or entity(ies) granting rights
|
| 56 |
+
under this Public License.
|
| 57 |
+
|
| 58 |
+
h. NonCommercial means not primarily intended for or directed towards
|
| 59 |
+
commercial advantage or monetary compensation. For purposes of
|
| 60 |
+
this Public License, the exchange of the Licensed Material for
|
| 61 |
+
other material subject to Copyright and Similar Rights by digital
|
| 62 |
+
file-sharing or similar means is NonCommercial provided there is
|
| 63 |
+
no payment of monetary compensation in connection with the
|
| 64 |
+
exchange.
|
| 65 |
+
|
| 66 |
+
i. Share means to provide material to the public by any means or
|
| 67 |
+
process that requires permission under the Licensed Rights, such
|
| 68 |
+
as reproduction, public display, public performance, distribution,
|
| 69 |
+
dissemination, communication, or importation, and to make material
|
| 70 |
+
available to the public including in ways that members of the
|
| 71 |
+
public may access the material from a place and at a time
|
| 72 |
+
individually chosen by them.
|
| 73 |
+
|
| 74 |
+
j. Sui Generis Database Rights means rights other than copyright
|
| 75 |
+
resulting from Directive 96/9/EC of the European Parliament and of
|
| 76 |
+
the Council of 11 March 1996 on the legal protection of databases,
|
| 77 |
+
as amended and/or succeeded, as well as other essentially
|
| 78 |
+
equivalent rights anywhere in the world.
|
| 79 |
+
|
| 80 |
+
k. You means the individual or entity exercising the Licensed Rights
|
| 81 |
+
under this Public License. Your has a corresponding meaning.
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
Section 2 -- Scope.
|
| 85 |
+
|
| 86 |
+
a. License grant.
|
| 87 |
+
|
| 88 |
+
1. Subject to the terms and conditions of this Public License,
|
| 89 |
+
the Licensor hereby grants You a worldwide, royalty-free,
|
| 90 |
+
non-sublicensable, non-exclusive, irrevocable license to
|
| 91 |
+
exercise the Licensed Rights in the Licensed Material to:
|
| 92 |
+
|
| 93 |
+
a. reproduce and Share the Licensed Material, in whole or
|
| 94 |
+
in part, for NonCommercial purposes only; and
|
| 95 |
+
|
| 96 |
+
b. produce and reproduce, but not Share, Adapted Material
|
| 97 |
+
for NonCommercial purposes only.
|
| 98 |
+
|
| 99 |
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
| 100 |
+
Exceptions and Limitations apply to Your use, this Public
|
| 101 |
+
License does not apply, and You do not need to comply with
|
| 102 |
+
its terms and conditions.
|
| 103 |
+
|
| 104 |
+
3. Term. The term of this Public License is specified in Section
|
| 105 |
+
6(a).
|
| 106 |
+
|
| 107 |
+
4. Media and formats; technical modifications allowed. The
|
| 108 |
+
Licensor authorizes You to exercise the Licensed Rights in
|
| 109 |
+
all media and formats whether now known or hereafter created,
|
| 110 |
+
and to make technical modifications necessary to do so. The
|
| 111 |
+
Licensor waives and/or agrees not to assert any right or
|
| 112 |
+
authority to forbid You from making technical modifications
|
| 113 |
+
necessary to exercise the Licensed Rights, including
|
| 114 |
+
technical modifications necessary to circumvent Effective
|
| 115 |
+
Technological Measures. For purposes of this Public License,
|
| 116 |
+
simply making modifications authorized by this Section 2(a)
|
| 117 |
+
(4) never produces Adapted Material.
|
| 118 |
+
|
| 119 |
+
5. Downstream recipients.
|
| 120 |
+
|
| 121 |
+
a. Offer from the Licensor -- Licensed Material. Every
|
| 122 |
+
recipient of the Licensed Material automatically
|
| 123 |
+
receives an offer from the Licensor to exercise the
|
| 124 |
+
Licensed Rights under the terms and conditions of this
|
| 125 |
+
Public License.
|
| 126 |
+
|
| 127 |
+
b. No downstream restrictions. You may not offer or impose
|
| 128 |
+
any additional or different terms or conditions on, or
|
| 129 |
+
apply any Effective Technological Measures to, the
|
| 130 |
+
Licensed Material if doing so restricts exercise of the
|
| 131 |
+
Licensed Rights by any recipient of the Licensed
|
| 132 |
+
Material.
|
| 133 |
+
|
| 134 |
+
6. No endorsement. Nothing in this Public License constitutes or
|
| 135 |
+
may be construed as permission to assert or imply that You
|
| 136 |
+
are, or that Your use of the Licensed Material is, connected
|
| 137 |
+
with, or sponsored, endorsed, or granted official status by,
|
| 138 |
+
the Licensor or others designated to receive attribution as
|
| 139 |
+
provided in Section 3(a)(1)(A)(i).
|
| 140 |
+
|
| 141 |
+
b. Other rights.
|
| 142 |
+
|
| 143 |
+
1. Moral rights, such as the right of integrity, are not
|
| 144 |
+
licensed under this Public License, nor are publicity,
|
| 145 |
+
privacy, and/or other similar personality rights; however, to
|
| 146 |
+
the extent possible, the Licensor waives and/or agrees not to
|
| 147 |
+
assert any such rights held by the Licensor to the limited
|
| 148 |
+
extent necessary to allow You to exercise the Licensed
|
| 149 |
+
Rights, but not otherwise.
|
| 150 |
+
|
| 151 |
+
2. Patent and trademark rights are not licensed under this
|
| 152 |
+
Public License.
|
| 153 |
+
|
| 154 |
+
3. To the extent possible, the Licensor waives any right to
|
| 155 |
+
collect royalties from You for the exercise of the Licensed
|
| 156 |
+
Rights, whether directly or through a collecting society
|
| 157 |
+
under any voluntary or waivable statutory or compulsory
|
| 158 |
+
licensing scheme. In all other cases the Licensor expressly
|
| 159 |
+
reserves any right to collect such royalties, including when
|
| 160 |
+
the Licensed Material is used other than for NonCommercial
|
| 161 |
+
purposes.
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
Section 3 -- License Conditions.
|
| 165 |
+
|
| 166 |
+
Your exercise of the Licensed Rights is expressly made subject to the
|
| 167 |
+
following conditions.
|
| 168 |
+
|
| 169 |
+
a. Attribution.
|
| 170 |
+
|
| 171 |
+
1. If You Share the Licensed Material, You must:
|
| 172 |
+
|
| 173 |
+
a. retain the following if it is supplied by the Licensor
|
| 174 |
+
with the Licensed Material:
|
| 175 |
+
|
| 176 |
+
i. identification of the creator(s) of the Licensed
|
| 177 |
+
Material and any others designated to receive
|
| 178 |
+
attribution, in any reasonable manner requested by
|
| 179 |
+
the Licensor (including by pseudonym if
|
| 180 |
+
designated);
|
| 181 |
+
|
| 182 |
+
ii. a copyright notice;
|
| 183 |
+
|
| 184 |
+
iii. a notice that refers to this Public License;
|
| 185 |
+
|
| 186 |
+
iv. a notice that refers to the disclaimer of
|
| 187 |
+
warranties;
|
| 188 |
+
|
| 189 |
+
v. a URI or hyperlink to the Licensed Material to the
|
| 190 |
+
extent reasonably practicable;
|
| 191 |
+
|
| 192 |
+
b. indicate if You modified the Licensed Material and
|
| 193 |
+
retain an indication of any previous modifications; and
|
| 194 |
+
|
| 195 |
+
c. indicate the Licensed Material is licensed under this
|
| 196 |
+
Public License, and include the text of, or the URI or
|
| 197 |
+
hyperlink to, this Public License.
|
| 198 |
+
|
| 199 |
+
For the avoidance of doubt, You do not have permission under
|
| 200 |
+
this Public License to Share Adapted Material.
|
| 201 |
+
|
| 202 |
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
| 203 |
+
reasonable manner based on the medium, means, and context in
|
| 204 |
+
which You Share the Licensed Material. For example, it may be
|
| 205 |
+
reasonable to satisfy the conditions by providing a URI or
|
| 206 |
+
hyperlink to a resource that includes the required
|
| 207 |
+
information.
|
| 208 |
+
|
| 209 |
+
3. If requested by the Licensor, You must remove any of the
|
| 210 |
+
information required by Section 3(a)(1)(A) to the extent
|
| 211 |
+
reasonably practicable.
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
Section 4 -- Sui Generis Database Rights.
|
| 215 |
+
|
| 216 |
+
Where the Licensed Rights include Sui Generis Database Rights that
|
| 217 |
+
apply to Your use of the Licensed Material:
|
| 218 |
+
|
| 219 |
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
| 220 |
+
to extract, reuse, reproduce, and Share all or a substantial
|
| 221 |
+
portion of the contents of the database for NonCommercial purposes
|
| 222 |
+
only and provided You do not Share Adapted Material;
|
| 223 |
+
|
| 224 |
+
b. if You include all or a substantial portion of the database
|
| 225 |
+
contents in a database in which You have Sui Generis Database
|
| 226 |
+
Rights, then the database in which You have Sui Generis Database
|
| 227 |
+
Rights (but not its individual contents) is Adapted Material; and
|
| 228 |
+
|
| 229 |
+
c. You must comply with the conditions in Section 3(a) if You Share
|
| 230 |
+
all or a substantial portion of the contents of the database.
|
| 231 |
+
|
| 232 |
+
For the avoidance of doubt, this Section 4 supplements and does not
|
| 233 |
+
replace Your obligations under this Public License where the Licensed
|
| 234 |
+
Rights include other Copyright and Similar Rights.
|
| 235 |
+
|
| 236 |
+
|
| 237 |
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
| 238 |
+
|
| 239 |
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
| 240 |
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
| 241 |
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
| 242 |
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
| 243 |
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
| 244 |
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
| 245 |
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
| 246 |
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
| 247 |
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
| 248 |
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
| 249 |
+
|
| 250 |
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
| 251 |
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
| 252 |
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
| 253 |
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
| 254 |
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
| 255 |
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
| 256 |
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
| 257 |
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
| 258 |
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
| 259 |
+
|
| 260 |
+
c. The disclaimer of warranties and limitation of liability provided
|
| 261 |
+
above shall be interpreted in a manner that, to the extent
|
| 262 |
+
possible, most closely approximates an absolute disclaimer and
|
| 263 |
+
waiver of all liability.
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
Section 6 -- Term and Termination.
|
| 267 |
+
|
| 268 |
+
a. This Public License applies for the term of the Copyright and
|
| 269 |
+
Similar Rights licensed here. However, if You fail to comply with
|
| 270 |
+
this Public License, then Your rights under this Public License
|
| 271 |
+
terminate automatically.
|
| 272 |
+
|
| 273 |
+
b. Where Your right to use the Licensed Material has terminated under
|
| 274 |
+
Section 6(a), it reinstates:
|
| 275 |
+
|
| 276 |
+
1. automatically as of the date the violation is cured, provided
|
| 277 |
+
it is cured within 30 days of Your discovery of the
|
| 278 |
+
violation; or
|
| 279 |
+
|
| 280 |
+
2. upon express reinstatement by the Licensor.
|
| 281 |
+
|
| 282 |
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
| 283 |
+
right the Licensor may have to seek remedies for Your violations
|
| 284 |
+
of this Public License.
|
| 285 |
+
|
| 286 |
+
c. For the avoidance of doubt, the Licensor may also offer the
|
| 287 |
+
Licensed Material under separate terms or conditions or stop
|
| 288 |
+
distributing the Licensed Material at any time; however, doing so
|
| 289 |
+
will not terminate this Public License.
|
| 290 |
+
|
| 291 |
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
| 292 |
+
License.
|
| 293 |
+
|
| 294 |
+
|
| 295 |
+
Section 7 -- Other Terms and Conditions.
|
| 296 |
+
|
| 297 |
+
a. The Licensor shall not be bound by any additional or different
|
| 298 |
+
terms or conditions communicated by You unless expressly agreed.
|
| 299 |
+
|
| 300 |
+
b. Any arrangements, understandings, or agreements regarding the
|
| 301 |
+
Licensed Material not stated herein are separate from and
|
| 302 |
+
independent of the terms and conditions of this Public License.
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
Section 8 -- Interpretation.
|
| 306 |
+
|
| 307 |
+
a. For the avoidance of doubt, this Public License does not, and
|
| 308 |
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
| 309 |
+
conditions on any use of the Licensed Material that could lawfully
|
| 310 |
+
be made without permission under this Public License.
|
| 311 |
+
|
| 312 |
+
b. To the extent possible, if any provision of this Public License is
|
| 313 |
+
deemed unenforceable, it shall be automatically reformed to the
|
| 314 |
+
minimum extent necessary to make it enforceable. If the provision
|
| 315 |
+
cannot be reformed, it shall be severed from this Public License
|
| 316 |
+
without affecting the enforceability of the remaining terms and
|
| 317 |
+
conditions.
|
| 318 |
+
|
| 319 |
+
c. No term or condition of this Public License will be waived and no
|
| 320 |
+
failure to comply consented to unless expressly agreed to by the
|
| 321 |
+
Licensor.
|
| 322 |
+
|
| 323 |
+
d. Nothing in this Public License constitutes or may be interpreted
|
| 324 |
+
as a limitation upon, or waiver of, any privileges and immunities
|
| 325 |
+
that apply to the Licensor or You, including from the legal
|
| 326 |
+
processes of any jurisdiction or authority.
|
| 327 |
+
|
| 328 |
+
|
MerlinPlus_manifest.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MerlinPlus_part001of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c9e8645b5a2e04a7a78a645041c44e9b93aeaa4332804dd8f173144dcd95a69
|
| 3 |
+
size 2087972036
|
MerlinPlus_part002of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77ef63a7d9d24f368bd3d47c9affe7309a782a01b9aed152f9a131a3e091517e
|
| 3 |
+
size 2096712947
|
MerlinPlus_part003of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6ae460815fee54f7f13f82974a1cbffb84a0212b453bc1c3737278d257180ad
|
| 3 |
+
size 2047397224
|
MerlinPlus_part004of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28c0a994fbdba3ea99cf0d2237bff44ea0dd422915542e4b6255a117bbbf8936
|
| 3 |
+
size 2061747498
|
MerlinPlus_part005of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46050ba58335e66aabac2fb91064785fcdd75e58646079c92b29f3cd6e036a7b
|
| 3 |
+
size 2093702419
|
MerlinPlus_part006of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf02e43788e2960cce42aac193005647dc71c05f2c44775dacd05ec1d36075d2
|
| 3 |
+
size 2056333910
|
MerlinPlus_part007of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:799deeaebaf23dde2303ee42630926eb7bcbb76a1ea878040f43eafc6d7b21b7
|
| 3 |
+
size 2124262589
|
MerlinPlus_part008of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc9194bd7341b845d415b6b835afc0ddff55c9da248b680030e3bdd1790fbbf4
|
| 3 |
+
size 2090726058
|
MerlinPlus_part009of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e280aa801a4cd8484653d9f32963c634b19ec3d3d423a1e369fd1a584e83efed
|
| 3 |
+
size 2054071881
|
MerlinPlus_part010of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27e5d98189a4bc1f1f5eb0f46b585d442be63b643413829818c7a2022543a7db
|
| 3 |
+
size 2116752214
|
MerlinPlus_part011of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffbcf3c675ca912b503b17dfdbe009bb4378fb2c0c62c59d7e3c39ea8c328f94
|
| 3 |
+
size 2037512426
|
MerlinPlus_part012of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cbea94b37d164dcd866addcf12178e9fb9eae641cee9e9b89e9b9991a300e49b
|
| 3 |
+
size 2101764108
|
MerlinPlus_part013of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9978cbede6ef6d706b91f63cdf9642bc91925aa446783716a05eb883f3192f4
|
| 3 |
+
size 2101980174
|
MerlinPlus_part014of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8e072339c75e47cfaf82443b5149b88585a20fc03d4c60ec3eb8b851beca562
|
| 3 |
+
size 2101011417
|
MerlinPlus_part015of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ef3620b3f540e8d34b6575b3d0999c91a299f1d13fb5ac030a56843e3b99e03
|
| 3 |
+
size 2085270365
|
MerlinPlus_part016of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30eb197cba7efe915e99220c88114ebe4c6cc2cf30bd5c61a39587e1f61bf587
|
| 3 |
+
size 2083784513
|
MerlinPlus_part017of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9130a34d1b89fa6bebcc8f5c4f6e82f66f83bd78bc2e39ceda711f5c8817da95
|
| 3 |
+
size 2076508330
|
MerlinPlus_part018of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c08f9ea5d706eb21da1e2d35c9c4338e4603f30f1a13cf2b8416b6c4b8ace39f
|
| 3 |
+
size 2097236203
|
MerlinPlus_part019of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e70e55b81e415df405b120492b8cad263c87a29279bc4c97ae01045912cbf101
|
| 3 |
+
size 2090863996
|
MerlinPlus_part020of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1c4e9208d7bbee12047bebefbdbfb9f528277db4cae34780ce4b723af1c681b
|
| 3 |
+
size 2104838553
|
MerlinPlus_part021of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdba2d543fc9a246b7fb84a9f25def6ce79dcc8187688eaa0e23393d9dadb962
|
| 3 |
+
size 2098811303
|
MerlinPlus_part022of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94b56b2c4d213a6aa4e76329c03ab684e524198813dcff64b1903c00d5c04a7a
|
| 3 |
+
size 2075215264
|
MerlinPlus_part023of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02e0de09642a8b39a73b5b74a6c60ce9b6d99dd1754b144e7fe2e5a022550a88
|
| 3 |
+
size 2106039223
|
MerlinPlus_part024of025_1000cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b100ff6e0ecd0c16adf61251a8325a8788cae3ca438b2bce1baec2aacc05878
|
| 3 |
+
size 2088235091
|
MerlinPlus_part025of025_1470cases.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06ca197bd2ee113874054bd1a8788a30a7cc3b5f180c49a6ca841e11c13ef0a2
|
| 3 |
+
size 3061817696
|
README.md
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-segmentation
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
<p align="center">
|
| 8 |
+
<img src="documents/tumor_examples.png" alt="Examples of tumor annotations in Merlin Plus" width="100%">
|
| 9 |
+
</p>
|
| 10 |
+
|
| 11 |
+
<a href="https://huggingface.co/datasets/AbdomenAtlas/MerlinPlus">
|
| 12 |
+
<img src="https://img.shields.io/badge/🤗%20Hugging%20Face-Dataset-yellow">
|
| 13 |
+
</a>
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
<a href="https://stanford.redivis.com/datasets/bvj1-5hc2whwf6">
|
| 17 |
+
<img src="https://img.shields.io/badge/Stanford%20AIMI-Dataset-8C1515">
|
| 18 |
+
</a>
|
| 19 |
+
|
| 20 |
+
<a href="https://github.com/MrGiovanni/MerlinPlus">
|
| 21 |
+
<img src="https://img.shields.io/badge/GitHub-MerlinPlus-black?logo=github">
|
| 22 |
+
</a>
|
| 23 |
+
|
| 24 |
+
**Paper:** [Merlin Plus: A Large-Scale, Multi-cancer, Image-Mask-Report Dataset](https://huggingface.co/papers/2609.36436)
|
| 25 |
+
|
| 26 |
+
# Merlin Plus
|
| 27 |
+
|
| 28 |
+
This repository provides Merlin Plus, with **longitudinal metadata (patient IDs and scan dates) and per-voxel annotations for organs and 9 tumor types** in the Merlin dataset (Stanford, 25,494 CT scans).
|
| 29 |
+
Merlin Plus is part of a collaboration between the Merlin Project at Stanford and the R-Super Project at Johns Hopkins University.
|
| 30 |
+
|
| 31 |
+
>[!NOTE]
|
| 32 |
+
>We also release **AI models trained on Merlin Plus** for detecting and segmenting tumors in 9 organs!
|
| 33 |
+
>
|
| 34 |
+
><a href="#download-models"><img src="https://img.shields.io/badge/Download%20Models-2E7D8F?style=for-the-badge" alt="Download the trained models"></a>
|
| 35 |
+
|
| 36 |
+
# Per-voxel Masks for 9 Tumors and 44 organs
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
- **Tumor Masks**: 1,193 masks created by radiologists. They cover tumors in 9 organs, most of which were unavailable in previous segmentation datasets. All confirmed malignant tumors were annotated, plus over 200 benigns. Unannotated tumors encompass other benign tumors and cases where we could not confirm malignancy or radiologists could not clearly see the tumor.
|
| 41 |
+
|
| 42 |
+
<p align="center">
|
| 43 |
+
<img src="documents/tumor_mask_counts.png" alt="Radiologist-created tumor masks by organ; first public masks highlighted" width="100%">
|
| 44 |
+
</p>
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
- **Organ Masks**: created by AI models trained on more than 14,000 CT scans at Johns Hopkins University. Merlin Plus includes per-voxel annotations for **organs, blood vessels, organ parts** (liver and pancreas sub-segments), and ducts.
|
| 48 |
+
|
| 49 |
+
<details>
|
| 50 |
+
<summary style="margin-left: 25px;">Organ List</summary>
|
| 51 |
+
<div style="margin-left: 25px;">
|
| 52 |
+
|
| 53 |
+
```
|
| 54 |
+
adrenal gland left
|
| 55 |
+
adrenal gland right
|
| 56 |
+
aorta
|
| 57 |
+
bladder
|
| 58 |
+
cbd stent
|
| 59 |
+
celiac artery
|
| 60 |
+
celiac trunk
|
| 61 |
+
colon
|
| 62 |
+
common bile duct
|
| 63 |
+
duodenum
|
| 64 |
+
esophagus
|
| 65 |
+
femur left
|
| 66 |
+
femur right
|
| 67 |
+
gall bladder
|
| 68 |
+
hepatic vessels
|
| 69 |
+
intestine
|
| 70 |
+
kidney left
|
| 71 |
+
kidney right
|
| 72 |
+
liver
|
| 73 |
+
liver segment 1
|
| 74 |
+
liver segment 2
|
| 75 |
+
liver segment 3
|
| 76 |
+
liver segment 4
|
| 77 |
+
liver segment 5
|
| 78 |
+
liver segment 6
|
| 79 |
+
liver segment 7
|
| 80 |
+
liver segment 8
|
| 81 |
+
lung left
|
| 82 |
+
lung right
|
| 83 |
+
pancreas body
|
| 84 |
+
pancreas head
|
| 85 |
+
pancreas tail
|
| 86 |
+
pancreas
|
| 87 |
+
pancreatic duct
|
| 88 |
+
portal vein and splenic vein
|
| 89 |
+
postcava
|
| 90 |
+
prostate
|
| 91 |
+
rectum
|
| 92 |
+
renal vein left
|
| 93 |
+
renal vein right
|
| 94 |
+
spleen
|
| 95 |
+
stomach
|
| 96 |
+
superior mesenteric artery
|
| 97 |
+
superior mesenteric vein
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
</div>
|
| 101 |
+
</details>
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
- **Merlin Dataset**: Merlin Abdominal CT Dataset is an abdominal CT dataset consisting of 25,494 scans from 18,317 patients. Each scan is paired with its corresponding radiology report. The dataset includes abdominal and pelvis CT exams conducted between 2012 and 2018 at the Stanford Hospital.
|
| 105 |
+
|
| 106 |
+
# Paper
|
| 107 |
+
|
| 108 |
+
**Merlin Plus: A Large-Scale, Multi-cancer, Image-Mask-Report Dataset**
|
| 109 |
+
Pedro R. A. S. Bassi†, Wenxuan Li†, Szymon Płotka†, Ruby Honjol, Jakub Prządo, Xinze Zhou, Kang Wang, Yang Yang, Malte Jensen, Akshay S. Chaudhari, Curtis P. Langlotz, Alan L. Yuille, and Zongwei Zhou.
|
| 110 |
+
*MICCAI 2026, LNCS 16895. Springer Nature Switzerland.*
|
| 111 |
+
<a href="https://papers.miccai.org/miccai-2026/paper/4063_paper.pdf"><img src="https://img.shields.io/badge/Paper-PDF-purple" alt="Paper PDF"></a>
|
| 112 |
+
<a href="documents/MICCAI2026-Merlin-Plus.pdf"><img src="https://img.shields.io/badge/Poster-orange" alt="Poster"></a>
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
<b>Learning Segmentation from Radiology Reports</b> <br/>
|
| 116 |
+
[Pedro R. A. S. Bassi](https://scholar.google.com/citations?user=NftgL6gAAAAJ&hl=en), [Wenxuan Li](https://scholar.google.com/citations?hl=en&user=tpNZM2YAAAAJ), [Jieneng Chen](https://scholar.google.com/citations?user=yLYj88sAAAAJ&hl=zh-CN), Zheren Zhu, Tianyu Lin, [Sergio Decherchi](https://scholar.google.com/citations?user=T09qQ1IAAAAJ&hl=it), [Andrea Cavalli](https://scholar.google.com/citations?user=4xTOvaMAAAAJ&hl=en), [Kang Wang](https://radiology.ucsf.edu/people/kang-wang), [Yang Yang](https://scholar.google.com/citations?hl=en&user=6XsJUBIAAAAJ), [Alan Yuille](https://www.cs.jhu.edu/~ayuille/), [Zongwei Zhou](https://www.zongweiz.com/)* <br/>
|
| 117 |
+
*Johns Hopkins University* <br/>
|
| 118 |
+
MICCAI 2025 <br/>
|
| 119 |
+
<b>Best Paper Award Runner-up (top 2 in 1,027 papers)</b> <br/>
|
| 120 |
+
<a href='https://link.springer.com/chapter/10.1007/978-3-032-04971-1_29'><img src='https://img.shields.io/badge/Paper-PDF-purple'></a><a href='https://link.springer.com/chapter/10.1007/978-3-032-04971-1_29'><img src='https://img.shields.io/badge/Springer-Link-orange'></a>
|
| 121 |
+
|
| 122 |
+
<p align="center">
|
| 123 |
+
<img src="https://github.com/MrGiovanni/R-Super/raw/main/documents/miccai_2025_best_paper_award.png"
|
| 124 |
+
alt="Prize"
|
| 125 |
+
width="400">
|
| 126 |
+
</p>
|
| 127 |
+
|
| 128 |
+
<b>Merlin: A Vision Language Foundation Model for 3D Computed Tomography</b> <br/>
|
| 129 |
+
Louis Blankemeier, Joseph Paul Cohen, Ashwin Kumar, Dave Van Veen, Syed Jamal Safdar Gardezi, Magdalini Paschali, Zhihong Chen, Jean-Benoit Delbrouck, Eduardo Reis, Cesar Truyts, Christian Bluethgen, Malte Engmann Kjeldskov Jensen, Sophie Ostmeier, Maya Varma, Jeya Maria Jose Valanarasu, Zhongnan Fang, Zepeng Huo, Zaid Nabulsi, Diego Ardila, Wei-Hung Weng, Edson Amaro Junior, Neera Ahuja, Jason Fries, Nigam H. Shah, Andrew Johnston, Robert D. Boutin, Andrew Wentland, Curtis P. Langlotz, Jason Hom, Sergios Gatidis, Akshay S. Chaudhari <br/>
|
| 130 |
+
*Stanford University* <br/>
|
| 131 |
+
*Nature, 2026.*
|
| 132 |
+
<a href='https://www.nature.com/articles/s41586-026-10181-8'><img src='https://img.shields.io/badge/Paper-PDF-purple'></a>
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
# Download Data
|
| 136 |
+
|
| 137 |
+
- **Download the CT Scans and Reports**: https://stanfordaimi.azurewebsites.net/datasets/60b9c7ff-877b-48ce-96c3-0194c8205c40
|
| 138 |
+
|
| 139 |
+
- **Download the Longitudinal Metadata (patient IDs and scan dates):** https://huggingface.co/datasets/AbdomenAtlas/MerlinPlus/blob/main/merlin_longitudinal_metadata.csv
|
| 140 |
+
|
| 141 |
+
- **Download the Organ and Tumor Masks**:
|
| 142 |
+
|
| 143 |
+
```bash
|
| 144 |
+
pip install -U "huggingface_hub>=0.34"
|
| 145 |
+
hf download AbdomenAtlas/MerlinPlus --repo-type dataset --local-dir ./MerlinPlusCompressed
|
| 146 |
+
bash MerlinPlusCompressed/unzip.sh --archive_dir MerlinPlusCompressed --out_dir MerlinPlus --workers 6
|
| 147 |
+
```
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
# Longitudinal Data
|
| 152 |
+
|
| 153 |
+
Merlin Plus provides anonymized patient IDs and scan dates to link CT scans and reports over time. **3,830 patients have two or more scans.**
|
| 154 |
+
|
| 155 |
+
<p align="center">
|
| 156 |
+
<img src="documents/longitudinal_statistics.png" alt="Longitudinal cohort statistics, scans per patient, and observation duration" width="100%">
|
| 157 |
+
</p>
|
| 158 |
+
|
| 159 |
+
The example below shows prostate tumor growth across two time points, with corresponding CT images and radiology reports.
|
| 160 |
+
|
| 161 |
+
<p align="center">
|
| 162 |
+
<img src="documents/longitudinal_example.png" alt="Longitudinal prostate tumor example with CT scans and report excerpts 213 days apart" width="100%">
|
| 163 |
+
</p>
|
| 164 |
+
|
| 165 |
+
# Download Models
|
| 166 |
+
|
| 167 |
+
<div align="center">
|
| 168 |
+
|
| 169 |
+
| Name | Model | Weights |
|
| 170 |
+
|:---:|:---:|:---:|
|
| 171 |
+
| 🏆 **Merlin-Super** | [](https://github.com/MrGiovanni/R-Super) | [](https://huggingface.co/AbdomenAtlas/Merlin-Cancer-Super) |
|
| 172 |
+
| **Merlin-Net** | [](https://github.com/MIC-DKFZ/nnUNet) | [](https://huggingface.co/AbdomenAtlas/Merlin-Cancer-Net) |
|
| 173 |
+
|
| 174 |
+
</div>
|
| 175 |
+
|
| 176 |
+
- We welcome new submissions of models trained on Merlin Plus. Please contact psalvad2@jh.edu.
|
| 177 |
+
|
| 178 |
+
### Models trained on Merlin Plus surpass previous public AI models in tumor detection and segmentation
|
| 179 |
+
|
| 180 |
+
R-Super was the best performing tumor detection and segmentation model trained on Merlin Plus. R-Super is a novel AI training methodology that uses radiology reports and tumor masks to significantly improve tumor-segmentation AI. Merlin Plus makes R-Super easily reproducible for the medical AI community. Results below are averaged over the 9 tumor types.
|
| 181 |
+
|
| 182 |
+
<p align="center">
|
| 183 |
+
<img src="documents/performance_public_models.png" alt="Merlin Plus R-Super versus public models: detection F1 and segmentation Dice" width="100%">
|
| 184 |
+
</p>
|
| 185 |
+
|
| 186 |
+
**The value of masks: models trained on Merlin Plus surpass models trained on Merlin (no mask) in tumor detection and segmentation.**
|
| 187 |
+
|
| 188 |
+
<p align="center">
|
| 189 |
+
<img src="documents/performance_merlin_comparison.png" alt="Detection F1: Merlin Plus R-Super versus Merlin and a classification model" width="100%">
|
| 190 |
+
</p>
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
# Citations
|
| 195 |
+
If you use this data, please cite the papers below (Merlin Plus, R-Super, and Merlin Projects):
|
| 196 |
+
|
| 197 |
+
```bibtex
|
| 198 |
+
@InProceedings{BasPed_Merlin_MICCAI2026,
|
| 199 |
+
author = { Bassi, Pedro R. A. S. AND Li, Wenxuan AND Płotka, Szymon AND Honjol, Ruby AND Prządo, Jakub AND Zhou, Xinze AND Wang, Kang AND Yang, Yang AND Jensen, Malte AND Chaudhari, Akshay S. AND Langlotz, Curtis P. AND Yuille, Alan L. AND Zhou, Zongwei},
|
| 200 |
+
title = { { Merlin Plus: A Large-Scale, Multi-cancer, Image-Mask-Report Dataset } },
|
| 201 |
+
booktitle = {Medical Image Computing and Computer Assisted Intervention -- MICCAI 2026},
|
| 202 |
+
year = {2026},
|
| 203 |
+
publisher = {Springer Nature Switzerland},
|
| 204 |
+
volume = {LNCS 16895},
|
| 205 |
+
month = {September},
|
| 206 |
+
page = {pending}
|
| 207 |
+
}
|
| 208 |
+
|
| 209 |
+
@article{bassi2026large,
|
| 210 |
+
title={Large-Scale Multi-Cancer Detection by Learning Segmentation from Reports.},
|
| 211 |
+
author={Bassi, Pedro RAS and Zhou, Xinze and Li, Wenxuan and P{\l}otka, Szymon and Wasserthal, Jakob and Chen, Jieneng and Hamamci, Ibrahim Ethem and Er, Sezgin and Prz{\k{a}}do, Jakub and Zhu, Zheren and others},
|
| 212 |
+
journal={Research Square},
|
| 213 |
+
pages={rs--3},
|
| 214 |
+
year={2026}
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
@inproceedings{bassi2025learning,
|
| 218 |
+
title={Learning segmentation from radiology reports},
|
| 219 |
+
author={Bassi, Pedro RAS and Li, Wenxuan and Chen, Jieneng and Zhu, Zheren and Lin, Tianyu and Decherchi, Sergio and Cavalli, Andrea and Wang, Kang and Yang, Yang and Yuille, Alan L and others},
|
| 220 |
+
booktitle={International Conference on Medical Image Computing and Computer-Assisted Intervention},
|
| 221 |
+
pages={305--315},
|
| 222 |
+
year={2025},
|
| 223 |
+
organization={Springer}
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
@article{blankemeier_kumar2026merlin,
|
| 227 |
+
author = {Blankemeier, Louis and Kumar, Ashwin and Cohen, Joseph Paul and Liu, Jiaming and Liu, Longchao and Van Veen, Dave and Gardezi, Syed Jamal Safdar and Yu, Hongkun and Paschali, Magdalini and Chen, Zhihong and Delbrouck, Jean-Benoit and Reis, Eduardo and Holland, Robbie and Truyts, Cesar and Bluethgen, Christian and Wu, Yufu and Lian, Long and Jensen, Malte Engmann Kjeldskov and Ostmeier, Sophie and Varma, Maya and Valanarasu, Jeya Maria Jose and Fang, Zhongnan and Huo, Zepeng and Nabulsi, Zaid and Ardila, Diego and Weng, Wei-Hung and Amaro Junior, Edson and Ahuja, Neera and Fries, Jason and Shah, Nigam H. and Zaharchuk, Greg and Willis, Marc and Yala, Adam and Johnston, Andrew and Boutin, Robert D. and Wentland, Andrew and Langlotz, Curtis P. and Hom, Jason and Gatidis, Sergios and Chaudhari, Akshay S.},
|
| 228 |
+
title = {Merlin: a computed tomography vision-language foundation model and dataset},
|
| 229 |
+
journal = {Nature},
|
| 230 |
+
year = {2026},
|
| 231 |
+
doi = {10.1038/s41586-026-10181-8},
|
| 232 |
+
url = {https://doi.org/10.1038/s41586-026-10181-8}
|
| 233 |
+
}
|
| 234 |
+
|
| 235 |
+
```
|
| 236 |
+
|
| 237 |
+
## Acknowledgement
|
| 238 |
+
|
| 239 |
+
This work was supported by the McGovern Foundation and the Lustgarten Foundation for Pancreatic Cancer Research. Paper content is covered by patents pending. Commercial use is not allowed.
|
documents/MICCAI2026-Merlin-Plus.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2c727811654c87cbde6094487d55f9a8fcf2430272358ad9326ec7d8f6ca1457
|
| 3 |
+
size 2822352
|
documents/longitudinal_example.png
ADDED
|
Git LFS Details
|
documents/longitudinal_statistics.png
ADDED
|
Git LFS Details
|
documents/performance_merlin_comparison.png
ADDED
|
Git LFS Details
|
documents/performance_public_models.png
ADDED
|
Git LFS Details
|
documents/tumor_examples.png
ADDED
|
Git LFS Details
|
documents/tumor_mask_counts.png
ADDED
|
Git LFS Details
|
merlin_longitudinal_metadata.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
unzip.sh
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Restore a release folder from the archives produced by zip_release.py.
|
| 3 |
+
#
|
| 4 |
+
# Needs only bash, coreutils and tar (plus unzip, if any .zip archives are
|
| 5 |
+
# present). No Python, no pip.
|
| 6 |
+
#
|
| 7 |
+
# ./unzip_release.sh --archive_dir MerlinPlusCompressed --out_dir MerlinPlus --workers 6
|
| 8 |
+
#
|
| 9 |
+
# Progress is counted in files, not archives, so it moves continuously.
|
| 10 |
+
# Every archive's exit status is checked, tar's stderr is kept, and -- when the
|
| 11 |
+
# packing manifest is present -- the restored case list is compared against it.
|
| 12 |
+
|
| 13 |
+
set -uo pipefail
|
| 14 |
+
|
| 15 |
+
ARCHIVE_DIR=""; OUT_DIR=""; WORKERS=4; DRY=0; MANIFEST=""; KEEP_GOING=0
|
| 16 |
+
|
| 17 |
+
usage() {
|
| 18 |
+
sed -n '2,13p' "$0" | sed 's/^# \{0,1\}//'
|
| 19 |
+
cat <<'EOF'
|
| 20 |
+
|
| 21 |
+
Options:
|
| 22 |
+
--archive_dir DIR folder holding the archives (required)
|
| 23 |
+
--out_dir DIR where to rebuild the case folders (required)
|
| 24 |
+
--workers N archives extracted in parallel (default 4)
|
| 25 |
+
--manifest FILE packing manifest CSV (default: auto-detect *_manifest.csv)
|
| 26 |
+
--keep_going do not stop at the first failed archive
|
| 27 |
+
--dry_run list what would be extracted, then exit
|
| 28 |
+
-h, --help this message
|
| 29 |
+
EOF
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
while [ $# -gt 0 ]; do
|
| 33 |
+
case "$1" in
|
| 34 |
+
--archive_dir) ARCHIVE_DIR="$2"; shift 2 ;;
|
| 35 |
+
--out_dir) OUT_DIR="$2"; shift 2 ;;
|
| 36 |
+
--workers) WORKERS="$2"; shift 2 ;;
|
| 37 |
+
--manifest) MANIFEST="$2"; shift 2 ;;
|
| 38 |
+
--keep_going) KEEP_GOING=1; shift ;;
|
| 39 |
+
--dry_run) DRY=1; shift ;;
|
| 40 |
+
-h|--help) usage; exit 0 ;;
|
| 41 |
+
*) echo "unknown option: $1" >&2; usage >&2; exit 2 ;;
|
| 42 |
+
esac
|
| 43 |
+
done
|
| 44 |
+
|
| 45 |
+
[ -n "$ARCHIVE_DIR" ] && [ -n "$OUT_DIR" ] || { echo "--archive_dir and --out_dir are required" >&2; usage >&2; exit 2; }
|
| 46 |
+
[ -d "$ARCHIVE_DIR" ] || { echo "not a directory: $ARCHIVE_DIR" >&2; exit 2; }
|
| 47 |
+
command -v tar >/dev/null || { echo "tar not found" >&2; exit 2; }
|
| 48 |
+
|
| 49 |
+
# ---- collect archives (by extension, then confirmed below by tar/unzip itself)
|
| 50 |
+
ARCHIVES=()
|
| 51 |
+
while IFS= read -r f; do ARCHIVES+=("$f"); done < <(
|
| 52 |
+
find "$ARCHIVE_DIR" -maxdepth 1 -type f \
|
| 53 |
+
\( -name '*.tar.gz' -o -name '*.tgz' -o -name '*.tar' -o -name '*.zip' \) | sort)
|
| 54 |
+
[ "${#ARCHIVES[@]}" -gt 0 ] || { echo "no .tar/.tar.gz/.tgz/.zip archives in $ARCHIVE_DIR" >&2; exit 2; }
|
| 55 |
+
|
| 56 |
+
NARCH=${#ARCHIVES[@]}
|
| 57 |
+
echo "$NARCH archive(s) in $ARCHIVE_DIR"
|
| 58 |
+
for a in "${ARCHIVES[@]}"; do
|
| 59 |
+
printf ' %-46s %s\n' "$(basename "$a")" "$(du -h "$a" | cut -f1)"
|
| 60 |
+
done
|
| 61 |
+
echo "-> restoring into $OUT_DIR"
|
| 62 |
+
[ "$DRY" -eq 1 ] && exit 0
|
| 63 |
+
|
| 64 |
+
mkdir -p "$OUT_DIR" || exit 2
|
| 65 |
+
TMP="$(mktemp -d)" || exit 2
|
| 66 |
+
cleanup() { rm -rf "$TMP"; }
|
| 67 |
+
trap cleanup EXIT
|
| 68 |
+
|
| 69 |
+
# ---- one archive; writes a running file count so the parent can show progress
|
| 70 |
+
extract_one() {
|
| 71 |
+
a="$1"; out="$2"; tmp="$3"
|
| 72 |
+
name="$(basename "$a")"
|
| 73 |
+
cnt="$tmp/$name.cnt"; err="$tmp/$name.err"; rc_f="$tmp/$name.rc"
|
| 74 |
+
|
| 75 |
+
case "$name" in
|
| 76 |
+
*.zip)
|
| 77 |
+
if ! command -v unzip >/dev/null 2>&1; then
|
| 78 |
+
echo "unzip not installed; cannot extract $name" > "$err"
|
| 79 |
+
echo 127 > "$rc_f"; : > "$tmp/$name.done"; return
|
| 80 |
+
fi
|
| 81 |
+
# -o overwrite, -q quiet; count via the listing afterwards
|
| 82 |
+
unzip -o "$a" -d "$out" > "$tmp/$name.log" 2> "$err"
|
| 83 |
+
rc=$?
|
| 84 |
+
grep -c 'inflating\|extracting' "$tmp/$name.log" > "$cnt" 2>/dev/null || echo 0 > "$cnt"
|
| 85 |
+
rm -f "$tmp/$name.log"
|
| 86 |
+
;;
|
| 87 |
+
*)
|
| 88 |
+
# -x extract, -v list each member, -f file. tar auto-detects gzip.
|
| 89 |
+
# Leading "/" is stripped by tar; members are written under $out only.
|
| 90 |
+
tar -xvf "$a" -C "$out" 2> "$err" \
|
| 91 |
+
| awk -v f="$cnt" '
|
| 92 |
+
NR % 100 == 0 { printf "%d\n", NR > f; close(f) }
|
| 93 |
+
END { printf "%d\n", NR > f; close(f) }'
|
| 94 |
+
rc=${PIPESTATUS[0]}
|
| 95 |
+
;;
|
| 96 |
+
esac
|
| 97 |
+
echo "${rc:-0}" > "$rc_f"
|
| 98 |
+
: > "$tmp/$name.done"
|
| 99 |
+
}
|
| 100 |
+
export -f extract_one
|
| 101 |
+
|
| 102 |
+
# ---- progress: sum the per-archive counters ~once a second
|
| 103 |
+
monitor() {
|
| 104 |
+
start=$(date +%s)
|
| 105 |
+
while [ ! -f "$TMP/ALLDONE" ]; do
|
| 106 |
+
total=0
|
| 107 |
+
for c in "$TMP"/*.cnt; do
|
| 108 |
+
[ -f "$c" ] || continue
|
| 109 |
+
v="$(tail -n 1 "$c" 2>/dev/null)"
|
| 110 |
+
case "$v" in (*[!0-9]*|'') v=0 ;; esac
|
| 111 |
+
total=$((total + v))
|
| 112 |
+
done
|
| 113 |
+
done_n=$(find "$TMP" -maxdepth 1 -name '*.done' 2>/dev/null | wc -l)
|
| 114 |
+
el=$(( $(date +%s) - start )); [ "$el" -eq 0 ] && el=1
|
| 115 |
+
printf '\r extracted %d files | %d/%d archives | %ds | %d files/s ' \
|
| 116 |
+
"$total" "$done_n" "$NARCH" "$el" "$((total / el))"
|
| 117 |
+
sleep 1
|
| 118 |
+
done
|
| 119 |
+
}
|
| 120 |
+
monitor & MON=$!
|
| 121 |
+
|
| 122 |
+
printf '%s\0' "${ARCHIVES[@]}" \
|
| 123 |
+
| xargs -0 -P "$WORKERS" -I{} bash -c 'extract_one "$1" "$2" "$3"' _ {} "$OUT_DIR" "$TMP"
|
| 124 |
+
|
| 125 |
+
touch "$TMP/ALLDONE"; wait "$MON" 2>/dev/null; printf '\n'
|
| 126 |
+
|
| 127 |
+
# ---- report ------------------------------------------------------------
|
| 128 |
+
FAIL=0; TOTAL_FILES=0
|
| 129 |
+
echo
|
| 130 |
+
for a in "${ARCHIVES[@]}"; do
|
| 131 |
+
name="$(basename "$a")"
|
| 132 |
+
rc="$(cat "$TMP/$name.rc" 2>/dev/null || echo 1)"
|
| 133 |
+
n="$(tail -n 1 "$TMP/$name.cnt" 2>/dev/null || echo 0)"
|
| 134 |
+
case "$n" in (*[!0-9]*|'') n=0 ;; esac
|
| 135 |
+
TOTAL_FILES=$((TOTAL_FILES + n))
|
| 136 |
+
if [ "$rc" -eq 0 ]; then
|
| 137 |
+
printf ' %-46s OK %8d files\n' "$name" "$n"
|
| 138 |
+
else
|
| 139 |
+
FAIL=$((FAIL + 1))
|
| 140 |
+
printf ' %-46s FAILED (exit %s)\n' "$name" "$rc"
|
| 141 |
+
sed 's/^/ /' "$TMP/$name.err" 2>/dev/null | head -5
|
| 142 |
+
fi
|
| 143 |
+
done
|
| 144 |
+
|
| 145 |
+
CASES=$(find "$OUT_DIR" -mindepth 1 -maxdepth 1 -type d | wc -l)
|
| 146 |
+
echo
|
| 147 |
+
echo "$TOTAL_FILES files extracted | $CASES case folders in $OUT_DIR"
|
| 148 |
+
|
| 149 |
+
# ---- manifest cross-check ---------------------------------------------
|
| 150 |
+
if [ -z "$MANIFEST" ]; then
|
| 151 |
+
MANIFEST="$(find "$ARCHIVE_DIR" -maxdepth 1 -name '*_manifest.csv' | sort | head -1)"
|
| 152 |
+
fi
|
| 153 |
+
if [ -n "$MANIFEST" ] && [ -f "$MANIFEST" ]; then
|
| 154 |
+
tail -n +2 "$MANIFEST" | cut -d, -f2 | sed 's/[[:space:]]*$//' | sort -u > "$TMP/expect"
|
| 155 |
+
find "$OUT_DIR" -mindepth 1 -maxdepth 1 -type d | sed 's|.*/||' | sort -u > "$TMP/got"
|
| 156 |
+
MISS=$(comm -23 "$TMP/expect" "$TMP/got" | wc -l)
|
| 157 |
+
EXTRA=$(comm -13 "$TMP/expect" "$TMP/got" | wc -l)
|
| 158 |
+
echo "manifest $(basename "$MANIFEST"): expected $(wc -l < "$TMP/expect") cases, missing $MISS, unexpected $EXTRA"
|
| 159 |
+
if [ "$MISS" -gt 0 ]; then
|
| 160 |
+
echo " first missing:"; comm -23 "$TMP/expect" "$TMP/got" | head -5 | sed 's/^/ /'
|
| 161 |
+
FAIL=$((FAIL + 1))
|
| 162 |
+
fi
|
| 163 |
+
else
|
| 164 |
+
echo "manifest: none found -- cannot cross-check the case list"
|
| 165 |
+
fi
|
| 166 |
+
|
| 167 |
+
if [ "$FAIL" -gt 0 ]; then
|
| 168 |
+
echo
|
| 169 |
+
echo "FAILED: $FAIL problem(s) above."
|
| 170 |
+
[ "$KEEP_GOING" -eq 1 ] && exit 0
|
| 171 |
+
exit 1
|
| 172 |
+
fi
|
| 173 |
+
echo
|
| 174 |
+
echo "All archives extracted successfully."
|