vit-pytorch icon indicating copy to clipboard operation
vit-pytorch copied to clipboard

Add another MLP head in vision transformer

Open Atul997 opened this issue 2 years ago • 2 comments

How can I add/extend MLP head in same model for detection? Let's say head is detecting objects A,B,C in a image and we want to train by adding or extend MLP/classification head to detect objects D, E, F in same image without combining both the classes.

Any help would be appreciated?

Atul997 avatar Jun 22 '22 09:06 Atul997

@Atul997 this is a nice scheme https://github.com/lucidrains/vit-pytorch#learnable-memory-vit

lucidrains avatar Jun 22 '22 14:06 lucidrains

@lucidrains Thanks . How the data will look like in terms of json file such as two different json or single json containing annotation for both the different head classes?

Atul997 avatar Jun 23 '22 04:06 Atul997