Instructions to use electblake/hair_color_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use electblake/hair_color_classifier with timm:
import timm model = timm.create_model("hf-hub:electblake/hair_color_classifier", pretrained=True) - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from electblake/hair_color_classifier: direct link, hf CLI and curl.
- Browser
- Download file 371 Bytes
-
https://huggingface.co/electblake/hair_color_classifier/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://electblake/hair_color_classifier/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/electblake/hair_color_classifier/resolve/main/preprocessor_config.json
371 Bytes
| { | |
| "architecture": "convnext_tiny", | |
| "data_config": { | |
| "input_size": [ | |
| 3, | |
| 224, | |
| 224 | |
| ], | |
| "interpolation": "bilinear", | |
| "mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "crop_pct": 1.0, | |
| "crop_mode": "squash" | |
| }, | |
| "image_processor_type": "TimmWrapperImageProcessor" | |
| } | |