Image Classification
Transformers
PyTorch
TensorBoard
English
van
Generated from Trainer
Eval Results (legacy)
Instructions to use DunnBC22/van-base-Brain_Tumors_Image_Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DunnBC22/van-base-Brain_Tumors_Image_Classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="DunnBC22/van-base-Brain_Tumors_Image_Classification") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoModelForImageClassification model = AutoModelForImageClassification.from_pretrained("DunnBC22/van-base-Brain_Tumors_Image_Classification", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "Visual-Attention-Network/van-base", | |
| "architectures": [ | |
| "VanForImageClassification" | |
| ], | |
| "depths": [ | |
| 3, | |
| 3, | |
| 12, | |
| 3 | |
| ], | |
| "drop_path_rate": 0.0, | |
| "dropout_rate": 0.0, | |
| "hidden_act": "gelu", | |
| "hidden_sizes": [ | |
| 64, | |
| 128, | |
| 320, | |
| 512 | |
| ], | |
| "id2label": { | |
| "0": "glioma_tumor", | |
| "1": "meningioma_tumor", | |
| "2": "no_tumor", | |
| "3": "pituitary_tumor" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "glioma_tumor": "0", | |
| "meningioma_tumor": "1", | |
| "no_tumor": "2", | |
| "pituitary_tumor": "3" | |
| }, | |
| "layer_norm_eps": 1e-06, | |
| "layer_scale_init_value": 0.01, | |
| "mlp_ratios": [ | |
| 8, | |
| 8, | |
| 4, | |
| 4 | |
| ], | |
| "model_type": "van", | |
| "num_channels": 3, | |
| "patch_sizes": [ | |
| 7, | |
| 3, | |
| 3, | |
| 3 | |
| ], | |
| "problem_type": "single_label_classification", | |
| "strides": [ | |
| 4, | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.28.1" | |
| } | |