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

Blip2OPT' object has no attribute 'forward_encoder_image' #17

Open
kz29 opened this issue Feb 23, 2024 · 1 comment
Open

Blip2OPT' object has no attribute 'forward_encoder_image' #17

kz29 opened this issue Feb 23, 2024 · 1 comment

Comments

@kz29
Copy link

kz29 commented Feb 23, 2024

For the transfer attack implemented in the script LAVIS_tool/_train_adv_img_blip.py, the target image features come from the function where blip_model is loaded through lavis package. However, it seems like there is no implementation of the forward_encoder_image function in the source code of lavis, thus triggering the error: AttributeError: 'Blip2OPT' object has no attribute 'forward_encoder_image'. How to solve this issue?

@yukodada
Copy link

bro, do u solve 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

2 participants