Spaces:
Running
on
Zero
Running
on
Zero
2025-07-31 22:39 π
Browse files
app.py
CHANGED
@@ -716,21 +716,23 @@ with gr.Blocks(css=css, theme=gr.themes.Soft(), title="ZIP Crowd Counting") as d
|
|
716 |
with gr.Group():
|
717 |
gr.Markdown("### π Main Results")
|
718 |
output_den_map = gr.Image(label="π― Predicted Density Map", type="pil")
|
719 |
-
output_lambda_map = gr.Image(label="π Lambda Map", type="pil")
|
720 |
output_text = gr.Textbox(
|
721 |
label="π₯ Predicted Count",
|
722 |
info="Total number of people detected"
|
723 |
)
|
724 |
-
|
725 |
with gr.Column(scale=1):
|
726 |
with gr.Group():
|
727 |
-
gr.Markdown("###
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
728 |
output_structural_zero_map = gr.Image(label="ποΈ Structural Zero Map", type="pil")
|
729 |
output_sampling_zero_map = gr.Image(label="π Sampling Zero Map", type="pil")
|
730 |
-
|
731 |
-
with gr.Column(scale=1):
|
732 |
-
with gr.Group():
|
733 |
-
gr.Markdown("### π Combined Analysis")
|
734 |
output_complete_zero_map = gr.Image(label="π― Complete Zero Map", type="pil")
|
735 |
|
736 |
# ε½ζ¨‘εεεζΆοΌθͺε¨ζ΄ζ°ζ¨‘ε
|
@@ -769,7 +771,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft(), title="ZIP Crowd Counting") as d
|
|
769 |
gr.Markdown("**Click on any example below to test the model:**")
|
770 |
gr.Examples(
|
771 |
examples=[
|
772 |
-
["example1.jpg"], ["example2.jpg"],
|
773 |
["example5.jpg"], ["example6.jpg"], ["example7.jpg"], ["example8.jpg"],
|
774 |
["example9.jpg"], ["example10.jpg"], ["example11.jpg"], ["example12.jpg"]
|
775 |
],
|
@@ -790,11 +792,17 @@ with gr.Blocks(css=css, theme=gr.themes.Soft(), title="ZIP Crowd Counting") as d
|
|
790 |
|
791 |
### Understanding the Outputs:
|
792 |
|
|
|
793 |
- **π― Density Map**: Shows where people are located with color intensity
|
794 |
-
-
|
795 |
-
|
796 |
-
|
797 |
-
-
|
|
|
|
|
|
|
|
|
|
|
798 |
""")
|
799 |
|
800 |
# ζ·»ε ζζ―δΏ‘ζ―
|
|
|
716 |
with gr.Group():
|
717 |
gr.Markdown("### π Main Results")
|
718 |
output_den_map = gr.Image(label="π― Predicted Density Map", type="pil")
|
|
|
719 |
output_text = gr.Textbox(
|
720 |
label="π₯ Predicted Count",
|
721 |
info="Total number of people detected"
|
722 |
)
|
723 |
+
|
724 |
with gr.Column(scale=1):
|
725 |
with gr.Group():
|
726 |
+
gr.Markdown("### π₯ Hotspots")
|
727 |
+
output_lambda_map = gr.Image(label="π Lambda Map", type="pil")
|
728 |
+
|
729 |
+
# Zero Analysis section - ζ¨ͺεζεηδΈδΈͺεΎε
|
730 |
+
with gr.Row():
|
731 |
+
with gr.Group():
|
732 |
+
gr.Markdown("### π Zero Analysis")
|
733 |
+
with gr.Row():
|
734 |
output_structural_zero_map = gr.Image(label="ποΈ Structural Zero Map", type="pil")
|
735 |
output_sampling_zero_map = gr.Image(label="π Sampling Zero Map", type="pil")
|
|
|
|
|
|
|
|
|
736 |
output_complete_zero_map = gr.Image(label="π― Complete Zero Map", type="pil")
|
737 |
|
738 |
# ε½ζ¨‘εεεζΆοΌθͺε¨ζ΄ζ°ζ¨‘ε
|
|
|
771 |
gr.Markdown("**Click on any example below to test the model:**")
|
772 |
gr.Examples(
|
773 |
examples=[
|
774 |
+
["example1.jpg"], ["example2.jpg"], ["example3.jpg"], ["example4.jpg"],
|
775 |
["example5.jpg"], ["example6.jpg"], ["example7.jpg"], ["example8.jpg"],
|
776 |
["example9.jpg"], ["example10.jpg"], ["example11.jpg"], ["example12.jpg"]
|
777 |
],
|
|
|
792 |
|
793 |
### Understanding the Outputs:
|
794 |
|
795 |
+
**π Main Results:**
|
796 |
- **π― Density Map**: Shows where people are located with color intensity
|
797 |
+
- **οΏ½ Predicted Count**: Total number of people detected in the image
|
798 |
+
|
799 |
+
**π Zero Analysis:**
|
800 |
+
- **ποΈ Structural Zero Map**: Areas where people cannot exist (buildings, sky, walls)
|
801 |
+
- **π Sampling Zero Map**: Areas where people could be but aren't currently present
|
802 |
+
- **π― Complete Zero Map**: Combined zero probability map showing all non-crowd areas
|
803 |
+
|
804 |
+
**π― Hotspots:**
|
805 |
+
- **π Lambda Map**: Highlights crowd density hotspots and expected count per pixel
|
806 |
""")
|
807 |
|
808 |
# ζ·»ε ζζ―δΏ‘ζ―
|