We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbaef08 commit 817674bCopy full SHA for 817674b
official/vision/modeling/maskrcnn_model.py
@@ -495,7 +495,7 @@ def checkpoint_items(
495
detection_head=self.detection_head)
496
if self.decoder is not None:
497
items.update(decoder=self.decoder)
498
- if self._include_mask:
+ if self._include_mask and self.mask_head is not None:
499
items.update(mask_head=self.mask_head)
500
501
return items
0 commit comments