Instructions to use NeuronZero/MRI-Reader with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeuronZero/MRI-Reader with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="NeuronZero/MRI-Reader") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("NeuronZero/MRI-Reader") model = AutoModelForImageClassification.from_pretrained("NeuronZero/MRI-Reader") - Notebooks
- Google Colab
- Kaggle
| { | |
| "data_path": "sartajbhuvaji/Brain-Tumor-Classification", | |
| "model": "microsoft/swin-base-patch4-window7-224-in22k", | |
| "username": "NeuronZero", | |
| "lr": 5e-05, | |
| "epochs": 5, | |
| "batch_size": 32, | |
| "warmup_ratio": 0.1, | |
| "gradient_accumulation": 1, | |
| "optimizer": "adamw_torch", | |
| "scheduler": "linear", | |
| "weight_decay": 0.0, | |
| "max_grad_norm": 1.0, | |
| "seed": 42, | |
| "train_split": "Training", | |
| "valid_split": null, | |
| "logging_steps": -1, | |
| "project_name": "MRI-Reader", | |
| "auto_find_batch_size": false, | |
| "mixed_precision": "fp4", | |
| "save_total_limit": 1, | |
| "save_strategy": "epoch", | |
| "push_to_hub": true, | |
| "repo_id": "NeuronZero/MRI-Reader", | |
| "evaluation_strategy": "epoch", | |
| "image_column": "image", | |
| "target_column": "label", | |
| "log": "none" | |
| } |