alexopus / ComfyUI-Image-Saver

Save images with Civitai-compatible generation metadata in ComfyUI
MIT License
49 stars 8 forks source link

Feature Request: Save Workflow Hash #35

Open BeTheRobotSD opened 3 months ago

BeTheRobotSD commented 3 months ago

CivitAI does not currently provide a clear way to link back to the workflow that generated your image. As a workflow developer, it would be nice to have the images generated using my workflows to show on the workflow page just like how they do on the Model pages. I'm not sure what the best method would be to support this, but I am proposing a few options:

  1. hash_input: string - This would support adding any single hash to the output, which could support pre-defining the hash for the workflow in a node and using that as input for this field.
  2. hash_inputs: list - This would support adding multiple hash inputs, covering future usecases where there may be multiple hashes you want to add beyond just the workflow hash.

Neither of these are foolproof, as someone can put whatever they want into this field. I don't necessarily see this as a blocker though, as I can already add any LoRA / Embedding at strength 0 to the prompt and have it link to that without any effect from it.

Thanks for reviewing my suggestion!

alexopus commented 3 months ago

Good idea, but is it supported by CivitAI? Can you upload an image with a workflow hash that will get linked? If yes, please provide examples.

PrometheusDante commented 2 months ago

That would be nice indeed. Having to post all showcase images directly under the workflow is not a problem, but no one using the resource usually does, so it always looks rather empty and unused. And as workflows have hash and AIR displayed on the download page, it should be useable as an identifier somehow.

Depending on how CivitAI is reading those values out it might just be a matter of appending that to an image's meta, but I did not try tinkering with it like that yet