Instructions to use DamarJati/Face-Mask-Detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "epoch": 3.0, | |
| "eval_accuracy": 0.9991525423728813, | |
| "eval_loss": 0.005057646427303553, | |
| "eval_runtime": 7.9885, | |
| "eval_samples_per_second": 147.712, | |
| "eval_steps_per_second": 4.632 | |
| } |