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

refactor(runner): add InferenceError to all pipelines #188

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

Conversation

rickstaa
Copy link
Collaborator

@rickstaa rickstaa commented Sep 4, 2024

This pull request adds the inference error logic from the SAM2 pipeline to all pipelines so users are given a warning when they supply wrong arguments.

This commit adds the inference error logic from the SAM2 pipeline to all
pipelines so users are given a warning when they supply wrong arguments.
@rickstaa rickstaa force-pushed the add_all_pipelines_inference_error branch from f08aced to a469892 Compare September 4, 2024 13:39
This commit ensures that users get a descriptive error message when the
GPU runs out of memory.
This commit ensures that all response errors are known by FastAPI and
therefore shown in the docs.
This commit adds some missing error handling to the pipeline worker
functions.
error_message = "Out of memory error."
elif isinstance(e, InferenceError):
status_code = status.HTTP_400_BAD_REQUEST
error_message = str(e)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check if errors are forwarded to the client.

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.

1 participant