Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Hires fix change checkpoint branch: AttributeError: 'NoneType' object has no attribute 'conditioning_key'. #12198

Closed
1 task done
ZeroCool22 opened this issue Jul 31, 2023 · 1 comment
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@ZeroCool22
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

I don't know if it's how supposed to be used...

Screenshot_5

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

No error?

Version or Commit where the problem happens

dca121e

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Windows

What device are you running WebUI on?

Nvidia GPUs (GTX 16 below)

Cross attention optimization

xformers

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

--xformers --api

List of extensions

Screenshot_6

Console logs

venv "C:\Users\ZeroCool22\Desktop\Auto2\webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.5.1-93-gdca121e9
Commit hash: dca121e9035ba36b3f7484c8a31a7776d85c0960
Launching Web UI with arguments: --xformers --api
Loading weights [0f1b80cfe8] from C:\Users\ZeroCool22\Desktop\Auto2\webui\models\Stable-diffusion\dreamshaperXL10_alpha2Xl10_2.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 9.3s (prepare environment: 1.9s, launcher: 0.2s, import torch: 2.8s, import gradio: 0.9s, setup paths: 0.8s, other imports: 1.0s, load scripts: 1.0s, create ui: 0.4s, gradio launch: 0.2s).
Creating model from config: C:\Users\ZeroCool22\Desktop\Auto2\webui\repositories\generative-models\configs\inference\sd_xl_base.yaml
Applying attention optimization: xformers... done.
Model loaded in 10.4s (load weights from disk: 1.2s, create model: 0.3s, apply weights to model: 1.9s, apply half(): 2.2s, move model to device: 1.8s, load textual inversion embeddings: 1.9s, calculate empty prompt: 1.1s).
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:49<00:00,  1.99s/it]
=========================================================================================25/35 [00:49<00:19,  1.92s/it]
A tensor with all NaNs was produced in VAE.
Web UI will now convert VAE into 32-bit float and retry.
To disable this behavior, disable the 'Automaticlly revert VAE to 32-bit floats' setting.
To always start with 32-bit VAE, use --no-half-vae commandline flag.
=========================================================================================
Loading weights [7440042bbd] from C:\Users\ZeroCool22\Desktop\Auto2\webui\models\Stable-diffusion\sd_xl_refiner_1.0.safetensors
Creating model from config: C:\Users\ZeroCool22\Desktop\Auto2\webui\repositories\generative-models\configs\inference\sd_xl_refiner.yaml
Applying attention optimization: xformers... done.
Model loaded in 62.5s (apply weights to model: 36.9s, apply half(): 22.9s, move model to device: 1.8s, calculate empty prompt: 0.5s).
Loading weights [0f1b80cfe8] from C:\Users\ZeroCool22\Desktop\Auto2\webui\models\Stable-diffusion\dreamshaperXL10_alpha2Xl10_2.safetensors
Creating model from config: C:\Users\ZeroCool22\Desktop\Auto2\webui\repositories\generative-models\configs\inference\sd_xl_base.yaml
Applying attention optimization: xformers... done.
Model loaded in 36.4s (create model: 0.4s, apply weights to model: 29.4s, apply half(): 3.7s, move model to device: 2.1s, hijack: 0.1s, load textual inversion embeddings: 0.1s, calculate empty prompt: 0.5s).
*** Error completing request
*** Arguments: ('task(34dq4ta9rzw0mvw)', '(Epic scene:1.2), (close portrait:1.2), Evil ripped warrior consumed by the evil of darkness with a furious face holding a sword on fire, (full body shot), (photorealistic:1.2), (detailed face:1.2), (realistic skin texture:1.1), dramatic lighting, detailed armor plate, art by artgerm and greg rutkowski, unreal engine 5, (Detail Extractor:1.1)', '(anime:1.1), (manga:1.4), distorted face, pigtail, paint, cartoon, render, 3d, asian, deformities, double head, duplicated head, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, bad eyes, crossed eyes, poorly drawn face, mutation, extra limb, poorly drawn hands, missing limb, floating limbs, malformed hands, out of focus, long neck, long body, mutated hands and fingers, out of frame, long fingers, blender, doll, cropped, low-res, black and white', [], 25, 0, True, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 1024, 1024, True, 0.7, 1, 'None', 10, 0, 0, 'sd_xl_refiner_1.0 [7440042bbd]', 0, '', '', [], <gradio.routes.Request object at 0x000001FB12F41540>, 0, False, 'None', 10, False, False, 'positive', 'comma', 0, False, False, '', 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0) {}
    Traceback (most recent call last):
      File "C:\Users\ZeroCool22\Desktop\Auto2\webui\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
      File "C:\Users\ZeroCool22\Desktop\Auto2\webui\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
      File "C:\Users\ZeroCool22\Desktop\Auto2\webui\modules\txt2img.py", line 63, in txt2img
        processed = processing.process_images(p)
      File "C:\Users\ZeroCool22\Desktop\Auto2\webui\modules\processing.py", line 681, in process_images
        res = process_images_inner(p)
      File "C:\Users\ZeroCool22\Desktop\Auto2\webui\modules\processing.py", line 798, in process_images_inner
        samples_ddim = p.sample(conditioning=p.c, unconditional_conditioning=p.uc, seeds=p.seeds, subseeds=p.subseeds, subseed_strength=p.subseed_strength, prompts=p.prompts)
      File "C:\Users\ZeroCool22\Desktop\Auto2\webui\modules\processing.py", line 1083, in sample
        return self.sample_hr_pass(samples, decoded_samples, seeds, subseeds, subseed_strength, prompts)
      File "C:\Users\ZeroCool22\Desktop\Auto2\webui\modules\processing.py", line 1142, in sample_hr_pass
        image_conditioning = self.img2img_image_conditioning(decoded_samples, samples)
      File "C:\Users\ZeroCool22\Desktop\Auto2\webui\modules\processing.py", line 278, in img2img_image_conditioning
        if self.sampler.conditioning_key in {'hybrid', 'concat'}:
    AttributeError: 'NoneType' object has no attribute 'conditioning_key'

Additional information

No response

@ZeroCool22 ZeroCool22 added the bug-report Report of a bug, yet to be confirmed label Jul 31, 2023
@ZeroCool22 ZeroCool22 changed the title [Bug]: Hires fix change checkpoint error. [Bug]: Hires fix change checkpoint branch: AttributeError: 'NoneType' object has no attribute 'conditioning_key'. Jul 31, 2023
@catboxanon
Copy link
Collaborator

#12181 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants