-
Notifications
You must be signed in to change notification settings - Fork 7k
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 MultiImageFolder dataset #1345
Conversation
If needed, I can add an example usage in the doc
|
class BundleDataset():
def __init__(self, *datasets):
self.datasets = datasets
# here go sanity checks like asserting that all datasets are equal length
def __getitem__(self, index):
return [dataset[index] for dataset in self.datasets]
def __len__(self):
return len(self.datasets[0])
|
Another big difference is that the folder structure is very different, there are no classes here.
Another way to go about this would be to put it in the training code:
And to answer @Noiredd, I don't plan to handle transform synchronization in the dataset as it is a transform problem and not a dataset problem. Sorry about linking your PR here. I read it too fast. |
I'm not saying you should close this because (1) I'm not a team member but just another user, and (2) you've obviously put some work into this :) While personally I don't think this is the right way to go, maybe some ideas could be salvaged and added to some other PR to make it better. Ultimately, I think we should wait to hear the opinion from someone of the PyTorch team. |
Codecov Report
@@ Coverage Diff @@
## master #1345 +/- ##
==========================================
- Coverage 65.59% 65.48% -0.11%
==========================================
Files 75 75
Lines 5819 5876 +57
Branches 892 913 +21
==========================================
+ Hits 3817 3848 +31
- Misses 1735 1755 +20
- Partials 267 273 +6
Continue to review full report at Codecov.
|
Ok, I fixed what I could fix but I don't understand why the windows build is failing. I found this thread gipit/gippy#123 (comment) |
Signed-off-by: Sebastien ESKENAZI <[email protected]>
Signed-off-by: Sebastien ESKENAZI <[email protected]>
Signed-off-by: Sebastien ESKENAZI <[email protected]>
Signed-off-by: Sebastien ESKENAZI <[email protected]>
Signed-off-by: Sebastien ESKENAZI <[email protected]>
Signed-off-by: Sebastien ESKENAZI <[email protected]>
Signed-off-by: Sebastien ESKENAZI <[email protected]>
Signed-off-by: Sebastien ESKENAZI <[email protected]>
Signed-off-by: Sebastien ESKENAZI <[email protected]>
Signed-off-by: Sebastien ESKENAZI <[email protected]>
19220c0
to
245b699
Compare
Thanks a lot for the PR! I agree with the points made by @Noiredd (thanks for the review btw!) though. I think in its current state, the functionality implemented here can be handled by a combination of
Right to the point. Semantic segmentation and object detection are very important areas and we need to have better support for them in torchvision. We will spend some more time thinking through the possible solutions and I'll open an issue to discuss of an approach Given the points just above, I believe we will not be going forward with this PR, but the discussions here have been very valuable! PS: the windows test failures have been fixed in master, if you rebase your PR on top of master it would fix it. |
This new kind of dataset enables the user to use neural networks that have an arbitrary number of input/output images such as for super resolution, image transformation, segmentation, depth computation, etc.
Signed-off-by: Sebastien ESKENAZI [email protected]