stable-diffusion-webui-depthmap-script icon indicating copy to clipboard operation
stable-diffusion-webui-depthmap-script copied to clipboard

[Feature request] Automatically reuse already generated depthmaps

Open donbrasco01 opened this issue 2 years ago • 3 comments

Discussed in https://github.com/thygate/stable-diffusion-webui-depthmap-script/discussions/248

Originally posted by donbrasco01 June 6, 2023 Hello people,

i´m wondering if the depthmap files in the output directory need to have a specific name to be seen by the script, because its always trying to create new depthmaps with the selected model and not using the already existing depthmaps.

Thanks in advance !

donbrasco01 avatar Jun 14 '23 15:06 donbrasco01

I like this idea. This may be done in future, after https://github.com/thygate/stable-diffusion-webui-depthmap-script/pull/278 is complete. Implementing this fully would be quite hard - so maybe not a priority, but a moderately easy solution would be to keep the last generated depthmap and reuse it if the model, image and the depthmap generation parameters are the same. For example, this would be useful when trying out different stereo generation options.

semjonsona avatar Jul 06 '23 10:07 semjonsona

i´m wondering if the depthmap files in the output directory need to have a specific name to be seen by the script, because its always trying to create new depthmaps with the selected model and not using the already existing depthmaps.

@donbrasco01 Sorry, I guess I mis-interpreted your original question. Please try the Batch from Directory option with "Skip generation..." enabled.

semjonsona avatar Jul 06 '23 10:07 semjonsona

Thank you for your reply! I just figured it out .... the externally generated depthmaps need to have the "original-filename"+"-0000" and they have no be PNG. Its working now exactly as it supposed to be!

Thank you again

donbrasco01 avatar Jul 06 '23 16:07 donbrasco01