parsehex / ai-experiments

Web-based prototypes/demos using AI
0 stars 0 forks source link

Img AI #1

Open parsehex opened 8 months ago

parsehex commented 8 months ago

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.

parsehex commented 8 months ago

Basic SDXL support, haven't tried the refiner but results from base model alone were disappointing, reasonable speed.

Note dump

parsehex commented 8 months ago

Trying 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.

parsehex commented 8 months ago

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?)