yunqing-me / AttackVLM

[NeurIPS-2023] Annual Conference on Neural Information Processing Systems
https://arxiv.org/pdf/2305.16934.pdf
MIT License
161 stars 8 forks source link

Blip2OPT' object has no attribute 'forward_encoder_image' #17

Open kz29 opened 8 months ago

kz29 commented 8 months ago

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 commented 4 weeks ago

bro, do u solve it?