hustvl/CrossVIS

About the modification of your dataloader

HarryHsing opened this issue · 5 comments

Hi Vealocia. Could you tell me where can I modify the data loader, so that I can (1) load more than 2 images in a batch (2) load these images in a sequential order instead of randomly?

Thank you very much for your support in advance!

I found the solution to my (2)second question by changing cfg.MODEL.CROSSVIS.CROSSOVER.SAMPLE_REGION

Question 1 is more complicated. You can try to modifying the dataloader and dataset mapper firstly.

Dataset mapper can be found in here.
And you can sample more images by changing here

Dataset mapper can be found in here. And you can sample more images by changing here

Got it! Thank you for your prompt response, I will try modifying this.

I found the solution to my (2)second question by changing cfg.MODEL.CROSSVIS.CROSSOVER.SAMPLE_REGION

Hello, MODEL.CROSSVIS.CROSSOVER.SAMPLE_REGION = 20 how much should I change to will become sequentially sampled? I've tried 1 can do it sequentially, but 2 can also do it sequentially, why is that?