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

Low accuracy when training withou background #113

Open
IgorMunizS opened this issue May 2, 2019 · 1 comment
Open

Low accuracy when training withou background #113

IgorMunizS opened this issue May 2, 2019 · 1 comment

Comments

@IgorMunizS
Copy link

Hi,
Could you please tell me why when I train without heatmap background, acc do not increase?
The loss decrease normally, but acc never increase. And predicted heatmaps are gray images.

and why do you subtract from 1.0 here?
heatmap[:, :, -1] = np.clip(1.0 - np.amax(heatmap, axis=2), 0.0, 1.0)

the background turns white...

Thanks!

@rosivagyok
Copy link

Hi @IgorMunizS .

Could you please tell me why when I train without heatmap background, acc do not increase?

In case of pose estimation accuracy is not a valid KPI, you should evaluate your model based on validation loss or measure mAP after some epochs. That should give feedback based on where your model's "accuracy" stands.

and why do you subtract from 1.0 here? heatmap[:, :, -1] = np.clip(1.0 - np.amax(heatmap, axis=2), 0.0, 1.0)

Think of the background channel as your true negative samples for the network, that allows the cpm to distinguish keypoints from everything else. Therefore, background becomes everything else than your generated ground truth keypoint gaussians, meaning the highest activations (1.0) will be background pixels in this case.

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