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

Add tests for the PhotoTour dataset #3486

Merged
merged 8 commits into from
Mar 2, 2021
Merged

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Mar 2, 2021

No description provided.

test/datasets_utils.py Outdated Show resolved Hide resolved
@pmeier pmeier mentioned this pull request Mar 2, 2021
@pmeier pmeier requested a review from fmassa March 2, 2021 11:57
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.

Thanks!

if self.train:
return self.lens[self.name]
return len(self.matches)
return len(self.data if self.train else self.matches)
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the improvement!

@fmassa fmassa merged commit f637c63 into pytorch:master Mar 2, 2021
facebook-github-bot pushed a commit that referenced this pull request Mar 4, 2021
Summary:
* add tests for PhotoTour dataset

* fix grayscale image generation

* fix test_feature_types for a examples of a single feature

* make image size variable instead of hard coding it

* make dataset length variable instead of hard coding it

* replace numpy with torch

* fix typo

Reviewed By: fmassa

Differential Revision: D26756270

fbshipit-source-id: 62a8a7508be74580ca462089131f1aff4dd020cb
@pmeier pmeier deleted the test-phototour branch October 18, 2021 06:36
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.

None yet

5 participants