hca97 commited on
Commit
bc611ff
·
1 Parent(s): 9093750

adding examples + documentation

Browse files
Files changed (3) hide show
  1. README.md +17 -1
  2. app.py +24 -1
  3. examples/example01.jpeg +0 -0
README.md CHANGED
@@ -9,4 +9,20 @@ app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  pinned: false
10
  ---
11
 
12
+ # [Mosquito Alert Competition 2023](https://www.aicrowd.com/challenges/mosquitoalert-challenge-2023) - 7th Place Solution
13
+
14
+ Welcome to my Hugging Face Space showcasing the performance of our model.
15
+
16
+ This competition focused on detecting and classifying various mosquito species.
17
+
18
+ The target species were:
19
+ - **Aedes aegypti** - Species
20
+ - **Aedes albopictus** - Species
21
+ - **Anopheles** - Genus
22
+ - **Culex** - Genus (Species classification is challenging, so it is provided at the genus level)
23
+ - **Culiseta** - Genus
24
+ - **Aedes japonicus/Aedes koreicus** - Species complex (Differentiating between these two species is particularly challenging).
25
+
26
+ ## Experiment Details
27
+
28
+ All the details regarding the experiments and source code for the models can be found in the [GitHub repository](https://github.com/HCA97/Mosquito-Classifiction/tree/main).
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import gradio as gr
2
  import numpy as np
3
  import cv2
@@ -30,7 +32,28 @@ def detect_mosquito(image):
30
  return annotated_image(image, label, conf, bbox)
31
 
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  iface = gr.Interface(
34
- fn=detect_mosquito, inputs=gr.Image(), outputs=gr.Image(), allow_flagging="never"
 
 
35
  )
36
  iface.launch()
 
1
+ import os
2
+
3
  import gradio as gr
4
  import numpy as np
5
  import cv2
 
32
  return annotated_image(image, label, conf, bbox)
33
 
34
 
35
+ description = """# [Mosquito Alert Competition 2023](https://www.aicrowd.com/challenges/mosquitoalert-challenge-2023) - 7th Place Solution
36
+
37
+ Welcome to my Hugging Face Space showcasing the performance of our model.
38
+
39
+ This competition focused on detecting and classifying various mosquito species.
40
+
41
+ The target species were:
42
+ - **Aedes aegypti** - Species
43
+ - **Aedes albopictus** - Species
44
+ - **Anopheles** - Genus
45
+ - **Culex** - Genus (Species classification is challenging, so it is provided at the genus level)
46
+ - **Culiseta** - Genus
47
+ - **Aedes japonicus/Aedes koreicus** - Species complex (Differentiating between these two species is particularly challenging).
48
+
49
+ ## Experiment Details
50
+
51
+ All the details regarding the experiments and source code for the models can be found in the [GitHub repository](https://github.com/HCA97/Mosquito-Classifiction/tree/main).
52
+ """
53
+
54
  iface = gr.Interface(
55
+ fn=detect_mosquito, description=description, inputs=gr.Image(), outputs=gr.Image(), allow_flagging="never",
56
+ examples=[os.path.join("examples", f) for f in os.listdir("examples")],
57
+ cache_examples=True
58
  )
59
  iface.launch()
examples/example01.jpeg ADDED