Files changed (1) hide show
  1. README.md +18 -1
README.md CHANGED
@@ -45,7 +45,17 @@ num_params: 88,591,464
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
- ## Use
 
 
 
 
 
 
 
 
 
 
49
 
50
  ```python
51
  #!/usr/bin/env python3
@@ -106,6 +116,13 @@ def main():
106
  if __name__ == "__main__":
107
  main()
108
  ```
 
 
 
 
 
 
 
109
  ### BibTeX entry and citation info
110
 
111
  ```bibtex
 
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
+ **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.
57
+
58
+ **3. Save the Script** Create a new file named `classify.py`, paste the script below into it, and save the file:
59
 
60
  ```python
61
  #!/usr/bin/env python3
 
116
  if __name__ == "__main__":
117
  main()
118
  ```
119
+
120
+ **4. Execute the Python Script** Run the below command:
121
+
122
+ ```bash
123
+ python classify.py --image cat.jpg
124
+ ```
125
+
126
  ### BibTeX entry and citation info
127
 
128
  ```bibtex