-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Add checks to roi_heads in detection module #1091
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
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
154cadb
Merge pull request #1 from pytorch/master
ekagra-ranjan e964780
Merge pull request #2 from pytorch/master
ekagra-ranjan 103b25a
Merge pull request #3 from pytorch/master
ekagra-ranjan 2925fed
Merge pull request #5 from pytorch/master
ekagra-ranjan 70e21e7
Merge pull request #9 from pytorch/master
ekagra-ranjan 149b436
Merge pull request #10 from pytorch/master
ekagra-ranjan eda387b
Merge pull request #11 from pytorch/master
ekagra-ranjan 1ff32d3
Merge pull request #13 from pytorch/master
ekagra-ranjan 227111b
Merge pull request #14 from pytorch/master
ekagra-ranjan ecda81b
add float32 to keypoint_rcnn docs
ekagra-ranjan 511202d
add float32 to faster_rcnn docs
ekagra-ranjan dbdd372
add float32 to mask_rcnn
ekagra-ranjan 0662e6b
Update faster_rcnn.py
ekagra-ranjan 778207f
Update keypoint_rcnn.py
ekagra-ranjan 299904a
Update mask_rcnn.py
ekagra-ranjan d5335a6
Update faster_rcnn.py
ekagra-ranjan 87d6927
make keypoints float
ekagra-ranjan 076fd78
make masks uint8
ekagra-ranjan 8d9fbf1
Update keypoint_rcnn.py
ekagra-ranjan 3efb26d
make labels Int64
ekagra-ranjan 4e6299f
make labels Int64
ekagra-ranjan 1068ff5
make labels Int64
ekagra-ranjan 41c36f6
Add checks for boxes, labels, masks, keypoints
ekagra-ranjan 80c409a
Merge branch 'master' into mz-rpn-float
ekagra-ranjan 03932e9
update mask dim
ekagra-ranjan 2fbef71
remove dtype
ekagra-ranjan 86db726
check only if targets is not None
ekagra-ranjan 105373e
account for targets being a list
ekagra-ranjan 5467466
update target to be list of dict
ekagra-ranjan f1ec459
Update faster_rcnn.py
ekagra-ranjan 3fffae4
Update keypoint_rcnn.py
ekagra-ranjan f11dc3b
allow boxes to be of float16 type as well
ekagra-ranjan 3fb2a9e
remove checks on mask
ekagra-ranjan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Those are great changes, thanks!
But I'm a bit concerned that this looks like the legacy interface of
torch.FloatTensor, etc.I wonder if there is a better way of representing this? For example, in numpy, everything is a
ndarray, but with different types.Thoughts?
Uh oh!
There was an error while loading. Please reload this page.
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.
Would the descriptions like
boxes(Tensor[N, 4], dtype=torch.float)orboxes(FloatTensor(N, 4))be better?(Tensor[N, 4], dtype=torch.float)is not a valid syntax but conveys the requirement whereasFloatTensor(N, 4)would actually create a float tensor withdim = (N, 4).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.
Let's just keep this as is for now. But I'd like to remove the
FloatTensor, changes, and only keepInt64Tensorinstead, because boxes is not required to beFloat