falmuqhim commited on
Commit
81f42bb
·
verified ·
1 Parent(s): f23e3d7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -12
README.md CHANGED
@@ -4,20 +4,23 @@ tags:
4
  - neuroimaging
5
  - fMRI
6
  - pytorch
7
-
8
  library_name: transformers
9
  inference: false
10
- snippets:
11
- - torch: |
12
- from transformers import AutoModel
13
- import torch
14
-
15
- # Load NeuroCLR directly (the pipeline block should now be gone)
16
- model = AutoModel.from_pretrained("SaeedLab/NeuroCLR", trust_remote_code=True)
17
-
18
- # Input shape: [batch, 1, 128]
19
- x = torch.randn(1, 1, 128)
20
- outputs = model(x)
 
 
 
 
21
  ---
22
 
23
  # NeuroCLR
 
4
  - neuroimaging
5
  - fMRI
6
  - pytorch
 
7
  library_name: transformers
8
  inference: false
9
+ model-index:
10
+ - name: NeuroCLR
11
+ results: []
12
+ usage:
13
+ torch: |
14
+ from transformers import AutoModel
15
+ import torch
16
+
17
+ # Load NeuroCLR SSL Encoder
18
+ model = AutoModel.from_pretrained("SaeedLab/NeuroCLR", trust_remote_code=True)
19
+
20
+ # Input: [batch, 1, 128] (raw fMRI time series)
21
+ x = torch.randn(1, 1, 128)
22
+ outputs = model(x)
23
+ print(outputs["h"].shape)
24
  ---
25
 
26
  # NeuroCLR