mmpose icon indicating copy to clipboard operation
mmpose copied to clipboard

When I use my own dataset,the loss is 0

Open zhzh1234 opened this issue 3 years ago • 10 comments
trafficstars

Reimplement a custom model but all the components are implemented in MMPose. My picture‘s information like this:

image Used the config like this:

image but the loss is 0 image When i use the dataset like this, it is successful. ** image ** i want to know how to change the config or change something else. Thank you.

zhzh1234 avatar Oct 23 '22 08:10 zhzh1234

@zhzh1234 Hi, according to your screenshots, I think you want to change the size of input images, which is not likely to result in 0 loss. Could you please check if your annotations align with 1024x576 shaped images?

Tau-J avatar Oct 23 '22 08:10 Tau-J

Thanks for your reply,my annotations like this: image I used “labelme” to label my images, image

zhzh1234 avatar Oct 23 '22 09:10 zhzh1234

What is the 211x135 shaped image?

Tau-J avatar Oct 23 '22 09:10 Tau-J

like this image

zhzh1234 avatar Oct 23 '22 09:10 zhzh1234

I can't locate the error baesd on information you share. I suggest printing out your model predictions and targets when calculating loss to check why loss become 0

Tau-J avatar Oct 23 '22 10:10 Tau-J

Thank you,And I want to know how to printing out my model predictions and targets when calculating loss.

zhzh1234 avatar Oct 23 '22 10:10 zhzh1234

It depends on what kind of algorithm and loss you are using. For example, if you're using JointMSELoss, you can just print output and target here: https://github.com/open-mmlab/mmpose/blob/efd9674e2a7ecc8f6b94047468709d681cc85479/mmpose/models/losses/mse_loss.py#L25 to check the prediction and training target.

If you're using some IDE like Pycharm, it's more convenient to use debugger to check the values of output and target

Tau-J avatar Oct 23 '22 10:10 Tau-J

Thanks for your help, I will try it

zhzh1234 avatar Oct 23 '22 10:10 zhzh1234

Hello, did you find the cause of the problem?

chaiwc321 avatar Nov 08 '22 14:11 chaiwc321

I'm having the same problem

chaiwc321 avatar Nov 08 '22 14:11 chaiwc321

(这是自动回复)已确认收到您的电子邮件.我将尽快回复,谢谢!

chaiwc321 avatar Apr 20 '23 15:04 chaiwc321