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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user