Instructions to use popkek00/danger_detection_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use popkek00/danger_detection_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="popkek00/danger_detection_model") 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("popkek00/danger_detection_model") model = AutoModelForImageClassification.from_pretrained("popkek00/danger_detection_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload processor
Browse files- preprocessor_config.json +1 -1
preprocessor_config.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
0.456,
|
| 10 |
0.406
|
| 11 |
],
|
| 12 |
-
"image_processor_type": "
|
| 13 |
"image_std": [
|
| 14 |
0.229,
|
| 15 |
0.224,
|
|
|
|
| 9 |
0.456,
|
| 10 |
0.406
|
| 11 |
],
|
| 12 |
+
"image_processor_type": "ConvNextImageProcessor",
|
| 13 |
"image_std": [
|
| 14 |
0.229,
|
| 15 |
0.224,
|