Skip to content

metrics/test.rmse is NAN for epoch performance evaluation. is that a problem? #2697

Closed as not planned

Description

@mikeumo

Is there an existing issue for this?

  • I have searched the existing issues

Bug description

As I train my network and get output of performance evaluation every 10 epochs, I get the following lines:

metrics/test.rmse: nan
metrics/test.rmse_pcutoff:nan

Operating System

macOS Sonoma 14.5

DeepLabCut version

dlc version 3.0.0rc3

DeepLabCut mode

single animal

Device type

gpu (builtin)

Steps To Reproduce

create a project, pick a training video, extract frames, label frames, create a training dataset, train network...

Relevant log output

Epoch 1/200 (lr=0.0001), train loss 0.00063
Epoch 2/200 (lr=0.0001), train loss 0.00011
Epoch 3/200 (lr=0.0001), train loss 0.00011
Epoch 4/200 (lr=0.0001), train loss 0.00005
Epoch 5/200 (lr=0.0001), train loss 0.00004
Epoch 6/200 (lr=0.0001), train loss 0.00003
Epoch 7/200 (lr=0.0001), train loss 0.00005
Epoch 8/200 (lr=0.0001), train loss 0.00006
Epoch 9/200 (lr=0.0001), train loss 0.00003
Training for epoch 10 done, starting evaluation
Epoch 10 performance:
metrics/test.rmse:  nan
metrics/test.rmse_pcutoff:nan
metrics/test.mAP:   0.000
metrics/test.mAR:   0.000
metrics/test.rmse_detections:3.738
metrics/test.rmse_detections_pcutoff:3.738
Epoch 10/200 (lr=0.0001), train loss 0.00002, valid loss 0.00002
Epoch 11/200 (lr=0.0001), train loss 0.00002
Epoch 12/200 (lr=0.0001), train loss 0.00002
Epoch 13/200 (lr=0.0001), train loss 0.00002
Epoch 14/200 (lr=0.0001), train loss 0.00002
Epoch 15/200 (lr=0.0001), train loss 0.00002
Epoch 16/200 (lr=0.0001), train loss 0.00002
Epoch 17/200 (lr=0.0001), train loss 0.00002
Epoch 18/200 (lr=0.0001), train loss 0.00002
Epoch 19/200 (lr=0.0001), train loss 0.00002
Training for epoch 20 done, starting evaluation
Epoch 20 performance:
metrics/test.rmse:  nan
metrics/test.rmse_pcutoff:nan
metrics/test.mAP:   0.000
metrics/test.mAR:   0.000
metrics/test.rmse_detections:3.528
metrics/test.rmse_detections_pcutoff:3.528
Epoch 20/200 (lr=0.0001), train loss 0.00002, valid loss 0.00002
Epoch 21/200 ... etc

Anything else?

No response

Code of Conduct

Activity

  1. MMathisLab commented on Jul 30, 2024

    @MMathisLab
    Member

    seems there is something off with your data; did you run check labels and verify they look correct?

  2. mikeumo commented on Jul 30, 2024

    @mikeumo
    Author

    Sure did. The labels look exactly where I placed them in the "Check Labels"

  3. MMathisLab commented on Jul 30, 2024

    @MMathisLab
    Member

    Is it possible the pycocotools is not installed? Otherwise I imagine the model looks trained (low rmse), so that's my best guess :)

  4. n-poulsen commented on Aug 5, 2024

    @n-poulsen
    Contributor

    @mikeumo If you run inference on your video, do you get any errors? Or does the model make predictions correctly?

  5. mikeumo commented on Sep 9, 2024

    @mikeumo
    Author
  6. ingridlreyes commented on Apr 16, 2025

    @ingridlreyes

    @mikeumo from how many vieos doesn´t you get the error? and how many frames? I have the same problem.😞

  7. MMathisLab commented on Apr 16, 2025

    @MMathisLab
    Member

    @ingridlreyes can you post an image of the training loss? it might be your learning rate is too high (and we would need more infor to help you, as the code changed a lot since August :D)

  8. mikeumo commented on Apr 16, 2025

    @mikeumo
    Author
  9. ingridlreyes commented on Apr 16, 2025

    @ingridlreyes

    @MMathisLab
    Hi! Thanks for responding <3
    Basically, I've had several issues throughout the training. I have a Mac m3, so I first created the environment in conda with the following file:
    name: DEEPLABCUT_M3
    channels:

    I only used this environment to generate the frames and labels, then use for video analysis, but now I have this error! 😣 examples/COLAB/COLAB_YOURDATA_TrainNetwork_VideoAnalysis.ipynb
    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions