Files changed (1) hide show
  1. README.md +18 -1
README.md CHANGED
@@ -55,7 +55,17 @@ The license information of the original model was missing.
55
 
56
  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.
57
 
58
- ## Use
 
 
 
 
 
 
 
 
 
 
59
 
60
  ```python
61
  #!/usr/bin/env python3
@@ -127,6 +137,13 @@ if __name__ == "__main__":
127
  main()
128
  ```
129
 
 
 
 
 
 
 
 
130
  ### BibTeX entry and citation info
131
 
132
  ```bibtex
 
55
 
56
  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.
57
 
58
+ ## How to Use
59
+
60
+ **1. Install Dependencies** Ensure your Python environment is set up with the required libraries. Run the following command in your terminal:
61
+
62
+ ```bash
63
+ pip install numpy Pillow huggingface_hub ai-edge-litert
64
+ ```
65
+
66
+ **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.
67
+
68
+ **3. Save the Script** Create a new file named `classify.py`, paste the script below into it, and save the file:
69
 
70
  ```python
71
  #!/usr/bin/env python3
 
137
  main()
138
  ```
139
 
140
+ **4. Execute the Python Script** Run the below command:
141
+
142
+ ```bash
143
+ python classify.py --image cat.jpg
144
+ ```
145
+
146
+
147
  ### BibTeX entry and citation info
148
 
149
  ```bibtex