fofr / cog-comfyui

Run ComfyUI with an API
https://replicate.com/fofr/any-comfyui-workflow
MIT License
544 stars 124 forks source link

syntax for inline image upload? #129

Closed tomryanx closed 4 months ago

tomryanx commented 4 months ago

Trying to pass an image to my workflows but I'm not clear on what format it should be in. For other models I've passed a base64-encoded string and it's worked great.

    version: "fda0aae05a1bd8c152e8501b4dcd74c2ad3e40cbf7c3ab5eef2b3c17ad80974f",
    input: {
      workflow_json,
      randomise_seeds: false,
      return_temp_files: false,
      image: image?.imageData,
    },

But this doesn't get the file. I'm guessing base64 is not what it needs. What does it need?

fofr commented 4 months ago

Have you tried this?

input: {
      workflow_json,
      randomise_seeds: false,
      return_temp_files: false,
      input_file: image?.imageData,
    },
tomryanx commented 4 months ago

No I haven't! Didn't see that documented anywhere :)

I've since just resorted to use s3... no biggy. Thanks anyway

mirkancal commented 3 months ago

Is it also how you upload zip file?