Instructions to use bombshelll/swin-brain-modality-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bombshelll/swin-brain-modality-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="bombshelll/swin-brain-modality-classification") 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-modality-classification") model = AutoModelForImageClassification.from_pretrained("bombshelll/swin-brain-modality-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (2)
- README.md+7-7
- model.safetensors+1-1
17 unmodified lines181920212223242525 unmodified lines515253545556575859606117 unmodified linesThis 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.4107- Accuracy: 0.9643## Model description25 unmodified lines### Training results| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| 1.3957 | 1.0 | 4 | 0.8269 | 0.8571 || 0.7564 | 2.0 | 8 | 0.5248 | 0.9643 || 0.5013 | 3.0 | 12 | 0.4107 | 0.9643 |### Framework versions17 unmodified lines181920212223242525 unmodified lines515253545556575859606117 unmodified linesThis 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: 4.4319- Accuracy: 0.6410## Model description25 unmodified lines### Training results| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:------:|:----:|:---------------:|:--------:|| 0.6378 | 0.9577 | 17 | 3.3410 | 0.6239 || 0.0669 | 1.9718 | 35 | 4.3213 | 0.6410 || 0.0425 | 2.8732 | 51 | 4.4319 | 0.6410 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:3d48b3c5bdeedb74f84dcca4b248ce4492d41c78d59f7d68b79576b3a89b5b02size 110348984123version https://git-lfs.github.com/spec/v1oid sha256:d4daa43b61af68d55247d00ac988cc41108b008bcf2ff4d64cef35c4bf23be49size 110348984
README.md+7-7
model.safetensors+1-1