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

'Chat' object has no attribute 'forward_encoder' #23

Open
LKJ-np opened this issue Nov 30, 2024 · 2 comments
Open

'Chat' object has no attribute 'forward_encoder' #23

LKJ-np opened this issue Nov 30, 2024 · 2 comments

Comments

@LKJ-np
Copy link

LKJ-np commented Nov 30, 2024

image
Hello, can you share the forward_encoder function in this 'Chat' object has no attribute 'forward_encoder'? I want to continue my research, thank you very much

@yunqing-me
Copy link
Owner

Thanks for the interest. Please adapt our code of crafting adversarial samples shown in the main page to the training / inference code of a specific model as the principal ideas are the similar: Firstly we apply transfer-based attack through the visual encoder (it is often a pretraind Clip encoder), then we conduct the black-box attack on the LLM part of that VLM.

@doudouwer
Copy link

Dears,
Have you ever fixed this problem? May I ask whether Minigpt-4 have ability to generate a photo?

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

3 participants