cure-lab / MagicDrive

[ICLR24] Official implementation of the paper “MagicDrive: Street View Generation with Diverse 3D Geometry Control”
https://gaoruiyuan.com/magicdrive/
GNU Affero General Public License v3.0
419 stars 22 forks source link

'BasicTransformerBlock' object has no attribute '_args' #7

Closed mlsimon734 closed 4 months ago

mlsimon734 commented 4 months ago

I can't run the full demo or the gradio demo because of the following error:

AttributeError: 'BasicTransformerBlock' object has no attribute '_args'

if crossview_attn_type == "basic":
                    _set_module(self, name, BasicMultiviewTransformerBlock(
                        **mod._args, # Problem line
                        neighboring_view_pair=neighboring_view_pair,
                        neighboring_attn_type=neighboring_attn_type,
                        zero_module_type=zero_module_type,
                    ))

I understand that the code is attempting to retrieve the original arguments from the BasicTransformer block, but it seems to be unsuccessful syntactically.

I downloaded an unzipped the pretrained model to /pretrained and have an otherwise functional env.

flymin commented 4 months ago

Please install the diffusers located in third-party, rather than use the official version.

mlsimon734 commented 4 months ago

Thanks, that worked. I think FAQ instructions should be updated to include that diffusers should still be installed directly from the third-party/diffusers folder rather than from the source.