issues
search
THU-MIG
/
yolov10
YOLOv10: Real-Time End-to-End Object Detection
https://arxiv.org/abs/2405.14458
GNU Affero General Public License v3.0
8k
stars
662
forks
source link
input validation
#308
Open
cho-96
opened
5 days ago
cho-96
commented
5 days ago
Fix app.py as below
Ensure an image or video input is provided (assert image is not None, assert video is not None).
Validate the model ID (assert model_id in ["yolov10n", "yolov10s", "yolov10m", "yolov10b", "yolov10l", "yolov10x"]).
Confirm the image size is within the allowable range (assert 320 <= image_size <= 1280).
Verify the confidence threshold is within the permissible range (assert 0.0 <= conf_threshold <= 1.0).
Fix app.py as below