papousek commited on
Commit
75c8f1b
·
verified ·
1 Parent(s): e581cad

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +21 -6
README.md CHANGED
@@ -5,9 +5,24 @@ tags:
5
  - image-classification
6
  ---
7
 
8
- # Kindwise Crossroad Model
9
 
10
- ## How to use
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  Here is how to use this model to classify an image into one of the basic classes:
13
 
@@ -22,8 +37,8 @@ import torch
22
  import torchvision
23
 
24
  DEVICE_NAME = 'cuda:0'
25
- MODEL_PATH = hf_hub_download('kindwise/crossroad.tiny', 'model.traced.pt')
26
- CLASSES_PATH = hf_hub_download('kindwise/crossroad.tiny', 'classes.txt')
27
  IMAGE_PATH = '/tmp/photo.jpg'
28
 
29
  with open(CLASSES_PATH) as f:
@@ -76,8 +91,8 @@ from huggingface_hub import hf_hub_download
76
  import numpy as np
77
  import tensorflow as tf
78
 
79
- MODEL_PATH = hf_hub_download('kindwise/crossroad.tiny', 'model.tflite') # or model.optimized.tflite
80
- CLASSES_PATH = hf_hub_download('kindwise/crossroad.tiny', 'classes.txt')
81
 
82
  with open(CLASSES_PATH) as f:
83
  CLASSES = [line.strip() for line in f]
 
5
  - image-classification
6
  ---
7
 
8
+ # Kindwise Router Classifier
9
 
10
+ This model classifies images based on their content, acting as a "router" to
11
+ direct requests to the correct Kindwise service. It automatically detects
12
+ whether an image contains human, insect, mushroom, or plant.
13
+
14
+ Th model is intended to be the first step in an image processing pipeline.
15
+ Instead of having each specialized service (e.g., insect, plant classification)
16
+ analyze every image, this model quickly determines the image's category. This
17
+ reduces latency and optimizes system resources.
18
+
19
+ ## Technical Details and Formats
20
+
21
+ The modek is available in two optimized formats for easy deployment:
22
+ - **TorchScript**: Optimized for production environments and server-side applications where performance and low latency are critical.
23
+ - **TensorFlow Lite**: Perfect for mobile devices and edge computing, where efficiency and minimal model size are key.
24
+
25
+ ## Usage
26
 
27
  Here is how to use this model to classify an image into one of the basic classes:
28
 
 
37
  import torchvision
38
 
39
  DEVICE_NAME = 'cuda:0'
40
+ MODEL_PATH = hf_hub_download('kindwise/router.tiny', 'model.traced.pt')
41
+ CLASSES_PATH = hf_hub_download('kindwise/router.tiny', 'classes.txt')
42
  IMAGE_PATH = '/tmp/photo.jpg'
43
 
44
  with open(CLASSES_PATH) as f:
 
91
  import numpy as np
92
  import tensorflow as tf
93
 
94
+ MODEL_PATH = hf_hub_download('kindwise/router.tiny', 'model.tflite') # or model.optimized.tflite
95
+ CLASSES_PATH = hf_hub_download('kindwise/router.tiny', 'classes.txt')
96
 
97
  with open(CLASSES_PATH) as f:
98
  CLASSES = [line.strip() for line in f]