Skip to content

[EXPERIMENT][WIP] NestedTensor for reference detection#1192

Open
cpuhrsch wants to merge 3 commits intopytorch:mainfrom
cpuhrsch:imglist2
Open

[EXPERIMENT][WIP] NestedTensor for reference detection#1192
cpuhrsch wants to merge 3 commits intopytorch:mainfrom
cpuhrsch:imglist2

Conversation

@cpuhrsch
Copy link
Contributor

@cpuhrsch cpuhrsch commented Aug 1, 2019

No description provided.

self.image_sizes = image_sizes
if isinstance(tensors, list):
print("ImageList based on a list")
tensors = self._batch_images(tensors).unbind()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A key thing to notice here is that we're still padding the Tensors before creating the NestedTensor. A big next step will be to remove this. The assumption that each entry is of the same shape is deeply ingrained into the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants