falmuqhim commited on
Commit
4a45da1
·
verified ·
1 Parent(s): 1fcd1e7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -8
README.md CHANGED
@@ -1,22 +1,23 @@
1
  ---
2
  tags:
3
  - self-supervised-learning
4
- - contrastive-learning
5
  - neuroimaging
6
  - fMRI
7
- - rs-fMRI
8
- - neuroscience
9
- - representation-learning
10
- - domain-generalization
11
- - transfer-learning
12
- - pytorch
13
  library_name: transformers
14
  pipeline_tag: feature-extraction
15
- inference: false # Disables the useless text-input box on the right
16
  snippets:
17
  - torch: |
18
  from transformers import AutoModel
 
 
 
19
  model = AutoModel.from_pretrained("SaeedLab/NeuroCLR", trust_remote_code=True)
 
 
 
 
 
20
  ---
21
 
22
  # NeuroCLR
 
1
  ---
2
  tags:
3
  - self-supervised-learning
 
4
  - neuroimaging
5
  - fMRI
 
 
 
 
 
 
6
  library_name: transformers
7
  pipeline_tag: feature-extraction
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
+ outputs = model(x)
20
+ print(outputs["h"].shape) # [1, 128]
21
  ---
22
 
23
  # NeuroCLR