-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replaced ConvertImageDtype by ToDtype in reference scripts #7862
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @vfdev-5 , looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @vfdev-5 !
@@ -78,6 +78,6 @@ def _coco_detection_masks_to_voc_segmentation_mask(self, target): | |||
def forward(self, image, target): | |||
segmentation_mask = self._coco_detection_masks_to_voc_segmentation_mask(target) | |||
if segmentation_mask is None: | |||
segmentation_mask = torch.zeros(v2.functional.get_spatial_size(image), dtype=torch.uint8) | |||
segmentation_mask = torch.zeros(v2.functional.get_size(image), dtype=torch.uint8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah good catch, thanks
…7862) Summary: (Note: this ignores all push blocking failures!) Reviewed By: matteobettini Differential Revision: D48900394 fbshipit-source-id: b4c93e890c8565bbba16211e3a7842a972b259a7 Co-authored-by: Nicolas Hug <nh.nicolas.hug@gmail.com>
Description: