Skip to content

Conversation

@pmeier
Copy link
Contributor

@pmeier pmeier commented Nov 19, 2021

I thought that would be a good idea when I added it in #4863. Turns out, this only works under the assumption that every file is present in exactly one sample. Optical flow datasets like Sintel violate that assumption, which leads to test failures although the dataset works fine.

torchdata has some internal functionality to close files when a datapipe is exhausted. Better to just rely on that to avoid issues like this in the future.

cc @pmeier @bjuncek

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Nov 19, 2021

💊 CI failures summary and remediations

As of commit e7ac1f3 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

LGTM!

@fmassa fmassa merged commit ef2e418 into pytorch:main Nov 22, 2021
@pmeier pmeier deleted the datasets/fix-test-decoding branch November 22, 2021 15:39
facebook-github-bot pushed a commit that referenced this pull request Nov 30, 2021
Summary:
* don't close file handles in protoype dataset tests

* remove file closing from decoder

Reviewed By: NicolasHug

Differential Revision: D32694300

fbshipit-source-id: bf16b5a95736c6ef526230af1fd596f36ff18751

Co-authored-by: Francisco Massa <[email protected]>
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.

3 participants