AttackVLM icon indicating copy to clipboard operation
AttackVLM copied to clipboard

Segmentation fault when doing `clip_model.encode_image`

Open lingzhiyxp opened this issue 1 year ago • 1 comments

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

lingzhiyxp avatar May 07 '24 06:05 lingzhiyxp

can let this function instead forward_encoder_image in blip2?

sftsgly avatar Jul 10 '24 16:07 sftsgly

It is usually due to the package version or your installation environment (e.g. cuda). see if this can help: https://github.com/ggerganov/llama.cpp/issues/4702

yunqing-me avatar Dec 02 '24 13:12 yunqing-me