[go: nahoru, domu]

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

Inference Examples and from_roboflow Update #677

Merged
merged 31 commits into from
Jan 4, 2024

Conversation

paulguerrie
Copy link
Contributor

Description

Added examples using inference and updated the from_roboflow() method so that it can also accept results of type BaseModel. Additionally, I added a method from_inference() which is a wrapper around from_roboflow() to better align with the vocabulary used in Supervision.

TODOs:

  • Update Roboflow model ID's based on new aliases (after inference==0.9.7 release)
  • Update docs with inference examples (decided to wait for initial PR feedback first)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How has this change been tested, please provide a testcase or example of how you tested the change?

Tested all updates locally.

pyproject.toml Outdated Show resolved Hide resolved
supervision/detection/core.py Outdated Show resolved Hide resolved
supervision/detection/core.py Outdated Show resolved Hide resolved
examples/traffic_analysis/README.md Show resolved Hide resolved
examples/traffic_analysis/README.md Outdated Show resolved Hide resolved
examples/count_people_in_zone/README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
examples/count_people_in_zone/inference_example.py Outdated Show resolved Hide resolved
paulguerrie and others added 5 commits December 18, 2023 06:59
- separated args list in examples between inference and ultralytics
- added depricated decorator to from_roboflow
- use `with supress(...)` for parsing inference response models instead of checking instance type (no more pydantic dep)
- a few other README changes
@paulguerrie paulguerrie marked this pull request as ready for review December 22, 2023 18:11
@SkalskiP SkalskiP merged commit 8506147 into develop Jan 4, 2024
8 checks passed
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.

None yet

2 participants