YOLOv5 Streamlit Deployment
Easy way to deploy YOLOv5 to streamlit cloud.
Please feel free to use/edit.
codes modified by GitHub/thepbordin from GitHub/zhoroh
Clone This repo and read install instruction from Installation Guide.
Features
-
Support large model file. (Don’t require GitLFS; Download model from URL)
-
Support small model file. (<100MB; uploaded to github repository)
-
Select images randomly by slider from test set
-
Upload image/video
-
Select computing device (cuda/cpu)
Installation Guide
configs can be found in app.py
Download model from URL:
-
Upload model to Internet Archive
-
Go to your uploaded file page.
-
From “DOWNLOAD OPTIONS” select “SHOW ALL”.
-
Right click at .pt and Copy link address.
-
Edit config in app.py
-
cfg_enable_url_download = True
-
url = “”
cfg_enable_url_download = True
url = "your_model_url"
Use local .pt file:
Edit config in app.py
## CFG
cfg_model_path = "models/your_model_name.pt"