Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input validation #308

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

input validation #308

wants to merge 1 commit into from

Conversation

cho-96
Copy link

@cho-96 cho-96 commented Jun 28, 2024

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).

@caiduoduo12138
Copy link

for the inference stage, why the image_size cannot larger than 1280? In my trail, if I use the large resolution, the predict boxes will occur some error. If anyone has the same problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants