UEmmanuel5 commited on
Commit
49800d4
Β·
verified Β·
1 Parent(s): 1c3aa68

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +120 -2
README.md CHANGED
@@ -1,5 +1,14 @@
1
  ---
2
  title: Profsam Fire Demo
 
 
 
 
 
 
 
 
 
3
  emoji: πŸ‘
4
  colorFrom: blue
5
  colorTo: yellow
@@ -7,8 +16,117 @@ sdk: gradio
7
  sdk_version: 5.49.1
8
  app_file: app.py
9
  pinned: false
10
- license: agpl-3.0
11
  short_description: This hosts the ProFSAM's Yolov11n fire detector model
12
  ---
13
 
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  title: Profsam Fire Demo
3
+ license: agpl-3.0
4
+ library_name: ultralytics
5
+ pipeline_tag: object-detection
6
+ tags:
7
+ - yolo
8
+ - yolo11
9
+ - fire-detection
10
+ - computer-vision
11
+ - realtime
12
  emoji: πŸ‘
13
  colorFrom: blue
14
  colorTo: yellow
 
16
  sdk_version: 5.49.1
17
  app_file: app.py
18
  pinned: false
 
19
  short_description: This hosts the ProFSAM's Yolov11n fire detector model
20
  ---
21
 
22
+ # ProFSAM Fire Detector (YOLOv11n) β€” Gradio Demo
23
+
24
+ Real-time **fire object detection** using the YOLOv11n checkpoint from the paper:
25
+
26
+ > **Promptable Fire Segmentation: Unleashing SAM2's Potential for Real-Time Mobile Deployment with Strategic Bounding Box Guidance**
27
+ > Paper: https://arxiv.org/abs/2510.21782
28
+ > Code: https://github.com/UEmmanuel5/ProFSAM
29
+ > Model weights on the Hub: https://huggingface.co/UEmmanuel5/ProFSAM-Fire-Detector
30
+
31
+ ---
32
+
33
+ ## πŸ‘Ÿ Try it
34
+ - Upload an image (JPG/PNG).
35
+ - The app returns the same image with **bounding boxes** over detected fire regions.
36
+
37
+ ---
38
+
39
+ ## πŸ”§ How it works
40
+ This Space loads the published checkpoint via the Hub and runs Ultralytics YOLOv11n inference:
41
+
42
+ - Loads: `UEmmanuel5/ProFSAM-Fire-Detector` β†’ `Fire_best.pt`
43
+ - Inference size: `imgsz=640`, default confidence `0.3`
44
+ - Outputs: annotated image with bounding boxes
45
+
46
+ ---
47
+
48
+ ## πŸ“¦ Files in this Space
49
+ ```
50
+
51
+ app.py
52
+ requirements.txt
53
+ README.md
54
+
55
+ ```
56
+
57
+ - **`requirements.txt`**
58
+ ```
59
+
60
+ ultralytics
61
+ gradio
62
+ huggingface_hub
63
+
64
+ ````
65
+ - **`app.py`** (summary)
66
+ - Downloads `Fire_best.pt` from the Hub with `hf_hub_download`
67
+ - Loads the checkpoint into `YOLO(...)`
68
+ - Defines a `detect(img)` function and serves a Gradio UI
69
+
70
+ ---
71
+
72
+ ## πŸ–₯️ Run locally (optional)
73
+ 1) Create a virtual env (recommended), then:
74
+ ```bash
75
+ pip install -r requirements.txt
76
+ ````
77
+
78
+ 2. Run the app:
79
+
80
+ ```bash
81
+ # Force CPU if your local GPU is not supported
82
+ Then run:
83
+ python app.py
84
+ ```
85
+
86
+ 3. Open the URL printed by Gradio (something like [http://127.0.0.1:xxxx](http://127.0.0.1:xxxx)) and upload an image.
87
+
88
+ ---
89
+
90
+ ## βš–οΈ License
91
+
92
+ * **Model weights** (`Fire_best.pt`): **AGPL-3.0** (Ultralytics-trained).
93
+ * **Space code** (this repo): **Apache-2.0**.
94
+
95
+ ---
96
+
97
+ ## πŸ™ Acknowledgements
98
+
99
+ * Ultralytics YOLO11
100
+ * SAM / SAM2 ecosystem and community
101
+
102
+ ---
103
+
104
+ ## πŸ“š Citation
105
+
106
+ If this demo or the model is useful in your research, please cite:
107
+
108
+ **Manuscript**
109
+
110
+ ```bibtex
111
+ @inproceedings{profsam2025,
112
+ author = {Emmanuel U. Ugwu and Xinming Zhang},
113
+ title = {Promptable Fire Segmentation: Unleashing SAM2's Potential for Real-Time Mobile Deployment with Strategic Bounding Box Guidance},
114
+ booktitle = {ICIGP '26},
115
+ year = {2026},
116
+ address = {Wuhan, China},
117
+ month = jan,
118
+ note = {to appear}
119
+ }
120
+ ```
121
+
122
+ **Model/Code**
123
+
124
+ ```bibtex
125
+ @software{profsam2025,
126
+ author = {Ugwu, Emmanuel U. and Zhang, Xinming},
127
+ title = {Promptable Fire Segmentation: Unleashing SAM2’s Potential for Real-Time Mobile Deployment with Strategic Bounding Box Guidance},
128
+ year = {2025},
129
+ doi = {10.5281/zenodo.17340313},
130
+ url = {https://doi.org/10.5281/zenodo.17340313}
131
+ }
132
+ ```