Instructions to use biruh/apple_disease_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use biruh/apple_disease_model with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://biruh/apple_disease_model") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from biruh/apple_disease_model: direct link, hf CLI and curl.
- Browser
- Download file 249 Bytes
-
https://huggingface.co/biruh/apple_disease_model/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://biruh/apple_disease_model/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/biruh/apple_disease_model/resolve/main/preprocessor_config.json
249 Bytes
| { | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "image_processor_type": "Pix2StructImageProcessor", | |
| "is_vqa": true, | |
| "max_patches": 2048, | |
| "patch_size": { | |
| "height": 16, | |
| "width": 16 | |
| }, | |
| "processor_class": "Pix2StructProcessor" | |
| } | |