mega.pytorch icon indicating copy to clipboard operation
mega.pytorch copied to clipboard

Why is there `mega_core.trainer ERROR`?

Open Dawn-LX opened this issue 5 years ago • 5 comments
trafficstars

mega_core.trainer ERROR: Iteration=4 || Image names used for training ('train/ILSVRC2015_VID_train_0003/ILSVRC2015_train_00839000/000255',) || targets Length=[0] (I have modified the error log infor to print the image file name)

In self.filter_annotation(), class VIDMEGADataset, we already have filtered out the images with len(objs) == 0

So Why this mega_core.trainer ERROR occurs ? Has the target ( returned by VIDMEGADataset._get_train() ) been modified somewhere else ?

Looking forward to your answer

Dawn-LX avatar Aug 29 '20 10:08 Dawn-LX

I also have the problem, have you solved it ?

Jezzzzz avatar Oct 28 '20 03:10 Jezzzzz

I also have the problem, have you solved it ?

It’s been a long time, I probably forgot my previous operation.

in fact I have modified the dataloader and i made some mistakes. in my modified dataloader, I reversed the width and height of class BoxList, and as for the gt_target, after target = target.clip_to_image, it will cause many bboxed outside the image and be clipped, thus result in targets Length=[0]

Dawn-LX avatar Oct 28 '20 03:10 Dawn-LX

I also have the problem, have you solved it ?

again, It’s been a long time, I probably forgot my previous operation, perhaps, when I use the original dataloader of MEGA ,it also occurs targets Length=[0], but the amount is much less than that using the dataloader modified by my above mistaken operation.

Dawn-LX avatar Oct 28 '20 03:10 Dawn-LX

I also have the problem, have you solved it ?

and, if you use the original dataloader of MAGE and also has this ERROR, then I don't konw why and I haven't solved this.

Dawn-LX avatar Oct 28 '20 03:10 Dawn-LX

I also have the problem, have you solved it ?

and, if you use the original dataloader of MAGE and also has this ERROR, then I don't konw why and I haven't solved this.

Thank you for your answers!

Jezzzzz avatar Oct 28 '20 08:10 Jezzzzz