automatic icon indicating copy to clipboard operation
automatic copied to clipboard

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

Open solsol360 opened this issue 2 years ago • 2 comments

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: 9bf08c5493925b6ddb3451f6a6e00460ca92aedd 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

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

solsol360 avatar Feb 03 '24 07:02 solsol360

upstream issue https://github.com/huggingface/diffusers/issues/6838 and pending patch: https://github.com/huggingface/diffusers/pull/6841

vladmandic avatar Feb 04 '24 12:02 vladmandic

fixed upstream

vladmandic avatar Feb 04 '24 23:02 vladmandic