Image Classification
Collection
4 items β’ Updated
How to use DamarJati/Face-Mask-Detection with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="DamarJati/Face-Mask-Detection")
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("DamarJati/Face-Mask-Detection")
model = AutoModelForImageClassification.from_pretrained("DamarJati/Face-Mask-Detection")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:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.0344 | 1.0 | 83 | 0.0051 | 0.9992 |
| 0.0112 | 2.0 | 166 | 0.0052 | 0.9983 |
| 0.0146 | 3.0 | 249 | 0.0045 | 0.9992 |
Base model
microsoft/swin-tiny-patch4-window7-224