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

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

Closed
mlsimon734 opened this issue Feb 21, 2024 · 5 comments
Closed

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

mlsimon734 opened this issue Feb 21, 2024 · 5 comments

Comments

@mlsimon734
Copy link

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
Copy link
Member

flymin commented Feb 22, 2024

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

@mlsimon734
Copy link
Author

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.

flymin added a commit that referenced this issue Jun 1, 2024
@CSUXA
Copy link

CSUXA commented Nov 20, 2024

why i try it but it doesnot work

@flymin
Copy link
Member

flymin commented Nov 20, 2024

Did you cd to the folder and use ./diffusers or . to install? Do not use pip install diffusers.

@CSUXA
Copy link

CSUXA commented Nov 21, 2024

thanks,i will try it

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

3 participants