Instructions to use litert-community/inception_v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use litert-community/inception_v3 with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Updated Readme.md
#3
by hvt4 - opened
README.md
CHANGED
|
@@ -31,9 +31,6 @@ model-index:
|
|
| 31 |
|
| 32 |
Inception v3 model pre-trained on ImageNet-1k. It was introduced in [**Rethinking the Inception Architecture for Computer Vision**](https://arxiv.org/abs/1512.00567) by Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna.
|
| 33 |
|
| 34 |
-
## Intended uses & limitations
|
| 35 |
-
|
| 36 |
-
The model files were converted from pretrained weights from PyTorch Vision. The models may have their own licenses or terms and conditions derived from PyTorch Vision and the dataset used for training. It is your responsibility to determine whether you have permission to use the models for your use case.
|
| 37 |
|
| 38 |
## Model description
|
| 39 |
|
|
@@ -44,7 +41,25 @@ acc@1 (on ImageNet-1K): 77.294%
|
|
| 44 |
acc@5 (on ImageNet-1K): 93.450%
|
| 45 |
num_params: 27,161,264
|
| 46 |
|
| 47 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
```python
|
| 49 |
#!/usr/bin/env python3
|
| 50 |
import argparse, json
|
|
@@ -115,6 +130,13 @@ if __name__ == "__main__":
|
|
| 115 |
main()
|
| 116 |
|
| 117 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
### BibTeX entry and citation info
|
| 119 |
|
| 120 |
```bibtex
|
|
|
|
| 31 |
|
| 32 |
Inception v3 model pre-trained on ImageNet-1k. It was introduced in [**Rethinking the Inception Architecture for Computer Vision**](https://arxiv.org/abs/1512.00567) by Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna.
|
| 33 |
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
## Model description
|
| 36 |
|
|
|
|
| 41 |
acc@5 (on ImageNet-1K): 93.450%
|
| 42 |
num_params: 27,161,264
|
| 43 |
|
| 44 |
+
## Intended uses & limitations
|
| 45 |
+
|
| 46 |
+
The model files were converted from pretrained weights from PyTorch Vision. The models may have their own licenses or terms and conditions derived from PyTorch Vision and the dataset used for training. It is your responsibility to determine whether you have permission to use the models for your use case.
|
| 47 |
+
|
| 48 |
+
## How to Use
|
| 49 |
+
|
| 50 |
+
**1. Install Dependencies** Ensure your Python environment is set up with the required libraries. Run the following command in your terminal:
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
pip install numpy Pillow huggingface_hub ai-edge-litert
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
**2. Prepare Your Image** The script expects an image file to analyze. Make sure you have an image (e.g., cat.jpg or car.png) saved in the same working directory as your script.
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
**3. Save the Script** Create a new file named `classify.py`, paste the script below into it, and save the file:
|
| 61 |
+
|
| 62 |
+
|
| 63 |
```python
|
| 64 |
#!/usr/bin/env python3
|
| 65 |
import argparse, json
|
|
|
|
| 130 |
main()
|
| 131 |
|
| 132 |
```
|
| 133 |
+
|
| 134 |
+
**4. Execute the Python Script** Run the below command:
|
| 135 |
+
|
| 136 |
+
```bash
|
| 137 |
+
python classify.py --image cat.jpg
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
### BibTeX entry and citation info
|
| 141 |
|
| 142 |
```bibtex
|