Skip to content

Inference Examples and from_roboflow Update - #677

Merged
SkalskiP merged 31 commits into
developfrom
feature/from-roboflow-base-model
Jan 4, 2024
Merged

SkalskiP merged 31 commits into
developfrom
feature/from-roboflow-base-model

Conversation

@paulguerrie

Copy link
Copy Markdown
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.

@paulguerrie
paulguerrie requested a review from SkalskiP December 15, 2023 16:42
Comment thread pyproject.toml Outdated
Comment thread supervision/detection/core.py Outdated
Comment thread supervision/detection/core.py Outdated
Comment thread examples/traffic_analysis/README.md
Comment thread examples/traffic_analysis/README.md Outdated
Comment thread examples/count_people_in_zone/README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread examples/count_people_in_zone/inference_example.py Outdated
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 requested a review from SkalskiP December 22, 2023 18:11
@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
@Borda
Borda deleted the feature/from-roboflow-base-model branch January 7, 2026 17:36
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