Load yolo-plant-leaf-detection model as default in Streamlit UI

Run streamlit directly to pass model path via -- arg, loading
yolo11x_leaf.pt as the preselected model in the sidebar dropdown.
This commit is contained in:
2026-02-21 19:58:49 +00:00
parent aa9560569f
commit 7ef6d248da
+3 -1
View File
@@ -9,7 +9,9 @@ services:
- >-
pip install 'streamlit>=1.29.0' -q --root-user-action=ignore &&
sed -i 's/cv2.destroyAllWindows()/pass/' /ultralytics/ultralytics/solutions/streamlit_inference.py &&
yolo solutions inference
streamlit run /ultralytics/ultralytics/solutions/streamlit_inference.py
--server.headless true --server.address 0.0.0.0 --server.port 8501
-- /data/models/yolo11x_leaf.pt
ports:
- "8501:8501"
volumes: