You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run the demo.py and meet this bug, how to deal with it?
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'AttentionBlock' object has no attribute 'to_k'
The text was updated successfully, but these errors were encountered:
Thank you for your reply. I have tried diffusers 0.14.0 but still have some error:
Cannot load <class 'improv.modeling.meta_arch.modules.VQDecoder'> from /root/.cache/huggingface/hub/models--xvjiarui--IMProv-v1-0/snapshots/bc9d733ae2fc403600f87f8374b2eb544e6bd6dd/image_decoder because the following keys are missing:
decoder.up_blocks.0.attentions.1.value.weight, decoder.up_blocks.0.attentions.2.query.bias, decoder.up_blocks.0.attentions.2.query.weight, decoder.up_blocks.0.attentions.1.proj_attn.bias, decoder.up_blocks.0.attentions.0.query.bias, decoder.up_blocks.0.attentions.0.value.bias, decoder.up_blocks.0.attentions.2.key.bias, decoder.mid_block.attentions.0.key.weight, decoder.up_blocks.0.attentions.1.key.bias, decoder.mid_block.attentions.0.query.weight, decoder.up_blocks.0.attentions.1.proj_attn.weight, decoder.up_blocks.0.attentions.2.proj_attn.bias, decoder.up_blocks.0.attentions.1.key.weight, decoder.mid_block.attentions.0.proj_attn.weight, decoder.up_blocks.0.attentions.2.value.weight, decoder.up_blocks.0.attentions.1.query.weight, decoder.up_blocks.0.attentions.0.key.weight, decoder.mid_block.attentions.0.query.bias, decoder.up_blocks.0.attentions.0.value.weight, decoder.up_blocks.0.attentions.1.query.bias, decoder.mid_block.attentions.0.value.bias, decoder.up_blocks.0.attentions.2.value.bias, decoder.mid_block.attentions.0.proj_attn.bias, decoder.up_blocks.0.attentions.0.query.weight, decoder.up_blocks.0.attentions.1.value.bias, decoder.mid_block.attentions.0.value.weight, decoder.up_blocks.0.attentions.2.proj_attn.weight, decoder.mid_block.attentions.0.key.bias, decoder.up_blocks.0.attentions.0.proj_attn.bias, decoder.up_blocks.0.attentions.2.key.weight, decoder.up_blocks.0.attentions.0.key.bias, decoder.up_blocks.0.attentions.0.proj_attn.weight.
Please make sure to pass low_cpu_mem_usage=False and device_map=None if you want to randomely initialize those weights or else make sure your checkpoint file is correct.
I run the demo.py and meet this bug, how to deal with it?
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'AttentionBlock' object has no attribute 'to_k'
The text was updated successfully, but these errors were encountered: