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 problem #3

Open
nebuladream opened this issue Jan 11, 2018 · 8 comments
Open

training problem #3

nebuladream opened this issue Jan 11, 2018 · 8 comments

Comments

@nebuladream
Copy link

I run your inference phrase success, but when I try to finetune your model by AIChallenger data, it seems not right, after some epoch the keypoints disappear…… in your main.py, train heads layers which may not include mask_class_loss_graph, is this cause the issue? can you provide how to train the net?

@RodrigoGantier
Copy link
Owner

@nebuladream Actually I train the neural network with the code that is published, using mini_mask, if you use utils.minimize_mask_2 to cut and resize the keypoints, these should not "disappear", when a point is not present (missing) because is not in the picture the code assign (0, 0) = 1
you can check, the code is in:

image, image_meta, gt_bbox, gt_mask = modellib.load_image_gt(dataset_val, config, image_id,
use_mini_mask=True, augment=False)
buffer_mask[i] = utils.minimize_mask_2(bbox[i, :5].reshape([1, 5]), mask[i], config.MINI_MASK_SHAPE)

if m.sum() == 0:
mini_mask[0, 0, i] = 1

actually I dont know way the performance is not as the paper

@nebuladream
Copy link
Author

I train the model from coco pretrained weights, finding mrcnn_mask_loss branch may not convergence……the loss like this , do you know why?

2018-01-16 12 19 15

@minizon
Copy link

minizon commented Mar 16, 2018

I've encountered the same problem. The kp mask branch gets really hard to converge. Did we miss something important in the config parameters?
image

@Superlee506
Copy link

@minizon @nebuladream Do you finally fix this issue? My loss can't converge too. It confused me a lot.

@Superlee506
Copy link

@minizon @minizon You can refer to my repository https://github.com/Superlee506/Mask_RCNN. I refereed to the original detectron project and modified the code with detailed comments. The loss converges quickly, but there is still much room for improvement.

@minizon
Copy link

minizon commented Mar 29, 2018

@Superlee506 Thank you for sharing your code. I've realized that I've made a mistake on the horizontal flip augmentation. I did not change the kp left/right labels when I mirrored the persons. Since I remove this augmentation, both the training and val losses converge, though there's still a larger margin to the theoretical value compared to other branches' losses. By the way, your space encoding is more efficient in GPU memory use.

@Superlee506
Copy link

@nebuladream Yes, I also notice this problem. Can your model distinguish the symmetrical lef/right keypoint? My model often predict these points together.

@filipetrocadoferreira
Copy link

@Superlee506 , @minizon this can be an interesting read for this problem: http://blog.dlib.net/2018/01/correctly-mirroring-datasets.html

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

5 participants