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

Add block for running pt models from local filesystem #756

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

grzegorz-roboflow
Copy link
Contributor

Description

Block enables user to load *.pt model directly from local filesystem

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

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

@@ -62,6 +62,7 @@ def read_requirements(path):
),
extras_require={
"sam": read_requirements("requirements/requirements.sam.txt"),
"ultralytics": read_requirements("requirements/requirements.ultralytics.txt"),
Copy link
Collaborator

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():
Copy link
Collaborator

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

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

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