Files changed (1) hide show
  1. README.md +18 -1
README.md CHANGED
@@ -53,7 +53,17 @@ num_params: 60,192,808
53
 
54
  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.
55
 
56
- ## Use
 
 
 
 
 
 
 
 
 
 
57
 
58
  ```python
59
  #!/usr/bin/env python3
@@ -114,6 +124,13 @@ def main():
114
  if __name__ == "__main__":
115
  main()
116
  ```
 
 
 
 
 
 
 
117
  ### BibTeX entry and citation info
118
 
119
  ```bibtex
 
53
 
54
  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.
55
 
56
+ ## How to Use
57
+
58
+ **1. Install Dependencies** Ensure your Python environment is set up with the required libraries. Run the following command in your terminal:
59
+
60
+ ```bash
61
+ pip install numpy Pillow huggingface_hub ai-edge-litert
62
+ ```
63
+
64
+ **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.
65
+
66
+ **3. Save the Script** Create a new file named `classify.py`, paste the script below into it, and save the file:
67
 
68
  ```python
69
  #!/usr/bin/env python3
 
124
  if __name__ == "__main__":
125
  main()
126
  ```
127
+
128
+ **4. Execute the Python Script** Run the below command:
129
+
130
+ ```bash
131
+ python classify.py --image cat.jpg
132
+ ```
133
+
134
  ### BibTeX entry and citation info
135
 
136
  ```bibtex