replicate / cog

Containers for machine learning
https://cog.run
Apache License 2.0
7.87k stars 549 forks source link

Support multiple file outputs for `cog predict` #411

Open bfirsh opened 2 years ago

bfirsh commented 2 years ago

It currently writes a file to disk if there's a single output, but outputs plain JSON if there are multiple files.

We should instead write those files to disk using a sensible naming scheme.

Migrated from a todo in https://github.com/replicate/cog/pull/378.

Proposal for how to handle this here: https://github.com/replicate/cog/pull/328

edited by @zeke

andreasjansson commented 2 years ago

The old multiple-output proposal had some ideas for how to handle this: https://github.com/replicate/cog/pull/328