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

[Issue]: AttributeError hidiffusion with pulid #3724

Open
2 tasks done
MonkeyMan007 opened this issue Jan 25, 2025 · 1 comment
Open
2 tasks done

[Issue]: AttributeError hidiffusion with pulid #3724

MonkeyMan007 opened this issue Jan 25, 2025 · 1 comment

Comments

@MonkeyMan007
Copy link

Issue Description

is this fixable or just not posible
i tried using hidiffusion with pulid

07:11:10-447660 ERROR gradio call: AttributeError
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ F:\SD\automatic\modules\call_queue.py:31 in f │
│ │
│ 30 │ │ │ try: │
│ ❱ 31 │ │ │ │ res = func(*args, **kwargs) │
│ 32 │ │ │ │ progress.record_results(id_task, res) │
│ │
│ F:\SD\automatic\modules\txt2img.py:96 in txt2img │
│ │
│ 95 │ p.state = state │
│ ❱ 96 │ processed: processing.Processed = scripts.scripts_txt2img.run(p, *args) │
│ 97 │ if processed is None: │
│ │
│ F:\SD\automatic\modules\scripts.py:511 in run │
│ │
│ 510 │ │ if hasattr(script, 'run'): │
│ ❱ 511 │ │ │ processed = script.run(p, *parsed) │
│ 512 │ │ else: │
│ │
│ F:\SD\automatic\scripts\pulid_ext.py:251 in run │
│ │
│ 250 │ │ │ │ return None │
│ ❱ 251 │ │ │ processed: processing.Processed = processing.process_images(p) # runs processing using main loop │
│ 252 │
│ │
│ F:\SD\automatic\modules\processing.py:210 in process_images │
│ │
│ 209 │ │ │ with context_hypertile_vae(p), context_hypertile_unet(p): │
│ ❱ 210 │ │ │ │ processed = process_images_inner(p) │
│ 211 │
│ │
│ F:\SD\automatic\modules\processing.py:340 in process_images_inner │
│ │
│ 339 │ │ │ │ │ from modules.processing_diffusers import process_diffusers │
│ ❱ 340 │ │ │ │ │ samples = process_diffusers(p) │
│ 341 │ │ │ │ else: │
│ │
│ F:\SD\automatic\modules\processing_diffusers.py:450 in process_diffusers │
│ │
│ 449 │ if 'base' not in p.skip: │
│ ❱ 450 │ │ output = process_base(p) │
│ 451 │ else: │
│ │
│ F:\SD\automatic\modules\processing_diffusers.py:95 in process_base │
│ │
│ 94 │ │ extra_networks.activate(p, exclude=['text_encoder', 'text_encoder_2', 'text_encoder_3']) │
│ ❱ 95 │ │ hidiffusion.apply(p, shared.sd_model_type) │
│ 96 │ │ timer.process.record('move') │
│ │
│ F:\SD\automatic\modules\hidiffusion_init_.py:35 in apply │
│ │
│ 34 │ │ │ p.extra_generation_params['HiDiffusion Ratios'] = f'{shared.opts.hidiffusion_t1}/{shared.opts.hidif │
│ ❱ 35 │ │ hidiffusion.apply_hidiffusion(shared.sd_model, apply_raunet=shared.opts.hidiffusion_raunet, apply_windo │
│ 36 │ │ p.extra_generation_params['HiDiffusion'] = f'{shared.opts.hidiffusion_raunet}/{shared.opts.hidiffusion_ │
│ │
│ F:\SD\automatic\modules\hidiffusion\hidiffusion.py:635 in apply_hidiffusion │
│ │
│ 634 │ diffusion_model = model.unet if hasattr(model, "unet") else model │
│ ❱ 635 │ diffusion_model.num_upsamplers += 12 │
│ 636 │ diffusion_model.info = { │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'StableDiffusionXLPuLIDPipeline' object has no attribute 'num_upsamplers'

Version Platform Description

No response

Relevant log output

Backend

Diffusers

UI

Standard

Branch

Master

Model

StableDiffusion XL

Acknowledgements

  • I have read the above and searched for existing issues
  • I confirm that this is classified correctly and its not an extension issue
@vladmandic
Copy link
Owner

rule-of-thumb is for any two unrelated functionalities, they are not expected to work unless explicitly noted.
in case of hidiffusion with pulid, that would be a major effort as pulid pipeline is a very different thing than standard sdxl pipeline.
you can convert this to a feature request if desired, but i doubt it will be prioritized unless there are contributions.

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

2 participants