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

test output_format in video datasets #7879

Merged
merged 2 commits into from
Aug 24, 2023
Merged

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Aug 24, 2023

While looking into #7875, I realized we don't test for the correct output format of our video datasets. This PR adds a small test for that as well some QoL improvements I found along the way.

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 24, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/7879

Note: Links to docs will display an error until the docs builds have been completed.

❌ 19 New Failures, 2 Unrelated Failures

As of commit af781f9 with merge base b82d883 (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following job failed but was present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 13:58 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 13:58 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 13:58 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 13:58 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 13:58 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 13:59 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 13:59 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 13:59 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 13:59 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 13:59 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 13:59 — with GitHub Actions Inactive

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.dataset_args = self._set_default_frames_per_clip(self.dataset_args)

def _set_default_frames_per_clip(self, inject_fake_data):
def _set_default_frames_per_clip(self, dataset_args):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Although the logic is correct, we used the wrong name here. See L669 in the constructor for the call.

Comment on lines +190 to +192
clip_length_in_frames=self.num_frames,
frames_between_clips=self.step,
frame_rate=self.frame_rate,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I found this pretty hard to read without these being keyword args.

@pmeier pmeier requested a review from NicolasHug August 24, 2023 13:59
Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

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

Thanks Philip, LGTM when green

@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 15:23 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 15:23 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 15:24 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 15:24 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 15:24 — with GitHub Actions Inactive
@pmeier pmeier merged commit f514ab6 into pytorch:main Aug 24, 2023
41 of 62 checks passed
@pmeier pmeier deleted the hmdb51-output-format branch August 24, 2023 15:24
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 15:24 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 15:24 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 15:24 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 15:24 — with GitHub Actions Inactive
@github-actions
Copy link

Hey @pmeier!

You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 15:25 — with GitHub Actions Inactive
@pmeier pmeier temporarily deployed to pytorchbot-env August 24, 2023 15:31 — with GitHub Actions Inactive
facebook-github-bot pushed a commit that referenced this pull request Sep 6, 2023
Summary: (Note: this ignores all push blocking failures!)

Reviewed By: matteobettini

Differential Revision: D48900404

fbshipit-source-id: 015ca49dd030e3734ad7a9d088ea454ffc2bf018
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