Update README.md
Browse files
README.md
CHANGED
|
@@ -4,20 +4,16 @@ tags:
|
|
| 4 |
- neuroimaging
|
| 5 |
- fMRI
|
| 6 |
library_name: transformers
|
| 7 |
-
|
| 8 |
-
inference: false # This removes the "Hosted Inference" text box that doesn't work for fMRI
|
| 9 |
snippets:
|
| 10 |
- torch: |
|
| 11 |
from transformers import AutoModel
|
| 12 |
import torch
|
| 13 |
|
| 14 |
-
# Load the NeuroCLR SSL Encoder
|
| 15 |
model = AutoModel.from_pretrained("SaeedLab/NeuroCLR", trust_remote_code=True)
|
| 16 |
-
|
| 17 |
-
# Input: [batch, 1, 128] (raw fMRI time series)
|
| 18 |
x = torch.randn(1, 1, 128)
|
| 19 |
-
|
| 20 |
-
print(outputs["h"].shape) # [1, 128]
|
| 21 |
---
|
| 22 |
|
| 23 |
# NeuroCLR
|
|
|
|
| 4 |
- neuroimaging
|
| 5 |
- fMRI
|
| 6 |
library_name: transformers
|
| 7 |
+
inference: false
|
|
|
|
| 8 |
snippets:
|
| 9 |
- torch: |
|
| 10 |
from transformers import AutoModel
|
| 11 |
import torch
|
| 12 |
|
|
|
|
| 13 |
model = AutoModel.from_pretrained("SaeedLab/NeuroCLR", trust_remote_code=True)
|
| 14 |
+
# Input shape: [batch, 1, 128]
|
|
|
|
| 15 |
x = torch.randn(1, 1, 128)
|
| 16 |
+
output = model(x)
|
|
|
|
| 17 |
---
|
| 18 |
|
| 19 |
# NeuroCLR
|