Skip to content
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

Bug Question about validation while training #119

Open
CyberPegasus opened this issue Oct 21, 2022 · 0 comments
Open

Bug Question about validation while training #119

CyberPegasus opened this issue Oct 21, 2022 · 0 comments

Comments

@CyberPegasus
Copy link

I try to run the training code for vid_R_50_C4_MEGA_1x.yaml. When i set SOLVER.TEST_PERIOD to a number > 0, then the error occurs :<, which said that the 'infos' dict has not attribute 'frame_category'. Then that comes the hard debugging time :<.

The 'infos' dict seems to be a copy of images, and the dataset for MEGA is 'VIDMEGADataset', which has '_get_train' and 'get_val' methods. These methods are called based on the param 'is_train' for function 'build_dataset' of 'make_data_loader'. Notice that build_dataset received 'is_train or is_for_period' for its param 'is_train', and the 'is_train or is_for_period' maintain 'True' for the training and validation mode, which may cause error.
To fix this bug, should change the 'is_train or is_for_period' for in the line 166 'datasets = build_dataset(dataset_list, transforms, DatasetCatalog, is_train or is_for_period, cfg.MODEL.VID.METHOD)' of the 'mega_core/data/build.py' ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant