Skip to content
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

Create a PyTorch DataSet class to load our own data for Mask-RCNN #16

Closed
d-diaz opened this issue Apr 27, 2020 · 0 comments
Closed

Create a PyTorch DataSet class to load our own data for Mask-RCNN #16

d-diaz opened this issue Apr 27, 2020 · 0 comments
Assignees

Comments

@d-diaz
Copy link
Owner

d-diaz commented Apr 27, 2020

PyTorch's default Mask-RCNN implementation expects input formatted like this:

During training, the model expects both the input tensors, as well as a targets (list of dictionary), containing:

  • boxes (FloatTensor[N, 4]): the ground-truth boxes in [x1, y1, x2, y2] format, with values of x between 0 and W and values of y between 0 and H
  • labels (Int64Tensor[N]): the class label for each ground-truth box
  • masks (UInt8Tensor[N, H, W]): the segmentation binary masks for each instance

We will probably want to implement a DataSet class to make data loading and any transformations straightforward. Here's a tutorial in PyTorch docs on making a DataSet. Here is an example specific to creating a DataSet for Mask-RCNN .

aj-22 added a commit to aj-22/stand_mapping that referenced this issue May 9, 2020
aj-22 added a commit that referenced this issue May 9, 2020
PyTorch dataset for Issue #16
aj-22 added a commit to aj-22/stand_mapping that referenced this issue May 9, 2020
aj-22 added a commit that referenced this issue May 9, 2020
Added comments to PyTorch dataset for Issue #16
@d-diaz d-diaz closed this as completed Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants