akashvverma1995 commited on
Commit
5beaccc
·
verified ·
1 Parent(s): 929e0e8

Updated README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -2
README.md CHANGED
@@ -11,7 +11,7 @@ datasets:
11
  base_model:
12
  - google/efficientnet-b0
13
  model-index:
14
- - name: EfficientNet_B0
15
  results:
16
  - task:
17
  type: image-classification
@@ -53,8 +53,18 @@ acc@1 (on ImageNet-1K): 77.692%
53
  acc@5 (on ImageNet-1K): 93.532%
54
  num_params: 5,288,548
55
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
- ## Use
58
  ```python
59
  #!/usr/bin/env python3
60
  import argparse, json
@@ -115,6 +125,14 @@ def main():
115
  if __name__ == "__main__":
116
  main()
117
  ```
 
 
 
 
 
 
 
 
118
  ### BibTeX entry and citation info
119
 
120
  ```bibtex
 
11
  base_model:
12
  - google/efficientnet-b0
13
  model-index:
14
+ - name: litert-community/efficientnet_b0
15
  results:
16
  - task:
17
  type: image-classification
 
53
  acc@5 (on ImageNet-1K): 93.532%
54
  num_params: 5,288,548
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
70
  import argparse, json
 
125
  if __name__ == "__main__":
126
  main()
127
  ```
128
+
129
+ **4. Execute the Python Script** Run the below command:
130
+
131
+ ```bash
132
+ python classify.py --image cat.jpg
133
+ ```
134
+
135
+
136
  ### BibTeX entry and citation info
137
 
138
  ```bibtex