Traceback (most recent call last):


 "/home/ryan/Documents/NIUVT/objDet/detectron/detectron2/detectron2/engine/train_loop.py", line 132, in train

self.run_step()


 "/home/ryan/Documents/NIUVT/objDet/detectron/detectron2/detectron2/engine/train_loop.py", line 215, in run_step

loss_dict = self.model(data)


 "/home/ryan/.pyenv/versions/objDet3.7/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__

result = self.forward(*input, **kwargs)


 "/home/ryan/Documents/NIUVT/objDet/detectron/detectron2/detectron2/modeling/meta_arch/rcnn.py", line 123, in forward

_, detector_losses = self.roi_heads(images, features, proposals, gt_instances)


 "/home/ryan/.pyenv/versions/objDet3.7/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__

result = self.forward(*input, **kwargs)


 "/home/ryan/Documents/NIUVT/objDet/detectron/detectron2/detectron2/modeling/roi_heads/roi_heads.py", line 669, in forward

losses.update(self._forward_mask(features, proposals))


 "/home/ryan/Documents/NIUVT/objDet/detectron/detectron2/detectron2/modeling/roi_heads/roi_heads.py", line 773, in _forward_mask

return self.mask_head(mask_features, proposals)


 "/home/ryan/.pyenv/versions/objDet3.7/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__

result = self.forward(*input, **kwargs)


 "/home/ryan/Documents/NIUVT/objDet/detectron/detectron2/detectron2/modeling/roi_heads/mask_head.py", line 190, in forward

return {"loss_mask": mask_rcnn_loss(x, instances, self.vis_period)}


 "/home/ryan/Documents/NIUVT/objDet/detectron/detectron2/detectron2/modeling/roi_heads/mask_head.py", line 63, in mask_rcnn_loss

gt_masks_per_image = instances_per_image.gt_masks.crop_and_resize(


 "/home/ryan/Documents/NIUVT/objDet/detectron/detectron2/detectron2/structures/instances.py", line 60, in __getattr__

raise AttributeError("Cannot find field '{}' in the given Instances!".format(name))
AttributeError: Cannot find field 'gt_masks' in the given Instances!

Traceback (most recent call last):


 "/home/synapse/src/synapse/http/server.py", line 78, in wrapped_request_handler

await h(self, request)


 "/home/synapse/src/synapse/http/server.py", line 331, in _async_render

callback_return = await callback_return


 "/home/synapse/src/synapse/rest/client/v2_alpha/groups.py", line 329, in on_GET

group_id, requester_user_id
AttributeError: 'NoneType' object has no attribute 'content'
