yunqing-me / AttackVLM

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

Segmentation fault when doing `clip_model.encode_image` #20

Open KeyboardxPang opened 4 months ago

KeyboardxPang commented 4 months ago

Thanks for the amazing work. I am now trying to run the _train_adv_img_trans.py code and get an unexpected segmentation error. After locating the error location, I believe it is from the clip_model.encode_image() part. Here is the detail of the error. 7651715061947_ pic

sftsgly commented 1 month ago

can let this function instead forward_encoder_image in blip2?