YiZhaoJasper commited on
Commit
9cf7cd9
·
verified ·
1 Parent(s): 2541690

Upload TexJEPA trained checkpoints and model card

Browse files
LICENSE ADDED
@@ -0,0 +1,399 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Attribution-NonCommercial 4.0 International
2
+
3
+ =======================================================================
4
+
5
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
6
+ does not provide legal services or legal advice. Distribution of
7
+ Creative Commons public licenses does not create a lawyer-client or
8
+ other relationship. Creative Commons makes its licenses and related
9
+ information available on an "as-is" basis. Creative Commons gives no
10
+ warranties regarding its licenses, any material licensed under their
11
+ terms and conditions, or any related information. Creative Commons
12
+ disclaims all liability for damages resulting from their use to the
13
+ fullest extent possible.
14
+
15
+ Using Creative Commons Public Licenses
16
+
17
+ Creative Commons public licenses provide a standard set of terms and
18
+ conditions that creators and other rights holders may use to share
19
+ original works of authorship and other material subject to copyright
20
+ and certain other rights specified in the public license below. The
21
+ following considerations are for informational purposes only, are not
22
+ exhaustive, and do not form part of our licenses.
23
+
24
+ Considerations for licensors: Our public licenses are
25
+ intended for use by those authorized to give the public
26
+ permission to use material in ways otherwise restricted by
27
+ copyright and certain other rights. Our licenses are
28
+ irrevocable. Licensors should read and understand the terms
29
+ and conditions of the license they choose before applying it.
30
+ Licensors should also secure all rights necessary before
31
+ applying our licenses so that the public can reuse the
32
+ material as expected. Licensors should clearly mark any
33
+ material not subject to the license. This includes other CC-
34
+ licensed material, or material used under an exception or
35
+ limitation to copyright. More considerations for licensors:
36
+ wiki.creativecommons.org/Considerations_for_licensors
37
+
38
+ Considerations for the public: By using one of our public
39
+ licenses, a licensor grants the public permission to use the
40
+ licensed material under specified terms and conditions. If
41
+ the licensor's permission is not necessary for any reason--for
42
+ example, because of any applicable exception or limitation to
43
+ copyright--then that use is not regulated by the license. Our
44
+ licenses grant only permissions under copyright and certain
45
+ other rights that a licensor has authority to grant. Use of
46
+ the licensed material may still be restricted for other
47
+ reasons, including because others have copyright or other
48
+ rights in the material. A licensor may make special requests,
49
+ such as asking that all changes be marked or described.
50
+ Although not required by our licenses, you are encouraged to
51
+ respect those requests where reasonable. More_considerations
52
+ for the public:
53
+ wiki.creativecommons.org/Considerations_for_licensees
54
+
55
+ =======================================================================
56
+
57
+ Creative Commons Attribution-NonCommercial 4.0 International Public
58
+ License
59
+
60
+ By exercising the Licensed Rights (defined below), You accept and agree
61
+ to be bound by the terms and conditions of this Creative Commons
62
+ Attribution-NonCommercial 4.0 International Public License ("Public
63
+ License"). To the extent this Public License may be interpreted as a
64
+ contract, You are granted the Licensed Rights in consideration of Your
65
+ acceptance of these terms and conditions, and the Licensor grants You
66
+ such rights in consideration of benefits the Licensor receives from
67
+ making the Licensed Material available under these terms and
68
+ conditions.
69
+
70
+ Section 1 -- Definitions.
71
+
72
+ a. Adapted Material means material subject to Copyright and Similar
73
+ Rights that is derived from or based upon the Licensed Material
74
+ and in which the Licensed Material is translated, altered,
75
+ arranged, transformed, or otherwise modified in a manner requiring
76
+ permission under the Copyright and Similar Rights held by the
77
+ Licensor. For purposes of this Public License, where the Licensed
78
+ Material is a musical work, performance, or sound recording,
79
+ Adapted Material is always produced where the Licensed Material is
80
+ synched in timed relation with a moving image.
81
+
82
+ b. Adapter's License means the license You apply to Your Copyright
83
+ and Similar Rights in Your contributions to Adapted Material in
84
+ accordance with the terms and conditions of this Public License.
85
+
86
+ c. Copyright and Similar Rights means copyright and/or similar rights
87
+ closely related to copyright including, without limitation,
88
+ performance, broadcast, sound recording, and Sui Generis Database
89
+ Rights, without regard to how the rights are labeled or
90
+ categorized. For purposes of this Public License, the rights
91
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
92
+ Rights.
93
+ d. Effective Technological Measures means those measures that, in the
94
+ absence of proper authority, may not be circumvented under laws
95
+ fulfilling obligations under Article 11 of the WIPO Copyright
96
+ Treaty adopted on December 20, 1996, and/or similar international
97
+ agreements.
98
+
99
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
100
+ any other exception or limitation to Copyright and Similar Rights
101
+ that applies to Your use of the Licensed Material.
102
+
103
+ f. Licensed Material means the artistic or literary work, database,
104
+ or other material to which the Licensor applied this Public
105
+ License.
106
+
107
+ g. Licensed Rights means the rights granted to You subject to the
108
+ terms and conditions of this Public License, which are limited to
109
+ all Copyright and Similar Rights that apply to Your use of the
110
+ Licensed Material and that the Licensor has authority to license.
111
+
112
+ h. Licensor means the individual(s) or entity(ies) granting rights
113
+ under this Public License.
114
+
115
+ i. NonCommercial means not primarily intended for or directed towards
116
+ commercial advantage or monetary compensation. For purposes of
117
+ this Public License, the exchange of the Licensed Material for
118
+ other material subject to Copyright and Similar Rights by digital
119
+ file-sharing or similar means is NonCommercial provided there is
120
+ no payment of monetary compensation in connection with the
121
+ exchange.
122
+
123
+ j. Share means to provide material to the public by any means or
124
+ process that requires permission under the Licensed Rights, such
125
+ as reproduction, public display, public performance, distribution,
126
+ dissemination, communication, or importation, and to make material
127
+ available to the public including in ways that members of the
128
+ public may access the material from a place and at a time
129
+ individually chosen by them.
130
+
131
+ k. Sui Generis Database Rights means rights other than copyright
132
+ resulting from Directive 96/9/EC of the European Parliament and of
133
+ the Council of 11 March 1996 on the legal protection of databases,
134
+ as amended and/or succeeded, as well as other essentially
135
+ equivalent rights anywhere in the world.
136
+
137
+ l. You means the individual or entity exercising the Licensed Rights
138
+ under this Public License. Your has a corresponding meaning.
139
+
140
+ Section 2 -- Scope.
141
+
142
+ a. License grant.
143
+
144
+ 1. Subject to the terms and conditions of this Public License,
145
+ the Licensor hereby grants You a worldwide, royalty-free,
146
+ non-sublicensable, non-exclusive, irrevocable license to
147
+ exercise the Licensed Rights in the Licensed Material to:
148
+
149
+ a. reproduce and Share the Licensed Material, in whole or
150
+ in part, for NonCommercial purposes only; and
151
+
152
+ b. produce, reproduce, and Share Adapted Material for
153
+ NonCommercial purposes only.
154
+
155
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
156
+ Exceptions and Limitations apply to Your use, this Public
157
+ License does not apply, and You do not need to comply with
158
+ its terms and conditions.
159
+
160
+ 3. Term. The term of this Public License is specified in Section
161
+ 6(a).
162
+
163
+ 4. Media and formats; technical modifications allowed. The
164
+ Licensor authorizes You to exercise the Licensed Rights in
165
+ all media and formats whether now known or hereafter created,
166
+ and to make technical modifications necessary to do so. The
167
+ Licensor waives and/or agrees not to assert any right or
168
+ authority to forbid You from making technical modifications
169
+ necessary to exercise the Licensed Rights, including
170
+ technical modifications necessary to circumvent Effective
171
+ Technological Measures. For purposes of this Public License,
172
+ simply making modifications authorized by this Section 2(a)
173
+ (4) never produces Adapted Material.
174
+
175
+ 5. Downstream recipients.
176
+
177
+ a. Offer from the Licensor -- Licensed Material. Every
178
+ recipient of the Licensed Material automatically
179
+ receives an offer from the Licensor to exercise the
180
+ Licensed Rights under the terms and conditions of this
181
+ Public License.
182
+
183
+ b. No downstream restrictions. You may not offer or impose
184
+ any additional or different terms or conditions on, or
185
+ apply any Effective Technological Measures to, the
186
+ Licensed Material if doing so restricts exercise of the
187
+ Licensed Rights by any recipient of the Licensed
188
+ Material.
189
+
190
+ 6. No endorsement. Nothing in this Public License constitutes or
191
+ may be construed as permission to assert or imply that You
192
+ are, or that Your use of the Licensed Material is, connected
193
+ with, or sponsored, endorsed, or granted official status by,
194
+ the Licensor or others designated to receive attribution as
195
+ provided in Section 3(a)(1)(A)(i).
196
+
197
+ b. Other rights.
198
+
199
+ 1. Moral rights, such as the right of integrity, are not
200
+ licensed under this Public License, nor are publicity,
201
+ privacy, and/or other similar personality rights; however, to
202
+ the extent possible, the Licensor waives and/or agrees not to
203
+ assert any such rights held by the Licensor to the limited
204
+ extent necessary to allow You to exercise the Licensed
205
+ Rights, but not otherwise.
206
+
207
+ 2. Patent and trademark rights are not licensed under this
208
+ Public License.
209
+
210
+ 3. To the extent possible, the Licensor waives any right to
211
+ collect royalties from You for the exercise of the Licensed
212
+ Rights, whether directly or through a collecting society
213
+ under any voluntary or waivable statutory or compulsory
214
+ licensing scheme. In all other cases the Licensor expressly
215
+ reserves any right to collect such royalties, including when
216
+ the Licensed Material is used other than for NonCommercial
217
+ purposes.
218
+
219
+ Section 3 -- License Conditions.
220
+
221
+ Your exercise of the Licensed Rights is expressly made subject to the
222
+ following conditions.
223
+
224
+ a. Attribution.
225
+
226
+ 1. If You Share the Licensed Material (including in modified
227
+ form), You must:
228
+
229
+ a. retain the following if it is supplied by the Licensor
230
+ with the Licensed Material:
231
+
232
+ i. identification of the creator(s) of the Licensed
233
+ Material and any others designated to receive
234
+ attribution, in any reasonable manner requested by
235
+ the Licensor (including by pseudonym if
236
+ designated);
237
+
238
+ ii. a copyright notice;
239
+
240
+ iii. a notice that refers to this Public License;
241
+
242
+ iv. a notice that refers to the disclaimer of
243
+ warranties;
244
+
245
+ v. a URI or hyperlink to the Licensed Material to the
246
+ extent reasonably practicable;
247
+
248
+ b. indicate if You modified the Licensed Material and
249
+ retain an indication of any previous modifications; and
250
+
251
+ c. indicate the Licensed Material is licensed under this
252
+ Public License, and include the text of, or the URI or
253
+ hyperlink to, this Public License.
254
+
255
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
256
+ reasonable manner based on the medium, means, and context in
257
+ which You Share the Licensed Material. For example, it may be
258
+ reasonable to satisfy the conditions by providing a URI or
259
+ hyperlink to a resource that includes the required
260
+ information.
261
+
262
+ 3. If requested by the Licensor, You must remove any of the
263
+ information required by Section 3(a)(1)(A) to the extent
264
+ reasonably practicable.
265
+
266
+ 4. If You Share Adapted Material You produce, the Adapter's
267
+ License You apply must not prevent recipients of the Adapted
268
+ Material from complying with this Public License.
269
+
270
+ Section 4 -- Sui Generis Database Rights.
271
+
272
+ Where the Licensed Rights include Sui Generis Database Rights that
273
+ apply to Your use of the Licensed Material:
274
+
275
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
276
+ to extract, reuse, reproduce, and Share all or a substantial
277
+ portion of the contents of the database for NonCommercial purposes
278
+ only;
279
+
280
+ b. if You include all or a substantial portion of the database
281
+ contents in a database in which You have Sui Generis Database
282
+ Rights, then the database in which You have Sui Generis Database
283
+ Rights (but not its individual contents) is Adapted Material; and
284
+
285
+ c. You must comply with the conditions in Section 3(a) if You Share
286
+ all or a substantial portion of the contents of the database.
287
+
288
+ For the avoidance of doubt, this Section 4 supplements and does not
289
+ replace Your obligations under this Public License where the Licensed
290
+ Rights include other Copyright and Similar Rights.
291
+
292
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
293
+
294
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
295
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
296
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
297
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
298
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
299
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
300
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
301
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
302
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
303
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
304
+
305
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
306
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
307
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
308
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
309
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
310
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
311
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
312
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
313
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
314
+
315
+ c. The disclaimer of warranties and limitation of liability provided
316
+ above shall be interpreted in a manner that, to the extent
317
+ possible, most closely approximates an absolute disclaimer and
318
+ waiver of all liability.
319
+
320
+ Section 6 -- Term and Termination.
321
+
322
+ a. This Public License applies for the term of the Copyright and
323
+ Similar Rights licensed here. However, if You fail to comply with
324
+ this Public License, then Your rights under this Public License
325
+ terminate automatically.
326
+
327
+ b. Where Your right to use the Licensed Material has terminated under
328
+ Section 6(a), it reinstates:
329
+
330
+ 1. automatically as of the date the violation is cured, provided
331
+ it is cured within 30 days of Your discovery of the
332
+ violation; or
333
+
334
+ 2. upon express reinstatement by the Licensor.
335
+
336
+ For the avoidance of doubt, this Section 6(b) does not affect any
337
+ right the Licensor may have to seek remedies for Your violations
338
+ of this Public License.
339
+
340
+ c. For the avoidance of doubt, the Licensor may also offer the
341
+ Licensed Material under separate terms or conditions or stop
342
+ distributing the Licensed Material at any time; however, doing so
343
+ will not terminate this Public License.
344
+
345
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
346
+ License.
347
+
348
+ Section 7 -- Other Terms and Conditions.
349
+
350
+ a. The Licensor shall not be bound by any additional or different
351
+ terms or conditions communicated by You unless expressly agreed.
352
+
353
+ b. Any arrangements, understandings, or agreements regarding the
354
+ Licensed Material not stated herein are separate from and
355
+ independent of the terms and conditions of this Public License.
356
+
357
+ Section 8 -- Interpretation.
358
+
359
+ a. For the avoidance of doubt, this Public License does not, and
360
+ shall not be interpreted to, reduce, limit, restrict, or impose
361
+ conditions on any use of the Licensed Material that could lawfully
362
+ be made without permission under this Public License.
363
+
364
+ b. To the extent possible, if any provision of this Public License is
365
+ deemed unenforceable, it shall be automatically reformed to the
366
+ minimum extent necessary to make it enforceable. If the provision
367
+ cannot be reformed, it shall be severed from this Public License
368
+ without affecting the enforceability of the remaining terms and
369
+ conditions.
370
+
371
+ c. No term or condition of this Public License will be waived and no
372
+ failure to comply consented to unless expressly agreed to by the
373
+ Licensor.
374
+
375
+ d. Nothing in this Public License constitutes or may be interpreted
376
+ as a limitation upon, or waiver of, any privileges and immunities
377
+ that apply to the Licensor or You, including from the legal
378
+ processes of any jurisdiction or authority.
379
+
380
+ =======================================================================
381
+
382
+ Creative Commons is not a party to its public
383
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
384
+ its public licenses to material it publishes and in those instances
385
+ will be considered the “Licensor.” The text of the Creative Commons
386
+ public licenses is dedicated to the public domain under the CC0 Public
387
+ Domain Dedication. Except for the limited purpose of indicating that
388
+ material is shared under a Creative Commons public license or as
389
+ otherwise permitted by the Creative Commons policies published at
390
+ creativecommons.org/policies, Creative Commons does not authorize the
391
+ use of the trademark "Creative Commons" or any other trademark or logo
392
+ of Creative Commons without its prior written consent including,
393
+ without limitation, in connection with any unauthorized modifications
394
+ to any of its public licenses or any other arrangements,
395
+ understandings, or agreements concerning use of licensed material. For
396
+ the avoidance of doubt, this paragraph does not form part of the
397
+ public licenses.
398
+
399
+ Creative Commons may be contacted at creativecommons.org.
README.md ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ library_name: pytorch
4
+ pipeline_tag: image-feature-extraction
5
+ tags:
6
+ - chest-xray
7
+ - medical-imaging
8
+ - self-supervised-learning
9
+ - ijepa
10
+ - jepa
11
+ - vision-transformer
12
+ - pytorch
13
+ - mimic-cxr
14
+ datasets:
15
+ - MIMIC-CXR-JPG
16
+ - VinBigData-CXR
17
+ ---
18
+
19
+ # TexJEPA Model Weights
20
+
21
+ This repository hosts the trained model weights for **TexJEPA** from:
22
+
23
+ **When Texture Becomes the World: Texture-aware JEPA for Chest X-ray Representation Learning**
24
+
25
+ Authors: **Yi Zhao\***, **Ruilang Wang\***, Bowen Liu, Donglong Chen†<br>
26
+ \* Equal contribution. † Corresponding author.
27
+
28
+ Code repository: [YiZhao-Jasper/TexJEPA](https://github.com/YiZhao-Jasper/TexJEPA)
29
+
30
+ ## Summary
31
+
32
+ TexJEPA is a texture-aware extension of Image Joint-Embedding Predictive Architecture (I-JEPA) for chest X-ray representation learning. The models are trained on MIMIC-CXR-JPG with a ViT-H/14 backbone and an I-JEPA-style context-target predictive objective. The released weights are intended to reproduce the paper's pre-training lineage and downstream evaluation using the public TexJEPA codebase.
33
+
34
+ The repository includes four checkpoints:
35
+
36
+ | Model | File | Initialization | Training stage | Main purpose |
37
+ | --- | --- | --- | --- | --- |
38
+ | **I-JEPA-300** | `weights/I-JEPA-300/jepa-latest.pth.tar` | I-JEPA ViT-H/14 pre-training run | 300-epoch final/latest checkpoint | Baseline chest X-ray I-JEPA representation |
39
+ | **TexJEPA-N** | `weights/TexJEPA-N/jepa-latest.pth.tar` | I-JEPA-300 lineage | +50 epoch texture-noise specialization | Learn invariance to nuisance texture corruption |
40
+ | **TexJEPA-R** | `weights/TexJEPA-R/jepa-latest.pth.tar` | TexJEPA-N | +50 epoch register-token branch | Route high-norm texture artifacts through register tokens |
41
+ | **TexJEPA-C** | `weights/TexJEPA-C/jepa-latest.pth.tar` | TexJEPA-N | +50 epoch covariance-regularized branch | Preserve local patch diversity and lesion-scale texture sensitivity |
42
+
43
+ The historical internal experiment names are not used in this release. Please cite and report the public names above.
44
+
45
+ ## Files
46
+
47
+ ```text
48
+ weights/
49
+ I-JEPA-300/jepa-latest.pth.tar
50
+ TexJEPA-N/jepa-latest.pth.tar
51
+ TexJEPA-R/jepa-latest.pth.tar
52
+ TexJEPA-C/jepa-latest.pth.tar
53
+ configs/pretrain/
54
+ ijepa_300.yaml
55
+ texjepa_n.yaml
56
+ texjepa_r.yaml
57
+ texjepa_c.yaml
58
+ checksums.sha256
59
+ requirements.txt
60
+ LICENSE
61
+ ```
62
+
63
+ `checksums.sha256` contains SHA-256 hashes for the uploaded checkpoint files.
64
+
65
+ ## Model Differences
66
+
67
+ ### I-JEPA-300
68
+
69
+ I-JEPA-300 is the chest X-ray baseline. It uses the original I-JEPA multi-block masking objective with a ViT-H/14 context encoder, EMA target encoder, and predictor. It is the reference model for clean representation quality and texture-sensitivity analysis.
70
+
71
+ ### TexJEPA-N
72
+
73
+ TexJEPA-N adds **context-target asymmetric texture corruption**. The target branch receives clean chest radiographs, while the context branch receives mild stochastic texture perturbations such as Gaussian noise, Poisson noise, and JPEG-like compression. This trains the model to predict clean latent targets from corrupted context views, directly targeting texture robustness.
74
+
75
+ ### TexJEPA-R
76
+
77
+ TexJEPA-R starts from TexJEPA-N and adds **register tokens** to the encoder. Register tokens participate in self-attention but are stripped before patch outputs are returned, preserving compatibility with the I-JEPA predictor. The branch also uses tighter local masking to encourage stronger local, lesion-scale structure modeling.
78
+
79
+ ### TexJEPA-C
80
+
81
+ TexJEPA-C starts from TexJEPA-N and adds a **patch-token variance/covariance auxiliary loss**. The regularizer discourages patch-token collapse and helps preserve local texture diversity. The implementation computes the auxiliary loss per rank and avoids cross-rank all-gather, which is important because I-JEPA masks can produce variable visible-token counts across distributed workers.
82
+
83
+ ## Intended Use
84
+
85
+ These weights are intended for:
86
+
87
+ - Reproducing TexJEPA pre-training and downstream experiments with the GitHub repository.
88
+ - Chest X-ray representation learning research.
89
+ - Linear probing and fine-tuning on VinBigData/VinDr-style multi-label chest X-ray classification.
90
+ - Texture robustness, lesion sensitivity, and model comparison experiments.
91
+
92
+ They are **not** intended for clinical deployment or diagnostic use.
93
+
94
+ ## Reproduction
95
+
96
+ Clone the code:
97
+
98
+ ```bash
99
+ git clone https://github.com/YiZhao-Jasper/TexJEPA.git
100
+ cd TexJEPA
101
+ python -m pip install -r requirements.txt
102
+ ```
103
+
104
+ Download this model repository and place or symlink the checkpoints under the paths expected by the configs:
105
+
106
+ ```text
107
+ logs/ijepa_300/jepa-latest.pth.tar <- weights/I-JEPA-300/jepa-latest.pth.tar
108
+ logs/texjepa_n/jepa-latest.pth.tar <- weights/TexJEPA-N/jepa-latest.pth.tar
109
+ logs/texjepa_r/jepa-latest.pth.tar <- weights/TexJEPA-R/jepa-latest.pth.tar
110
+ logs/texjepa_c/jepa-latest.pth.tar <- weights/TexJEPA-C/jepa-latest.pth.tar
111
+ ```
112
+
113
+ The pre-training configs in this model repository mirror the GitHub release:
114
+
115
+ ```bash
116
+ python scripts/sanity_check.py
117
+ ```
118
+
119
+ For downstream evaluation:
120
+
121
+ ```bash
122
+ export CHECKPOINT=logs/texjepa_n/jepa-latest.pth.tar
123
+ export VINBIG_IMAGE_DIR=data/vinbig/images_1024/train
124
+ export VINBIG_CSV=data/vinbig/annotations/train.csv
125
+ bash downstream/run_downstream.sh all
126
+ ```
127
+
128
+ ## Data
129
+
130
+ Pre-training uses **MIMIC-CXR-JPG**. This model repository does not redistribute MIMIC-CXR data. Researchers must obtain MIMIC-CXR-JPG through the official PhysioNet credentialing and data-use process.
131
+
132
+ Downstream evaluation code supports VinBigData/VinDr-style multi-label chest X-ray annotations; those datasets are not redistributed here.
133
+
134
+ ## Checkpoint Format
135
+
136
+ The checkpoints are PyTorch `.pth.tar` training checkpoints containing encoder, predictor, target encoder, optimizer metadata, and training metadata where available. Load only checkpoints from trusted sources because PyTorch checkpoint loading relies on Python pickle serialization.
137
+
138
+ For representation extraction, the downstream code in the GitHub repository loads the `target_encoder` weights and supports ViT-H/14, ViT-L/14, and register-token variants by reading checkpoint metadata and tensor shapes.
139
+
140
+ ## Citation
141
+
142
+ ```bibtex
143
+ @misc{zhao2026texjepa,
144
+ title = {When Texture Becomes the World: Texture-aware JEPA for Chest X-ray Representation Learning},
145
+ author = {Zhao, Yi and Wang, Ruilang and Liu, Bowen and Chen, Donglong},
146
+ year = {2026},
147
+ note = {TexJEPA model weights}
148
+ }
149
+ ```
150
+
151
+ ## License
152
+
153
+ The released code and model weights are provided for non-commercial research use under the license included in this repository. MIMIC-CXR-JPG and downstream datasets remain governed by their own licenses and data-use agreements.
checksums.sha256 ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ 5fbdd329af7e996e666ef361a8cf10512aa9788f04d0668e654442bd0e4e59b1 weights/I-JEPA-300/jepa-latest.pth.tar
2
+ 04216e3e1a44da04553c0e816edb1ca32034dd9e8ba5ea5169efe1ef4abda602 weights/TexJEPA-N/jepa-latest.pth.tar
3
+ 99dfe8992a49ad1a310e8eed331e5c2d1464bcaecbd43774a0b38e8d5f1117f4 weights/TexJEPA-R/jepa-latest.pth.tar
4
+ 7b3ff784a334c331313effb20ae9c76126e695f0d59a63e1e4ccf2049fff2239 weights/TexJEPA-C/jepa-latest.pth.tar
configs/pretrain/ijepa_300.yaml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # I-JEPA-300 baseline pre-training for TexJEPA.
2
+ #
3
+ # This is the public 300-epoch baseline checkpoint lineage used before any
4
+ # TexJEPA specialization. It follows the original I-JEPA joint-embedding
5
+ # predictive objective with a ViT-H/14 context encoder, EMA target encoder,
6
+ # 12-layer predictor, and multi-block masking on MIMIC-CXR-JPG chest radiographs.
7
+
8
+ data:
9
+ dataset_type: mimic_cxr
10
+ root_path: data/mimic-cxr-384
11
+ use_zip: false
12
+ splits: null
13
+ batch_size: 128
14
+ crop_size: 224
15
+ crop_scale: [0.3, 1.0]
16
+ num_workers: 10
17
+ pin_mem: true
18
+ normalization: chest_xray
19
+ use_color_distortion: false
20
+ use_gaussian_blur: false
21
+ use_horizontal_flip: false
22
+ color_jitter_strength: 0.0
23
+
24
+ logging:
25
+ folder: logs/ijepa_300
26
+ write_tag: jepa
27
+
28
+ mask:
29
+ allow_overlap: false
30
+ aspect_ratio: [0.75, 1.5]
31
+ enc_mask_scale: [0.85, 1.0]
32
+ min_keep: 10
33
+ num_enc_masks: 1
34
+ num_pred_masks: 4
35
+ patch_size: 14
36
+ pred_mask_scale: [0.15, 0.2]
37
+
38
+ meta:
39
+ load_checkpoint: false
40
+ model_name: vit_huge
41
+ patch_size: 14
42
+ pred_depth: 12
43
+ pred_emb_dim: 384
44
+ read_checkpoint: null
45
+ use_bfloat16: true
46
+ num_registers: 0
47
+
48
+ optimization:
49
+ ema: [0.998, 1.0]
50
+ epochs: 300
51
+ final_lr: 1.0e-06
52
+ final_weight_decay: 0.4
53
+ ipe_scale: 1.25
54
+ lr: 2.0e-04
55
+ start_lr: 1.0e-05
56
+ warmup: 30
57
+ weight_decay: 0.04
configs/pretrain/texjepa_c.yaml ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TexJEPA-C: covariance-regularized texture consistency.
2
+ #
3
+ # Warm-start from TexJEPA-N and train for 50 additional epochs. TexJEPA-C keeps
4
+ # the TexJEPA-N asymmetric context corruption objective and adds a mild
5
+ # patch-level variance/covariance auxiliary loss. The auxiliary term discourages
6
+ # patch-token collapse and preserves diversity in local chest texture features.
7
+
8
+ data:
9
+ dataset_type: mimic_cxr
10
+ root_path: data/mimic-cxr-384
11
+ use_zip: false
12
+ splits: null
13
+ batch_size: 128
14
+ crop_size: 224
15
+ crop_scale: [0.3, 1.0]
16
+ num_workers: 10
17
+ pin_mem: true
18
+ normalization: chest_xray
19
+ use_color_distortion: false
20
+ use_gaussian_blur: false
21
+ use_horizontal_flip: false
22
+ color_jitter_strength: 0.0
23
+ context_noise:
24
+ enabled: true
25
+ p_gauss: 0.5
26
+ p_poisson: 0.3
27
+ p_jpeg: 0.2
28
+ sigma_range: [0.005, 0.05]
29
+ peak_range: [50, 200]
30
+ quality_range: [40, 80]
31
+ warmup_epochs: 5
32
+
33
+ logging:
34
+ folder: logs/texjepa_c
35
+ write_tag: jepa
36
+
37
+ mask:
38
+ allow_overlap: false
39
+ aspect_ratio: [0.75, 1.5]
40
+ enc_mask_scale: [0.85, 1.0]
41
+ min_keep: 10
42
+ num_enc_masks: 1
43
+ num_pred_masks: 4
44
+ patch_size: 14
45
+ pred_mask_scale: [0.15, 0.2]
46
+
47
+ meta:
48
+ load_checkpoint: true
49
+ model_name: vit_huge
50
+ patch_size: 14
51
+ pred_depth: 12
52
+ pred_emb_dim: 384
53
+ read_checkpoint: ../texjepa_n/jepa-latest.pth.tar
54
+ use_bfloat16: true
55
+ num_registers: 0
56
+
57
+ optimization:
58
+ ema: [0.999, 1.0]
59
+ epochs: 50
60
+ final_lr: 1.0e-06
61
+ final_weight_decay: 0.4
62
+ ipe_scale: 1.25
63
+ lr: 3.0e-05
64
+ start_lr: 1.0e-06
65
+ warmup: 3
66
+ weight_decay: 0.04
67
+ vicreg:
68
+ enabled: true
69
+ var_weight: 1.0
70
+ cov_weight: 0.04
71
+ gamma: 1.0
72
+ warmup_epochs: 5
configs/pretrain/texjepa_n.yaml ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TexJEPA-N: noise-invariant texture adaptation.
2
+ #
3
+ # Warm-start from the I-JEPA-300 baseline checkpoint and train for 50 more
4
+ # epochs. The target branch sees clean chest radiographs while the context
5
+ # branch receives mild stochastic texture corruptions. This asymmetric
6
+ # context-target view teaches invariance to nuisance texture while preserving
7
+ # the I-JEPA predictive objective.
8
+
9
+ data:
10
+ dataset_type: mimic_cxr
11
+ root_path: data/mimic-cxr-384
12
+ use_zip: false
13
+ splits: null
14
+ batch_size: 128
15
+ crop_size: 224
16
+ crop_scale: [0.3, 1.0]
17
+ num_workers: 10
18
+ pin_mem: true
19
+ normalization: chest_xray
20
+ use_color_distortion: false
21
+ use_gaussian_blur: false
22
+ use_horizontal_flip: false
23
+ color_jitter_strength: 0.0
24
+ context_noise:
25
+ enabled: true
26
+ p_gauss: 0.5
27
+ p_poisson: 0.3
28
+ p_jpeg: 0.2
29
+ sigma_range: [0.005, 0.05]
30
+ peak_range: [50, 200]
31
+ quality_range: [40, 80]
32
+ warmup_epochs: 5
33
+
34
+ logging:
35
+ folder: logs/texjepa_n
36
+ write_tag: jepa
37
+
38
+ mask:
39
+ allow_overlap: false
40
+ aspect_ratio: [0.75, 1.5]
41
+ enc_mask_scale: [0.85, 1.0]
42
+ min_keep: 10
43
+ num_enc_masks: 1
44
+ num_pred_masks: 4
45
+ patch_size: 14
46
+ pred_mask_scale: [0.15, 0.2]
47
+
48
+ meta:
49
+ load_checkpoint: true
50
+ model_name: vit_huge
51
+ patch_size: 14
52
+ pred_depth: 12
53
+ pred_emb_dim: 384
54
+ read_checkpoint: ../ijepa_300/jepa-latest.pth.tar
55
+ use_bfloat16: true
56
+ num_registers: 0
57
+
58
+ optimization:
59
+ ema: [0.999, 1.0]
60
+ epochs: 50
61
+ final_lr: 1.0e-06
62
+ final_weight_decay: 0.4
63
+ ipe_scale: 1.25
64
+ lr: 5.0e-05
65
+ start_lr: 1.0e-06
66
+ warmup: 3
67
+ weight_decay: 0.04
configs/pretrain/texjepa_r.yaml ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TexJEPA-R: register-token texture routing.
2
+ #
3
+ # Warm-start from TexJEPA-N and train for 50 additional epochs. TexJEPA-R keeps
4
+ # the context-only texture corruption curriculum, adds four learnable register
5
+ # tokens to the encoder, and tightens the masking distribution so the encoder
6
+ # must rely on more local, lesion-scale structure.
7
+
8
+ data:
9
+ dataset_type: mimic_cxr
10
+ root_path: data/mimic-cxr-384
11
+ use_zip: false
12
+ splits: null
13
+ batch_size: 128
14
+ crop_size: 224
15
+ crop_scale: [0.3, 1.0]
16
+ num_workers: 10
17
+ pin_mem: true
18
+ normalization: chest_xray
19
+ use_color_distortion: false
20
+ use_gaussian_blur: false
21
+ use_horizontal_flip: false
22
+ color_jitter_strength: 0.0
23
+ context_noise:
24
+ enabled: true
25
+ p_gauss: 0.5
26
+ p_poisson: 0.3
27
+ p_jpeg: 0.2
28
+ sigma_range: [0.005, 0.05]
29
+ peak_range: [50, 200]
30
+ quality_range: [40, 80]
31
+ warmup_epochs: 5
32
+
33
+ logging:
34
+ folder: logs/texjepa_r
35
+ write_tag: jepa
36
+
37
+ mask:
38
+ allow_overlap: false
39
+ aspect_ratio: [0.5, 2.0]
40
+ enc_mask_scale: [0.65, 0.85]
41
+ min_keep: 10
42
+ num_enc_masks: 1
43
+ num_pred_masks: 6
44
+ patch_size: 14
45
+ pred_mask_scale: [0.15, 0.25]
46
+
47
+ meta:
48
+ load_checkpoint: true
49
+ model_name: vit_huge_reg
50
+ num_registers: 4
51
+ patch_size: 14
52
+ pred_depth: 12
53
+ pred_emb_dim: 384
54
+ read_checkpoint: ../texjepa_n/jepa-latest.pth.tar
55
+ use_bfloat16: true
56
+
57
+ optimization:
58
+ ema: [0.999, 1.0]
59
+ epochs: 50
60
+ final_lr: 1.0e-06
61
+ final_weight_decay: 0.4
62
+ ipe_scale: 1.25
63
+ lr: 5.0e-05
64
+ start_lr: 1.0e-06
65
+ warmup: 5
66
+ weight_decay: 0.04
requirements.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ torch>=2.0
2
+ torchvision>=0.15
3
+ numpy
4
+ pyyaml
5
+ Pillow
6
+ scikit-learn
7
+ opencv-python
8
+ submitit
weights/I-JEPA-300/jepa-latest.pth.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fbdd329af7e996e666ef361a8cf10512aa9788f04d0668e654442bd0e4e59b1
3
+ size 10358172879
weights/README.md ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # Weight Files
2
+
3
+ The four subdirectories contain the released TexJEPA checkpoint lineage:
4
+
5
+ - `I-JEPA-300`: baseline/latest I-JEPA chest X-ray checkpoint.
6
+ - `TexJEPA-N`: noise-invariant texture specialization.
7
+ - `TexJEPA-R`: register-token specialization from TexJEPA-N.
8
+ - `TexJEPA-C`: covariance-regularized specialization from TexJEPA-N.
9
+
10
+ See the repository model card for usage and checksums.
weights/TexJEPA-C/jepa-latest.pth.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b3ff784a334c331313effb20ae9c76126e695f0d59a63e1e4ccf2049fff2239
3
+ size 10358172943
weights/TexJEPA-N/jepa-latest.pth.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04216e3e1a44da04553c0e816edb1ca32034dd9e8ba5ea5169efe1ef4abda602
3
+ size 10358172943
weights/TexJEPA-R/jepa-latest.pth.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99dfe8992a49ad1a310e8eed331e5c2d1464bcaecbd43774a0b38e8d5f1117f4
3
+ size 10358256378