-
Notifications
You must be signed in to change notification settings - Fork 209
Loss is zero while training ViTPose Base with custom dataset #138
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
Comments
Hi MaxRondell, I noticed that you closed this issue, which makes me think you might have already resolved it. Could you share some insights or suggestions on how you tackled it? Regards, |
Hi @Logancreator, Actually I closed the issue after a long period of time since I found another solution without using ViTPose. I only closed it since I wasn't getting any feedback from the community. I could re-open it though, it might be helpful. Best, |
@MaxRondelli @Logancreator Hi, I've encountered this before when training, but when I looked back at the custom dataset format (coco format) I found the problem.
在改正area字段后,我的程序能正常计算AP和AR的值,所以你可能需要检查你的标注文件是否正确。 After correcting the AREA field, my program calculates the AP and AR values correctly, so you may need to check that your annotation file is correct. |
Uh oh!
There was an error while loading. Please reload this page.
I am trying to fine tuning with a custom dataset ViTPose Base trained on COCO 256x192. At the beginning of the training my losses are already zero.
2024-06-05 17:09:38,939 - mmpose - INFO - Epoch [1][1/18] lr: 2.376e-10, eta: 14 days, 5:07:40, time: 682.635, data_time: 2.816, heatmap_loss: 0.0000, acc_pose: 0.0000, loss: 0.0000, grad_norm: 0.0000
Debugging I've seen that the target tensor is composed of all zeros.
target. Any() = False
and the losses object is{'heatmap_loss': tensor(0., grad_fn=<MulBackward0>), 'acc_pose': 0.0}
.The images are all in
images
folder. Mytrain.json
andval.json
follow this format (as seen in the documentation):Does anyone know why is that? Does anyone can suggest me a documentation/tutorial to fine-tune a network with a custom dataset? Since I've seen some overlap and misunderstanding information between ViTPose and MMPose docs.
Thank you in advance.
The text was updated successfully, but these errors were encountered: