Instructions to use kamangir/image-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use kamangir/image-classifier with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy), and from_pretrained_keras was removed in huggingface_hub 1.0. # See https://github.com/keras-team/tf-keras for more details. # !pip install "huggingface_hub<1.0" tf_keras from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("kamangir/image-classifier") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from kamangir/image-classifier: direct link, hf CLI and curl.
- Browser
- Download file 1.41 kB
-
https://huggingface.co/kamangir/image-classifier/resolve/main/README.md
- Command line
-
hf download hf://kamangir/image-classifier/README.md
-
curl -L -o README.md https://huggingface.co/kamangir/image-classifier/resolve/main/README.md
1.41 kB
| license: cc | |
| # Image Classifier | |
| `image-classifier` is an extendable TensorFlow image classifier w/ a Bash cli and Hugging Face integration - to see the list of `image-classifier` commands complete [installation](#Installation) and type in: | |
| ``` | |
| image_classifier ? | |
| ``` | |
| ## Installation | |
| To install `image-classifier` first [install and configure awesome-bash-cli](https://github.com/kamangir/awesome-bash-cli) then run: | |
| ``` | |
| abcli huggingface clone image-classifier | |
| ``` | |
| To see the list of `image-classifier` saved models type in | |
| ``` | |
| image_classifier list | |
| ``` | |
| You should see the following items: | |
| 1. [fashion-mnist](#fashion-mnist) | |
| 1. intel-image-classifier 🚧 | |
| 1. vegetable-classifier 🚧 | |
| ## fashion-mnist | |
|  | |
| `fashion-mnist` is an `image-classifier` trained on [Fashion-MNIST](https://github.com/zalandoresearch/fashion-mnist). | |
| To retrain `fashion-mnist` type in: | |
| ``` | |
| abcli select | |
| fashion_mnist train | |
| abcli upload | |
| image_classifier list . browser=1,model=object | |
| ``` | |
| You should now see the structure of the network (left) and the [content of the model](https://github.com/kamangir/browser) (right). | |
| |  |  | | |
| |---|---| | |
| You can save this model under a new name by typing in: | |
| ``` | |
| fashion_mnist save new_name_1 | |
| ``` | |
| / END |