Detectron2 test loader, error

I have made some progress, thanks to your clues. It turned out that if I copy-pasted default_collate into my notebook, I got a useful traceback about missing torch.stack dimension match. This seemed to caused by only the short edge of the images being resized.

After calling a custom DataLoader, resizing all edges of the images, the procedure runs longer, but produces another error. Puzzling…