Mirror mtrenirs_10s.pt from microsoft/MtReNIRS@16c3082 (MIT) for braindecode PR #1564
Browse files- LICENSE.txt +21 -0
- README.md +62 -0
- mtrenirs_10s.pt +3 -0
LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: braindecode
|
| 4 |
+
tags:
|
| 5 |
+
- braindecode
|
| 6 |
+
- fnirs
|
| 7 |
+
- foundation-model
|
| 8 |
+
- mtrenirs
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# MtReNIRS pretrained encoder
|
| 12 |
+
|
| 13 |
+
This repository holds the pretrained MtReNIRS encoder by Chae et al. (2026), as released by its authors. The file
|
| 14 |
+
`mtrenirs_10s.pt` is a byte-identical copy of `models/weights/mtrenirs_10s.pt` in
|
| 15 |
+
[microsoft/MtReNIRS](https://github.com/microsoft/MtReNIRS) at commit
|
| 16 |
+
[`16c3082`](https://github.com/microsoft/MtReNIRS/tree/16c3082747b689233f123519d2590b88631afb2d)
|
| 17 |
+
(git blob `33a6f2ee8893548ccc83db7044d93d2d6ca4550f`). It is mirrored here for braindecode's `MtReNIRS` model
|
| 18 |
+
([braindecode/braindecode#1564](https://github.com/braindecode/braindecode/pull/1564)) and its tests.
|
| 19 |
+
|
| 20 |
+
| file | sha256 |
|
| 21 |
+
|---|---|
|
| 22 |
+
| `mtrenirs_10s.pt` | `0960d02f9437d86f0f1a670eace8905d58b33f3394e58d5c17a6451bbcb9484d` |
|
| 23 |
+
|
| 24 |
+
## Licence
|
| 25 |
+
|
| 26 |
+
MIT, Copyright (c) Microsoft Corporation. `LICENSE.txt` is the source repository's licence file, unchanged. The
|
| 27 |
+
authors' model card states that the pretrained encoder weights are released in that repository under the MIT
|
| 28 |
+
License.
|
| 29 |
+
|
| 30 |
+
## Input the weights expect
|
| 31 |
+
|
| 32 |
+
10 Hz HbO/HbR in 100-sample (10 s) windows, each channel z-scored over its run and clipped at 6, with channel
|
| 33 |
+
positions in Standard 10-05 space. The authors'
|
| 34 |
+
[model card](https://github.com/microsoft/MtReNIRS/blob/main/MODEL_CARD.md) describes the intended and
|
| 35 |
+
out-of-scope uses.
|
| 36 |
+
|
| 37 |
+
## Use with braindecode
|
| 38 |
+
|
| 39 |
+
The checkpoint holds `{"config", "model"}`; its keys are the braindecode model's own, and `load_state_dict` takes
|
| 40 |
+
the file as released.
|
| 41 |
+
|
| 42 |
+
```python
|
| 43 |
+
import torch
|
| 44 |
+
from huggingface_hub import hf_hub_download
|
| 45 |
+
|
| 46 |
+
from braindecode.models import MtReNIRS
|
| 47 |
+
|
| 48 |
+
path = hf_hub_download("braindecode/mtrenirs-pretrained", "mtrenirs_10s.pt")
|
| 49 |
+
model = MtReNIRS(chs_info=raw.info["chs"], n_outputs=2, n_times=100, sfreq=10.0)
|
| 50 |
+
model.load_state_dict(torch.load(path, map_location="cpu", weights_only=True))
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
## Citation
|
| 54 |
+
|
| 55 |
+
```bibtex
|
| 56 |
+
@article{microsoft2026mtrenirs,
|
| 57 |
+
author = {Chae, Tony and Avramidis, Kleanthis and Emmanouilidou, Dimitra and Tashev, Ivan J.},
|
| 58 |
+
title = {{MtReNIRS}: A Self-Supervised Foundation Model for Transferable Neurovascular Representations},
|
| 59 |
+
journal = {arXiv preprint arXiv:2610.36159},
|
| 60 |
+
year = {2026},
|
| 61 |
+
}
|
| 62 |
+
```
|
mtrenirs_10s.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0960d02f9437d86f0f1a670eace8905d58b33f3394e58d5c17a6451bbcb9484d
|
| 3 |
+
size 4938110
|