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

[async] Fix cog predict running file outputs #2043

Draft
wants to merge 1 commit into
base: async
Choose a base branch
from

Conversation

aron
Copy link
Contributor

@aron aron commented Nov 4, 2024

This commit backports some of the changes to pkg/cli/predict.go from main as of 3e0dc79 to fix a nil pointer exception that occurs when trying to run cog predict on a model that outputs a File type.

The panic occurs in predictIndividualInputs() trying to decode the data URL returned by the model. Giving the error:

panic: runtime error: invalid memory address or nil pointer dereference

@aron aron changed the base branch from main to async November 4, 2024 13:43
This commit backports some of the changes to pkg/cli/predict.go from
main as of 3e0dc79 to fix a nil pointer exception that occurs when
trying to run `cog predict` on a model that outputs a `File` type.

The panic occurs in predictIndividualInputs() trying to decode the
data URL returned by the model. Giving the error:

    panic: runtime error: invalid memory address or nil pointer dereference
@aron aron changed the title async fixup predict [async] Fix cog predict running file outputs Nov 4, 2024
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