Remove k-sampler requirement and remove it form the cold. not used anymore anyway
This commit is contained in:
1 parent
b677cdb026
commit
7e7053fc9a
4 files changed
+2
-314
No files matched your search
@@ -42,7 +42,7 @@ from toolkit.train_tools import get_torch_dtype, apply_noise_offset
|
||||
from einops import rearrange, repeat
|
||||
import torch
|
||||
from toolkit.pipelines import CustomStableDiffusionXLPipeline, CustomStableDiffusionPipeline, \
|
||||
StableDiffusionKDiffusionXLPipeline, StableDiffusionXLRefinerPipeline, FluxWithCFGPipeline, \
|
||||
StableDiffusionXLRefinerPipeline, FluxWithCFGPipeline, \
|
||||
FluxAdvancedControlPipeline
|
||||
from diffusers import StableDiffusionPipeline, StableDiffusionXLPipeline, T2IAdapter, DDPMScheduler, \
|
||||
StableDiffusionXLAdapterPipeline, StableDiffusionAdapterPipeline, DiffusionPipeline, PixArtTransformer2DModel, \
|
||||
@@ -1212,10 +1212,7 @@ class StableDiffusion:
|
||||
except:
|
||||
pass
|
||||
|
||||
if sampler.startswith("sample_") and self.is_xl:
|
||||
# using kdiffusion
|
||||
Pipe = StableDiffusionKDiffusionXLPipeline
|
||||
elif self.is_xl:
|
||||
if self.is_xl:
|
||||
Pipe = StableDiffusionXLPipeline
|
||||
elif self.is_v3:
|
||||
Pipe = StableDiffusion3Pipeline
|
||||
@@ -1348,9 +1345,6 @@ class StableDiffusion:
|
||||
# disable progress bar
|
||||
pipeline.set_progress_bar_config(disable=True)
|
||||
|
||||
if sampler.startswith("sample_"):
|
||||
pipeline.set_scheduler(sampler)
|
||||
|
||||
refiner_pipeline = None
|
||||
if self.refiner_unet:
|
||||
# build refiner pipeline
|
||||
|
||||
Reference in new issue
Block a user