ultralytics 8.3.3 update Streamlit app to YOLO11 (#16590)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
abb87c09c6
commit
f5a491cd45
3 changed files with 12 additions and 12 deletions
|
|
@ -23,13 +23,13 @@ def inference(model=None):
|
|||
# Main title of streamlit application
|
||||
main_title_cfg = """<div><h1 style="color:#FF64DA; text-align:center; font-size:40px;
|
||||
font-family: 'Archivo', sans-serif; margin-top:-50px;margin-bottom:20px;">
|
||||
Ultralytics YOLOv8 Streamlit Application
|
||||
Ultralytics YOLO Streamlit Application
|
||||
</h1></div>"""
|
||||
|
||||
# Subtitle of streamlit application
|
||||
sub_title_cfg = """<div><h4 style="color:#042AFF; text-align:center;
|
||||
font-family: 'Archivo', sans-serif; margin-top:-15px; margin-bottom:50px;">
|
||||
Experience real-time object detection on your webcam with the power of Ultralytics YOLOv8! 🚀</h4>
|
||||
Experience real-time object detection on your webcam with the power of Ultralytics YOLO! 🚀</h4>
|
||||
</div>"""
|
||||
|
||||
# Set html page configuration
|
||||
|
|
@ -67,7 +67,7 @@ def inference(model=None):
|
|||
vid_file_name = 0
|
||||
|
||||
# Add dropdown menu for model selection
|
||||
available_models = [x.replace("yolo", "YOLO") for x in GITHUB_ASSETS_STEMS if x.startswith("yolov8")]
|
||||
available_models = [x.replace("yolo", "YOLO") for x in GITHUB_ASSETS_STEMS if x.startswith("yolo11")]
|
||||
if model:
|
||||
available_models.insert(0, model.split(".pt")[0]) # insert model without suffix as *.pt is added later
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue