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

subsample()->prepare_targets() : for proposals_per_image, targets_per_image in zip(proposals, targets): TypeError: 'NoneType' #369

Open
ZhuangTingT opened this issue Dec 8, 2021 · 1 comment

Comments

@ZhuangTingT
Copy link

ZhuangTingT commented Dec 8, 2021

hello,
error:
subsample()->prepare_targets() : for proposals_per_image, targets_per_image in zip(proposals, targets): TypeError: 'NoneType'

I met the error in fcos_core/modeling/roi_heads/box_head/loss.py line 55,
it seems the targets were not input, i find the dataloader only load sigle dataset**(in
fcos_core/data/build.py def build_dataset())** during training. Is it the reason?
How can i fix it?

ps:
In fcos_core/modeling/roi_heads/box_head/roi_box_feature_extractors.py around line 28, I changed head = resnet.ResNetHead to head = resnet.ResNet(config), is it right? Does the change caused the error above?

thanks, waiting for your reply!

@SXYSUOSUO
Copy link

Hello! Have you solved it yet? I also encountered the same problem, the "proposals" is None

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

2 participants