Closed vampireLibrarianMonk closed 9 months ago
SD turbo si SDXL model and requires that you run in diffusers backend.
I am new to stable diffusion and this application how does one go about moving those models to the diffusers section? Currently it is in the Reference section as a default.
you don't move models - you set backend to diffusers in settings and restart the server.
Ok I changed to diffusers in the settings and restarted the server
got the following error
AttributeError: 'StableDiffusionPipeline' object has no attribute 'alphas_cumprod'
18:51:00-228448 DEBUG Setting changed: key=sd_model_checkpoint, value=stabilityai/stable-diffusion-2-1-base
18:51:05-234172 ERROR Running script process: extensions-builtin\sd-webui-controlnet\scripts\controlnet.py: AttributeError
┌───────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────────────────┐
│ C:\Users\flaniganp\repos\automatic\modules\scripts.py:518 in process │
│ │
│ 517 │ │ │ │ args = p.per_script_args.get(script.title(), p.script_args[script.args_f │
│ > 518 │ │ │ │ script.process(p, *args, **kwargs) │
│ 519 │ │ │ except Exception as e: │
│ │
│ C:\Users\flaniganp\repos\automatic\extensions-builtin\sd-webui-controlnet\scripts\controlnet.py:1092 in process │
│ │
│ 1091 │ │ if not Script.process_has_sdxl_refiner(p): │
│ > 1092 │ │ │ self.controlnet_hack(p) │
│ 1093 │ │ return │
│ │
│ C:\Users\flaniganp\repos\automatic\extensions-builtin\sd-webui-controlnet\scripts\controlnet.py:1077 in controlnet_hack │
│ │
│ 1076 │ │ │
│ > 1077 │ │ self.controlnet_main_entry(p) │
│ 1078 │ │ if getattr(shared.cmd_opts, 'controlnet_tracemalloc', False): │
│ │
│ C:\Users\flaniganp\repos\automatic\extensions-builtin\sd-webui-controlnet\scripts\controlnet.py:717 in controlnet_main_entry │
│ │
│ 716 │ │ sd_ldm = p.sd_model │
│ > 717 │ │ unet = sd_ldm.model.diffusion_model │
│ 718 │ │ self.noise_modifier = None │
│ │
│ C:\Users\flaniganp\repos\automatic\venv\lib\site-packages\diffusers\configuration_utils.py:142 in getattr │
│ │
│ 141 │ │ │
│ > 142 │ │ raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'" │
│ 143 │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
AttributeError: 'StableDiffusionPipeline' object has no attribute 'model'
18:51:05-646630 ERROR Prompt parser encode: 'BaseModelOutputWithPooling' object has no attribute 'text_embeds'
18:51:05-646630 DEBUG Diffuser pipeline: StableDiffusionPipeline task=DiffusersTaskType.TEXT_2_IMAGE set={'prompt': 1, 'negative_prompt': 1, 'guidance_scale': 4, 'generator': device(type='xpu'), 'output_type': 'latent',
'num_inference_steps': 20, 'eta': 1.0, 'guidance_rescale': 0.7, 'width': 512, 'height': 512, 'parser': 'Fixed attention'}
18:51:05-646630 ERROR Exception: 'StableDiffusionPipeline' object has no attribute 'alphas_cumprod'
18:51:05-646630 ERROR Arguments: args=('task(g20evzb755o744d)', 'guinea pig', '', [], 20, None, None, True, False, False, 1, 1, 4, 4, 0.7, 1, -1.0, -1.0, 0, 0, 0, 512, 512, False, 0.5, 2, 'None', False, 20, 0, 0, 5, 0.8, '', '',
False, 4, 0.95, False, 1, 1, False, 0.6, 1, [], 0, 3, 1, 1, 0.8, 8, 64, True, False, False, 'positive', 'comma', 0, False, False, '', 'None', True, 0, 'None', 2, True, 1, 0, 0, '', [], 0, '', [], 0, '', [],
False, True, False, False, False, False, 0, None, None, False, None, None, False, None, None, False, 50, 'None', 16, 'None', 1, True, 'None', 2, True, 1, 0, True, 'none', 0.5, None,
UiControlNetUnit(enabled=False, module='none', model='None', weight=1, image=None, resize_mode='Crop and Resize', low_vram=False, processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0,
guidance_end=1, pixel_perfect=False, control_mode='Balanced', inpaint_crop_input_image=False, hr_option='Both', save_detected_map=True, advanced_weighting=None), UiControlNetUnit(enabled=False, module='none',
model='None', weight=1, image=None, resize_mode='Crop and Resize', low_vram=False, processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0, guidance_end=1, pixel_perfect=False,
control_mode='Balanced', inpaint_crop_input_image=False, hr_option='Both', save_detected_map=True, advanced_weighting=None), UiControlNetUnit(enabled=False, module='none', model='None', weight=1, image=None,
resize_mode='Crop and Resize', low_vram=False, processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0, guidance_end=1, pixel_perfect=False, control_mode='Balanced', inpaint_crop_input_image=False,
hr_option='Both', save_detected_map=True, advanced_weighting=None)) kwargs={}
18:51:05-687500 ERROR gradio call: AttributeError
┌───────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────────────────┐
│ C:\Users\flaniganp\repos\automatic\modules\call_queue.py:31 in f │
│ │
│ 30 │ │ │ try: │
│ > 31 │ │ │ │ res = func(*args, **kwargs) │
│ 32 │ │ │ │ progress.record_results(id_task, res) │
│ │
│ C:\Users\flaniganp\repos\automatic\modules\txt2img.py:88 in txt2img │
│ │
│ 87 │ if processed is None: │
│ > 88 │ │ processed = processing.process_images(p) │
│ 89 │ p.close() │
│ │
│ C:\Users\flaniganp\repos\automatic\modules\processing.py:760 in process_images │
│ │
│ 759 │ │ │ with context_hypertile_vae(p), context_hypertile_unet(p): │
│ > 760 │ │ │ │ res = process_images_inner(p) │
│ 761 │
│ │
│ C:\Users\flaniganp\repos\automatic\extensions-builtin\sd-webui-controlnet\scripts\batch_hijack.py:42 in processing_process_images_hijack │
│ │
│ 41 │ │ │ # we are not in batch mode, fallback to original function │
│ > 42 │ │ │ return getattr(processing, 'controlnet_original_process_images_inner')(p, │
│ 43 │
│ │
│ C:\Users\flaniganp\repos\automatic\modules\processing.py:922 in process_images_inner │
│ │
│ 921 │ │ │ │ from modules.processing_diffusers import process_diffusers │
│ > 922 │ │ │ │ x_samples_ddim = process_diffusers(p) │
│ 923 │ │ │ else: │
│ │
│ ... 2 frames hidden ... │
│ │
│ C:\Users\flaniganp\repos\automatic\modules\sd_samplers.py:63 in create_sampler │
│ │
│ 62 │ elif shared.backend == shared.Backend.DIFFUSERS: │
│ > 63 │ │ sampler = config.constructor(model) │
│ 64 │ │ if not hasattr(model, 'scheduler_config'): │
│ │
│ C:\Users\flaniganp\repos\automatic\modules\sd_samplers_compvis.py:11 in
I would like to follow this instruction set
https://www.reddit.com/r/StableDiffusion/comments/16tagbu/vlad_sdnext_sdxl_directml/?rdt=49186
However, where is the checkpoint folder and direction set for the first two files listed here:
do a full server restart. you just restarted from gui.
Ok i did a shutdown then restarted and its now working.
Issue Description
I am having an issue with the following model upon initial install:
arget=/home/flaniganp/automatic/models/Stable-diffusion/sd_turbo.safetensors
Version Platform Description
I am working on a Ubuntu 22.4.03 and an Intel Sparkle 16GB GPU.
Relevant log output
Backend
Original
Branch
Master
Model
SD 1.5
Acknowledgements