-
Notifications
You must be signed in to change notification settings - Fork 25
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
Adapter #37
Comments
Hi, below are some common design insights for Adapter:
[1] Explicit visual prompting for low-level structure segmentations 同学你好,Adapter的改进思路大致分为如下几种:
|
Thank you !!! |
Do you have any optimization suggestions about your adapter? thank you!
class Adapter(nn.Module):
def init(self, blk) -> None:
super(Adapter, self).init()
self.block = blk
dim = blk.attn.qkv.in_features # dim = 144,288,576
self.prompt_learn = nn.Sequential(
nn.Linear(dim, 32),
nn.GELU(),
nn.Linear(32, dim),
nn.GELU()
)
The text was updated successfully, but these errors were encountered: