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

Training on custom dataset #24

Open
jgrzeszczyk opened this issue Jan 19, 2022 · 1 comment
Open

Training on custom dataset #24

jgrzeszczyk opened this issue Jan 19, 2022 · 1 comment

Comments

@jgrzeszczyk
Copy link

Hi, I would like to ask what do i need to change in network files in order to train on custom coco format dataset. I've changed every instance of num_classses, num_thing_classes, num_stuff_classes and modified the config accordingly. Training epoch runs correctly, but I am facing the following during validation

File "/K-Net/knet/det/kernel_update_head.py", line 372, in _get_target_single
    mask_targets[pos_inds, ...] = pos_mask_targets
RuntimeError: shape mismatch: value tensor of shape [54, 168, 216] cannot be broadcast to indexing result of shape [54, 84, 108]
@ZwwWayne
Copy link
Owner

ZwwWayne commented Feb 8, 2022

It seems that the sizes of pos_mask_targets and mask_targets are different for some reason. However, during validation, the code should not run into _get_target_single.

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