salesforce / LAVIS

LAVIS - A One-stop Library for Language-Vision Intelligence
BSD 3-Clause "New" or "Revised" License
9.72k stars 955 forks source link

'Blip2OPT' object has no attribute 'forward_encoder_image' #654

Open kz29 opened 7 months ago

kz29 commented 7 months ago

I am using the transformer 4.28 version and get the following error. How can I solve it? Thank you!

raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'") AttributeError: 'Blip2OPT' object has no attribute 'forward_encoder_image'

sftsgly commented 3 months ago

u solve it ?