Open parsehex opened 8 months ago
Basic SDXL support, haven't tried the refiner but results from base model alone were disappointing, reasonable speed.
Note dump
pipeline.scheduler
reference to the desired sampler (e.g. pipeline.scheduler = DPMSolverMultistepScheduler.from_config(pipeline.scheduler.config)
) - See here for a table of different schedulersTrying to switch sampler/scheduler... Why is it this kind of difficult? It seems to be that the only way to change the thing is to re-load the model with a different sampler. How in the the world do all of these webuis let you hot-swap the damn sampler???
I'm skeptical that changing the pipeline.scheduler even works despite it being all over the docs (here). See last comment here -- someone saying that setting the pipeline.scheduler can lead to errors and not to encourage it. And yet this is what the docs say to do.
Okay, I think I got there with changing the scheduler. The main thing:
Re-create the AutoPipelineForText2Image after changing the scheduler (so set self.model
)
Also still setting default_config to pipeline.scheduler.config before initially setting the default sampler. Then, use this default config to initialize later samplers (should we cache samplers to avoid re-making?)
This is image-generating AI, initially supporting Stable Diffusion and then probably DALL-E 3 afterwards.
To use SD models I'll be using the Diffusers library.