Open RangiLyu opened 1 year ago
We are considering moving mask.to_tesnor
to PackDetInputs
. But this modification is related to all instance segmentation methods. We will open another PR for the refactoring.
Great. I tried mask.to_tesnor
in PackDetInputs
and it saved me 0.1x s/iter at batch size 32.
There's one related problem. You are using ndarray
to store masks in BitmapMasks, which could be slow (long data_time
) when used together with DataLoader. torch.Tensor
with DataLoader does not have that problem.
You can speed up Mask R-CNN training a bit if using torch.Tensor
in BitmapMasks. It would be nice to have that in mmdet 3.x.
Great! Thanks for your suggestion! We will consider this feature in the refactoring.
_Originally posted by @tascj in https://github.com/open-mmlab/mmdetection/pull/9494#discussion_r1051396341_