Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -40,19 +40,29 @@ with gr.Blocks() as demo:
|
|
40 |
)
|
41 |
gr.Markdown("""
|
42 |
# Welcome to My Neuroscience Project
|
43 |
-
|
44 |
The author is a third-year undergraduate student at the School of Intelligent Science and Technology, Nanjing University, Suzhou Campus.
|
45 |
|
46 |
-
|
|
|
|
|
47 |
|
48 |
Although the YOLOv5 model supports up to 80 classes, my project is primarily focused on autonomous driving. Therefore, objects other than people and cars will be excluded after object detection.
|
49 |
-
|
|
|
50 |
**Tips for First-Time Users:**
|
51 |
- Ensure that the video includes at least people and cars.
|
52 |
- It's recommended that the video is not too long, ideally within 10 seconds.
|
53 |
</div>
|
54 |
""")
|
55 |
|
56 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
demo.launch()
|
|
|
40 |
)
|
41 |
gr.Markdown("""
|
42 |
# Welcome to My Neuroscience Project
|
43 |
+
|
44 |
The author is a third-year undergraduate student at the School of Intelligent Science and Technology, Nanjing University, Suzhou Campus.
|
45 |
|
46 |
+
## Note
|
47 |
+
<div style="border: 2px solid rgba(0, 0, 0, 0.1); border-radius: 10px; background-color: rgba(255, 255, 255, 0.8); padding: 20px;">
|
48 |
+
Since this project uses Hugging Face's free CPU, the processing speed is very slow. In the worst case, even a video with a dozen frames can take several minutes to process. Therefore, if possible, it is recommended to deploy on a device with a better GPU.
|
49 |
|
50 |
Although the YOLOv5 model supports up to 80 classes, my project is primarily focused on autonomous driving. Therefore, objects other than people and cars will be excluded after object detection.
|
51 |
+
</div>
|
52 |
+
<div style="border: 2px solid rgba(0, 0, 0, 0.1); border-radius: 10px; background-color: rgba(255, 255, 255, 0.8); padding: 20px;">
|
53 |
**Tips for First-Time Users:**
|
54 |
- Ensure that the video includes at least people and cars.
|
55 |
- It's recommended that the video is not too long, ideally within 10 seconds.
|
56 |
</div>
|
57 |
""")
|
58 |
|
59 |
+
gr.HTML("""
|
60 |
+
<div style="display: flex; justify-content: center;">
|
61 |
+
<video width="720" height="435" controls>
|
62 |
+
<source src="DDMDeepsort1.mp4" type="video/mp4">
|
63 |
+
Your browser does not support the video tag.
|
64 |
+
</video>
|
65 |
+
</div>
|
66 |
+
""")
|
67 |
|
68 |
demo.launch()
|