-
Notifications
You must be signed in to change notification settings - Fork 7.1k
TripletDataset #1061
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
TripletDataset #1061
Conversation
Also, the travis-ci build is failing because it cannot import |
Turns out that my testcases won't pass even after removing |
This reverts commit d440290. Add IterableDataset back to triplet.py
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.
Thanks for the PR, I have a few comments.
Also, you can test your changes in CI with latest torchvision by changing the .travis.yaml
file.
I don't think you should inherit from FolderDataset
, because it's a Dataset
, and not an IterableDataset
and I'm unsure about the interactions it might have there.
Let me know what you think
@fmassa @ssnl I have made the requested changes. In |
@dakshjotwani I'd need to check wrt the cc @ShahriarSS if we update the PyTorch version to use the nightly, |
@fmassa please provide a link where it's failing and I'll look into it. |
@ShahriarSS https://travis-ci.org/pytorch/vision/builds/551800130 is this the link you're looking for? |
@dakshjotwani Yes. Thanks |
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.
After some more thoughts, and after seeing @rwightman comment in #1042 (comment), I think we should make this class future-proof for when we want to add hard-negative mining to it.
Let's iterate on the API for it.
Thoughts?
Merge parent repo
From the discussion in #1042 (comment), let's hold on merging this until you get some results of performing the online within-batch triplet loss. |
@ShahriarSS this is then something that should disappear once PyTorch gets fixed, is that right? |
Closing this for now, since we don't plan on adding a TripletDataset anytime soon. |
This pull request implements the TripletDataset discussed in #1042. @fmassa @ssnl I look forward to both of you reviewing my work. Please let me know if any additional changes need to be made.