Open Riley-livingston opened 8 months ago
Hi, simply removing multimask_output
from all codes should work well (https://github.com/xinghaochen/TinySAM/commit/1492efb28b6cd009f0940fb7b8167e48ac8a1459). You can pull the newest codes and try again.
You can refer issue https://github.com/xinghaochen/TinySAM/issues/9 for more details.
Hello, Im trying to fine-tune the mask decoder of tiny sam on a custom dataset while freezing the weights of the image_encoder and prompt_encoder. Im having an issue in my training loop where the sam.forward() requires a "multimask_output" argument but the MaskDecoder.forward() doesn't accept a "multitask_output" argument.
Im not an ML Engineer so I don't know much about the underlying code. If anyone with more knowledge than me has some insight into how I can resolve this issue I would appreciate it, thanks!
here is how im freezing the image encoder and prompt encoder to maintain the original weights:
I am also providing bounding box Prompts as the input. Here is my custom class for Dataset creation:
error when I DONT provide multitask_output:
error when I do provide the multitask_output argument: