-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
cog predict
running file outputs
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
- Loading branch information
Showing
3 changed files
with
134 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters