Open DavidLanders95 opened 1 year ago
Yes you can change it, but you need to train the network again. 😅
self.num_mask_tokens
why is 4?
Yes you can change it, but you need to train the network again. 😅
Thanks, I thought that might be the case.
self.num_mask_tokens
why is 4?
I'm not sure why, it's one more than the number of multimask outputs for some reason. It's set in the code.
self.num_mask_tokens
why is 4?
When multimask_output
is False, the predicted mask associated with the first mask token is returned. Otherwise, the masks associated with the other 3 masks tokens are returned.
Is there a way to generate more than 3 masks for one input without retraining the network ?
Is is possible to change the number of possible mask outputs from the model to another value greater than 3? I see in the class MaskDecoder there is an option:
However, when I try and edit this value to say 5 or 10, I receive an error:
Does anyone know if this is possible to solve?