Run this model with HF Jobs
Run bombshelll/swin-brain-plane-classification-fold1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/bombshelll/swin-brain-plane-classification-fold1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/bombshelll/swin-brain-plane-classification-fold1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use bombshelll/swin-brain-plane-classification-fold1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bombshelll/swin-brain-plane-classification-fold1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="bombshelll/swin-brain-plane-classification-fold1") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("bombshelll/swin-brain-plane-classification-fold1") model = AutoModelForImageClassification.from_pretrained("bombshelll/swin-brain-plane-classification-fold1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (5)
- README.mdAdded+71
- config.jsonAdded+63
- model.safetensorsAdded+3
- preprocessor_config.jsonAdded+22
- training_args.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071---library_name: transformerslicense: apache-2.0base_model: microsoft/swin-tiny-patch4-window7-224tags:- generated_from_trainermetrics:- accuracymodel-index:- name: swin-brain-plane-classification-fold1 results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# swin-brain-plane-classification-fold1
This model is a fine-tuned version of [microsoft/swin-tiny-patch4-window7-224](https://huggingface.co/microsoft/swin-tiny-patch4-window7-224) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.0842- Accuracy: 0.9873
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 32- eval_batch_size: 32- seed: 42- gradient_accumulation_steps: 4- total_train_batch_size: 128- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- lr_scheduler_warmup_ratio: 0.1- num_epochs: 10
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:------:|:----:|:---------------:|:--------:|| 1.2583 | 0.8 | 3 | 0.8256 | 0.7911 || 0.6521 | 1.8667 | 7 | 0.4384 | 0.9304 || 0.3974 | 2.9333 | 11 | 0.2148 | 0.9557 || 0.305 | 4.0 | 15 | 0.1304 | 0.9747 || 0.3045 | 4.8 | 18 | 0.1032 | 0.9810 || 0.1542 | 5.8667 | 22 | 0.1088 | 0.9684 || 0.1853 | 6.9333 | 26 | 0.0930 | 0.9873 || 0.1554 | 8.0 | 30 | 0.0842 | 0.9873 |
### Framework versions
- Transformers 4.45.1- Pytorch 2.4.0- Datasets 3.0.1- Tokenizers 0.20.0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ "_name_or_path": "microsoft/swin-tiny-patch4-window7-224", "architectures": [ "SwinForImageClassification" ], "attention_probs_dropout_prob": 0.0, "depths": [ 2, 2, 6, 2 ], "drop_path_rate": 0.1, "embed_dim": 96, "encoder_stride": 32, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "id2label": { "0": "axial", "1": "coronal", "2": "sagittal" }, "image_size": 224, "initializer_range": 0.02, "label2id": { "axial": 0, "coronal": 1, "sagittal": 2 }, "layer_norm_eps": 1e-05, "mlp_ratio": 4.0, "model_type": "swin", "num_channels": 3, "num_heads": [ 3, 6, 12, 24 ], "num_layers": 4, "out_features": [ "stage4" ], "out_indices": [ 4 ], "patch_size": 4, "path_norm": true, "problem_type": "single_label_classification", "qkv_bias": true, "stage_names": [ "stem", "stage1", "stage2", "stage3", "stage4" ], "torch_dtype": "float32", "transformers_version": "4.45.1", "use_absolute_embeddings": false, "window_size": 7}123version https://git-lfs.github.com/spec/v1oid sha256:dbd7147dc990fae71e4be3d653d986690759636ebd441fc8d84a630a4c337b29size 11034590812345678910111213141516171819202122{ "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.485, 0.456, 0.406 ], "image_processor_type": "ViTImageProcessor", "image_std": [ 0.229, 0.224, 0.225 ], "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "height": 224, "width": 224 }}123version https://git-lfs.github.com/spec/v1oid sha256:63f124376b3b3c0f6e91d2bf82427ec53a0acbe873f0e7fad2d2c61853182ef7size 5240README.mdAdded+71
config.jsonAdded+63
model.safetensorsAdded+3
preprocessor_config.jsonAdded+22
training_args.binAdded+3