Instructions to use ianpan/mri-brain-sequence-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ianpan/mri-brain-sequence-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ianpan/mri-brain-sequence-bert", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ianpan/mri-brain-sequence-bert", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
| from transformers import PretrainedConfig | |
| class MRIBrainSequenceBERTConfig(PretrainedConfig): | |
| model_type = "mri_brain_sequence_bert" | |
| def __init__(self, max_len=512, dropout=0.2, num_classes=17, **kwargs): | |
| self.max_len = max_len | |
| self.dropout = dropout | |
| self.num_classes = num_classes | |
| super().__init__(**kwargs) | |