-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add block for running pt models from local filesystem #756
base: main
Are you sure you want to change the base?
Conversation
@@ -62,6 +62,7 @@ def read_requirements(path): | |||
), | |||
extras_require={ | |||
"sam": read_requirements("requirements/requirements.sam.txt"), | |||
"ultralytics": read_requirements("requirements/requirements.ultralytics.txt"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if you committed this requirements file
half_precision: bool, | ||
imgsz: int, | ||
) -> BlockResult: | ||
if "YOLO" not in globals(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we must prevent running on hosted platform
|
||
LONG_DESCRIPTION = """ | ||
This block performs inference by executing locally stored ultralytics pth file. | ||
This block expects pth file to be available within local filesystem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add more verbose docs
Description
Block enables user to load *.pt model directly from local filesystem
Type of change
Please delete options that are not relevant.
How has this change been tested, please provide a testcase or example of how you tested the change?
e2e tested
Any specific deployment considerations
*.pt file must be available in local filesystem
Docs
N/A