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

TypeError: must be real number, not NoneType #10

Open
HyunJae5463 opened this issue Aug 24, 2023 · 0 comments
Open

TypeError: must be real number, not NoneType #10

HyunJae5463 opened this issue Aug 24, 2023 · 0 comments

Comments

@HyunJae5463
Copy link

HyunJae5463 commented Aug 24, 2023

Getting this error when i select a style when i use HighRes Fix.

    Traceback (most recent call last):
      File "C:\AI\XL\stable-diffusion-webui-directml\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
      File "C:\AI\XL\stable-diffusion-webui-directml\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
      File "C:\AI\XL\stable-diffusion-webui-directml\modules\txt2img.py", line 69, in txt2img
        processed = processing.process_images(p)
      File "C:\AI\XL\stable-diffusion-webui-directml\modules\processing.py", line 680, in process_images
        res = process_images_inner(p)
      File "C:\AI\XL\stable-diffusion-webui-directml\modules\processing.py", line 786, in process_images_inner
        p.setup_conds()
      File "C:\AI\XL\stable-diffusion-webui-directml\modules\processing.py", line 1207, in setup_conds
        self.calculate_hr_conds()
      File "C:\AI\XL\stable-diffusion-webui-directml\modules\processing.py", line 1190, in calculate_hr_conds
        self.hr_uc = self.get_conds_with_caching(prompt_parser.get_learned_conditioning, self.hr_negative_prompts, self.steps * self.step_multiplier, [self.cached_hr_uc, self.cached_uc], self.hr_extra_network_data)
      File "C:\AI\XL\stable-diffusion-webui-directml\modules\processing.py", line 353, in get_conds_with_caching
        cache[1] = function(shared.sd_model, required_prompts, steps)
      File "C:\AI\XL\stable-diffusion-webui-directml\modules\prompt_parser.py", line 163, in get_learned_conditioning
        conds = model.get_learned_conditioning(texts)
      File "C:\AI\XL\stable-diffusion-webui-directml\modules\sd_models_xl.py", line 24, in get_learned_conditioning
        "original_size_as_tuple": torch.tensor([height, width], **devices_args).repeat(len(batch), 1),
    TypeError: must be real number, not NoneType
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant