detectorch icon indicating copy to clipboard operation
detectorch copied to clipboard

mask head usage?

Open Scitator opened this issue 7 years ago • 1 comments

Hi!

Firstly, thank u a lot. It looks like the best mask-rcnn implementation. (cause it does not use this magic from config import cfg)

Nevertheless, something is a bit strange for me. In the model init you define self.mask_head (cause it needed for segmentation task), but in the forward pass you dont use it at all. How is that?

Thanks!

Scitator avatar Apr 13 '18 14:04 Scitator

Hi, glad you liked the code :)

Please see the demo notebooks for the usage of the mask head. Essentially there is a results postprocess stage between the forward pass and running the mask head.

Ideally this post-processing stage (which involves NMS and other things) should also be converted into a torch.nn.Module, but this is not the case for now.

ignacio-rocco avatar Apr 13 '18 14:04 ignacio-rocco