Instructions to use Dolssay/CS2104-Personal-Project with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dolssay/CS2104-Personal-Project with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Dolssay/CS2104-Personal-Project") 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("Dolssay/CS2104-Personal-Project") model = AutoModelForImageClassification.from_pretrained("Dolssay/CS2104-Personal-Project", device_map="auto") - Notebooks
- Google Colab
- Kaggle
CS2104-Personal-Project
This model is a fine-tuned version of microsoft/swin-tiny-patch4-window7-224 on the imagefolder dataset. It achieves the following results on the evaluation set:
- Loss: 0.4204
- Accuracy: 0.8367
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: 4
- eval_batch_size: 4
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 16
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.4885 | 0.9863 | 54 | 0.4204 | 0.8367 |
| 0.2869 | 1.9863 | 108 | 0.4072 | 0.8265 |
| 0.2537 | 2.9863 | 162 | 0.4043 | 0.8367 |
Framework versions
- Transformers 4.51.3
- Pytorch 2.6.0+cpu
- Datasets 3.5.1
- Tokenizers 0.21.1
- Downloads last month
- -
Model tree for Dolssay/CS2104-Personal-Project
Base model
microsoft/swin-tiny-patch4-window7-224Evaluation results
- Accuracy on imagefolderself-reported0.837