-
Notifications
You must be signed in to change notification settings - Fork 522
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
Array as inputs and outputs using Input method #527
Comments
Hi @simonMoisselin 👋🏼 Arrays/lists as inputs and outputs are not currently supported in Cog, but this seems to me like a reasonable thing to support. Can you share a little about your intended use case? For a list of types that are currently supported, see the docs on Input and output types. See also this open issue about supporting multiple file outputs: #411 |
I think this is a great idea. I don't know necessarily if this would work the best (in particular it might be somewhat extraneous to using models from replicate.com), but would be awesome to support Arrow for serializing and de-serializing array data. |
This is still the case - we do not yet support lists/arrays of input:
|
This would be a great idea to support different formats.
|
Related / dupe of #608 |
hi, I'd like to be able to upload multiple pictures for a single argument. This would be very useful for that |
Hi @zeke 👋 Dust3r ( https://replicate.com/camenduru/dust3r ) needs multiple images as input. |
@zeke this is a bug not an enhancement! i am afraid to upload pictures of corgi.cam but, if you want to know, currently, with only 2 photos, this issue is killing pugs: https://replicate.com/p/llpqfprbx6oo3hmnggl4nbvqku |
Raised it with the team. We're working on it! |
the issue with List[str] type is confirmed. temp workaround - use simple 'str' type and split value later. $ cog --version |
Can you provide an example? How would that work for files? |
okay so basically we can just concatenate as many input URLs as we want and then parse split it? this does not seem secure. kind of like injection attack looming to happen. |
right, looking into it. |
cog on "support_for_list_in_input" PR branch supports list[Path] input.
|
Thanks a lot @dkhokhlov! |
is this also supported via API, if so what's the brief format? |
it will be supported by api. format should be the same as in list[str] case, except str is uri str now.. |
Hello,
Is it possible to add the type
array
as an input, in addition to images or files?The text was updated successfully, but these errors were encountered: