DarthAffe / StableDiffusion.NET

C# Wrapper for StableDiffusion.cpp
MIT License
60 stars 10 forks source link

Can you support the BatchCount parameter? #10

Open qiandi opened 4 months ago

qiandi commented 4 months ago

and Image2Video method

DarthAffe commented 4 months ago

What is your use-case for an batch-count parameter? I don't see any advantage over just a loop and multiple generations. But the parameter would add extra clutter to the interface and introduce some challenges freeing the native memory.

Image2Video is not supported in stable-diffusion.cpp so far. It was worked on in https://github.com/leejet/stable-diffusion.cpp/pull/236 but never got merged.

qiandi commented 4 months ago

Does BatchSize support it?

DarthAffe commented 4 months ago

No

qiandi commented 4 months ago

Why is there no judgment on null for _parameter in the Initialize method

DarthAffe commented 4 months ago

What do you mean? The _parameter-Field is not nullable, that's also runtime checked when passing it in the constructor.

qiandi commented 4 months ago

I'm sorry I didn't make it clear,I see that you don't need to _parameter parameters only when using Upscale,Is it possible to initialize it separately