Image Classification
Transformers
TensorBoard
Safetensors
swin
Generated from Trainer
Eval Results (legacy)
Instructions to use pylu5229/16_label_check_point with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pylu5229/16_label_check_point with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="pylu5229/16_label_check_point") 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("pylu5229/16_label_check_point") model = AutoModelForImageClassification.from_pretrained("pylu5229/16_label_check_point", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from pylu5229/16_label_check_point: direct link, hf CLI and curl.
- Browser
- Download file 2.18 kB
-
https://huggingface.co/pylu5229/16_label_check_point/resolve/main/README.md
- Command line
-
hf download hf://pylu5229/16_label_check_point/README.md
-
curl -L -o README.md https://huggingface.co/pylu5229/16_label_check_point/resolve/main/README.md
2.18 kB
metadata
library_name: transformers
license: apache-2.0
base_model: microsoft/swin-tiny-patch4-window7-224
tags:
- generated_from_trainer
datasets:
- imagefolder
metrics:
- accuracy
model-index:
- name: 16_label_check_point
results:
- task:
name: Image Classification
type: image-classification
dataset:
name: imagefolder
type: imagefolder
config: default
split: train
args: default
metrics:
- name: Accuracy
type: accuracy
value: 1
16_label_check_point
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.0000
- Accuracy: 1.0
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: 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: 5
Training results
| Training Loss | Epoch | Step | Accuracy | Validation Loss |
|---|---|---|---|---|
| 0.1354 | 1.0 | 563 | 1.0 | 0.0001 |
| 0.0656 | 2.0 | 1126 | 1.0 | 0.0000 |
| 0.0323 | 2.9991 | 1686 | 0.0000 | 1.0 |
| 0.0426 | 4.0 | 2249 | 0.0000 | 1.0 |
| 0.0525 | 4.9973 | 2810 | 0.0000 | 1.0 |
Framework versions
- Transformers 4.47.1
- Pytorch 2.5.1+cu121
- Datasets 3.2.0
- Tokenizers 0.21.0