Skip to content

[Issue]: Control - Reference - AttributeError: 'BasicTransformerBlock' object has no attribute 'use_ada_layer_norm' #2790

@solsol360

Description

@solsol360

Issue Description

In Dev, Control Reference gives AttributeError: 'BasicTransformerBlock' object has no attribute 'use_ada_layer_norm'

Replicate:
Upload Control Input image
Upload Reference Image
Generate

Log:
ref_error-sdnext.log

Version Platform Description

2024-02-03 09:39:30,385 | sd | INFO | installer | Python 3.10.11 on Windows
2024-02-03 09:39:30,484 | sd | INFO | installer | Version: app=sd.next updated=2024-02-02 hash=5463768 url=https://github.com/vladmandic/automatic.git/tree/dev
2024-02-03 09:39:30,969 | sd | INFO | installer | Latest published version: 9bf08c5 2024-01-30T14:29:51Z
2024-02-03 09:39:30,975 | sd | INFO | launch | Platform: arch=AMD64 cpu=AMD64 Family 25 Model 97 Stepping 2, AuthenticAMD system=Windows release=Windows-10-10.0.22631-SP0 python=3.10.11

Relevant log output

2024-02-03 09:40:22,232 | sd | DEBUG | processing_diffusers | Diffuser pipeline: StableDiffusionReferencePipeline task=DiffusersTaskType.TEXT_2_IMAGE set={'prompt_embeds': torch.Size([1, 77, 768]), 'negative_prompt_embeds': torch.Size([1, 77, 768]), 'guidance_scale': 6, 'generator': device(type='cuda'), 'output_type': 'latent', 'num_inference_steps': 20, 'eta': 1.0, 'guidance_rescale': 0.7, 'width': 512, 'height': 512, 'reference_attn': True, 'reference_adain': False, 'attention_auto_machine_weight': 1.0, 'gn_auto_machine_weight': 1.0, 'style_fidelity': 0.5, 'ref_image': <PIL.PngImagePlugin.PngImageFile image mode=RGB size=512x512 at 0x2054DD36560>, 'parser': 'Full parser'}
2024-02-03 09:40:22,999 | sd | ERROR | run | Control pipeline failed: type=reference units=0 error='BasicTransformerBlock' object has no attribute 'use_ada_layer_norm'
2024-02-03 09:40:23,000 | sd | ERROR | errors | Control: AttributeError
2024-02-03 09:40:23,320 | sd | TRACE | run | Control restored pipeline: class=StableDiffusionPipeline
2024-02-03 09:40:23,322 | sd | TRACE | run | Control ready: images=None | Control mode: Reference | Control attention: Attention | FreeU: b1=1.2 b2=1.4 s1=0.9 s2=0.2 | Hypertile UNet: 256 | Pipeline: StableDiffusionReferencePipeline
2024-02-03 09:40:23,323 | sd | TRACE | ui_control | Control received: type=<class 'tuple'> (None, <PIL.Image.Image image mode=RGB size=512x512 at 0x2054DD135B0>, 'Control ready images=None | Control mode: Reference | Control attention: Attention | FreeU: b1=1.2 b2=1.4 s1=0.9 s2=0.2 | Hypertile UNet: 256 | Pipeline: StableDiffusionReferencePipeline', None)

Backend

Diffusers

Branch

Dev

Model

SD 1.5

Acknowledgements

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions