Mirror mtrenirs_10s.pt from microsoft/MtReNIRS@16c3082 (MIT) for braindecode PR #1564
bbc68ce verified |
Download README.md from braindecode/mtrenirs-pretrained: direct link, hf CLI and curl.
- Browser
- Download file 2.24 kB
-
https://huggingface.co/braindecode/mtrenirs-pretrained/resolve/main/README.md
- Command line
-
hf download hf://braindecode/mtrenirs-pretrained/README.md
-
curl -L -o README.md https://huggingface.co/braindecode/mtrenirs-pretrained/resolve/main/README.md
2.24 kB
| license: mit | |
| library_name: braindecode | |
| tags: | |
| - braindecode | |
| - fnirs | |
| - foundation-model | |
| - mtrenirs | |
| # MtReNIRS pretrained encoder | |
| This repository holds the pretrained MtReNIRS encoder by Chae et al. (2026), as released by its authors. The file | |
| `mtrenirs_10s.pt` is a byte-identical copy of `models/weights/mtrenirs_10s.pt` in | |
| [microsoft/MtReNIRS](https://github.com/microsoft/MtReNIRS) at commit | |
| [`16c3082`](https://github.com/microsoft/MtReNIRS/tree/16c3082747b689233f123519d2590b88631afb2d) | |
| (git blob `33a6f2ee8893548ccc83db7044d93d2d6ca4550f`). It is mirrored here for braindecode's `MtReNIRS` model | |
| ([braindecode/braindecode#1564](https://github.com/braindecode/braindecode/pull/1564)) and its tests. | |
| | file | sha256 | | |
| |---|---| | |
| | `mtrenirs_10s.pt` | `0960d02f9437d86f0f1a670eace8905d58b33f3394e58d5c17a6451bbcb9484d` | | |
| ## Licence | |
| MIT, Copyright (c) Microsoft Corporation. `LICENSE.txt` is the source repository's licence file, unchanged. The | |
| authors' model card states that the pretrained encoder weights are released in that repository under the MIT | |
| License. | |
| ## Input the weights expect | |
| 10 Hz HbO/HbR in 100-sample (10 s) windows, each channel z-scored over its run and clipped at 6, with channel | |
| positions in Standard 10-05 space. The authors' | |
| [model card](https://github.com/microsoft/MtReNIRS/blob/main/MODEL_CARD.md) describes the intended and | |
| out-of-scope uses. | |
| ## Use with braindecode | |
| The checkpoint holds `{"config", "model"}`; its keys are the braindecode model's own, and `load_state_dict` takes | |
| the file as released. | |
| ```python | |
| import torch | |
| from huggingface_hub import hf_hub_download | |
| from braindecode.models import MtReNIRS | |
| path = hf_hub_download("braindecode/mtrenirs-pretrained", "mtrenirs_10s.pt") | |
| model = MtReNIRS(chs_info=raw.info["chs"], n_outputs=2, n_times=100, sfreq=10.0) | |
| model.load_state_dict(torch.load(path, map_location="cpu", weights_only=True)) | |
| ``` | |
| ## Citation | |
| ```bibtex | |
| @article{microsoft2026mtrenirs, | |
| author = {Chae, Tony and Avramidis, Kleanthis and Emmanouilidou, Dimitra and Tashev, Ivan J.}, | |
| title = {{MtReNIRS}: A Self-Supervised Foundation Model for Transferable Neurovascular Representations}, | |
| journal = {arXiv preprint arXiv:2610.36159}, | |
| year = {2026}, | |
| } | |
| ``` | |