Skip to content

Evaluate _netwrok feature not wroking when the Plotting = True, and Works when plotting= False #3446

Closed

Description

@Arjunmn57

Is there an existing issue for this?

  • I have searched the existing issues

Operating System

linux(EMBL BAND)

DeepLabCut version

3.0.1

What engine are you using?

pytorch

DeepLabCut mode

single animal

Device type

Nvidia Tesla V100

Bug description 🐛

during evalation process ,plotting cant be done when kept true, but working fine when its kept False, when the multianimal feature is kept at False, and im using RESnet -50, not DLCRNET

Steps To Reproduce

(DEEPLABCUT) bash-4.2$ python -c "
import deeplabcut
deeplabcut.evaluate_network(
'config.yaml',
Shuffles=[3],
plotting= True
)
"

Relevant log output

(DEEPLABCUT) bash-4.2$ python -c "import deeplabcut; print(deeplabcut.__version__)"
3.0.1
(DEEPLABCUT) bash-4.2$ python -c "                                                
import deeplabcut
deeplabcut.evaluate_network(
'config.yaml',
Shuffles=[3],
plotting= False
)              
"

Evaluation scorer: DLC_Resnet50_OFTAug3shuffle3_snapshot_best-20
100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 469/469 [00:15<00:00, 31.13it/s]
100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 53/53 [00:01<00:00, 34.13it/s]
Evaluation results file: DLC_Resnet50_OFTAug3shuffle3_snapshot_best-20-results.csv
Evaluation results for DLC_Resnet50_OFTAug3shuffle3_snapshot_best-20-results.csv (pcutoff: 0.6):
train rmse              6.15
train rmse_pcutoff      3.93
train mAP              98.46
train mAR              99.32
test rmse               3.97
test rmse_pcutoff       3.29
test mAP              100.00
test mAR              100.00
Name: (0.9, 3, 20, -1, 0.6), dtype: float64
(DEEPLABCUT) bash-4.2$
(DEEPLABCUT) bash-4.2$ python -c "
import deeplabcut
deeplabcut.evaluate_network(
'config.yaml',
Shuffles=[3],
plotting= True
)
"
Evaluation scorer: DLC_Resnet50_OFTAug3shuffle3_snapshot_best-20
100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 469/469 [00:15<00:00, 31.17it/s]
100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 53/53 [00:01<00:00, 35.11it/s]
Evaluation results file: DLC_Resnet50_OFTAug3shuffle3_snapshot_best-20-results.csv
Evaluation results for DLC_Resnet50_OFTAug3shuffle3_snapshot_best-20-results.csv (pcutoff: 0.6):
train rmse              6.15
train rmse_pcutoff      3.93
train mAP              98.46
train mAR              99.32
test rmse               3.97
test rmse_pcutoff       3.29
test mAP              100.00
test mAR              100.00
Name: (0.9, 3, 20, -1, 0.6), dtype: float64
Warning: DataFrame reshape failed for img10359.png
  Expected: 2 individuals, 13 bodyparts
  Ground truth: 26 elements (expected 52)
  Predictions: 39 elements (expected 78)
  Skipping visualization for this image
Warning: DataFrame reshape failed for img00264.png
  Expected: 2 individuals, 13 bodyparts
  Ground truth: 26 elements (expected 52)
  Predictions: 39 elements (expected 78)
  Skipping visualization for this image
Warning: DataFrame reshape failed for img03469.png
  Expected: 2 individuals, 13 bodyparts
  Ground truth: 26 elements (expected 52)
  Predictions: 39 elements (expected 78)
  Skipping visualization for this image
Warning: DataFrame reshape failed for img13766.png
  Expected: 2 individuals, 13 bodyparts
  Ground truth: 26 elements (expected 52)
  Predictions: 39 elements (expected 78)
  Skipping visualization for this image
Warning: DataFrame reshape failed for img05289.png
  Expected: 2 individuals, 13 bodyparts
  Ground truth: 26 elements (expected 52)
  Predictions: 39 elements (expected 78)
  Skipping visualization for this image
Warning: DataFrame reshape failed for img00543.png
  Expected: 2 individuals, 13 bodyparts
  Ground truth: 26 elements (expected 52)
  Predictions: 39 elements (expected 78)
  Skipping visualization for this image
Warning: DataFrame reshape failed for img05787.png
  Expected: 2 individuals, 13 bodyparts
  Ground truth: 26 elements (expected 52)
  Predictions: 39 elements (expected 78)
  Skipping visualization for this image

Anything else?

No response

Code of Conduct

Activity

  1. added theissue type on Aug 13, 2026
  2. C-Achard commented on Aug 13, 2026

    @C-Achard
    Member

    Hello @Arjunmn57,

    Thanks for the report, the issue was in the evaluation plotting code, due to incorrect checks single animal entries for different scorers were incorrectly counted as multiple individuals.

    A fix with regression tests is available in PR #3447. Until this is released, you may want to keep using plotting=False if possible.


    If this is blocking, you may also want to test the fix in a separate environment:

    pip install --upgrade \
      "deeplabcut @ git+https://github.com/DeepLabCut/DeepLabCut.git@refs/pull/3447/head"
    

    (Though you may prefer cloning and installing the branch locally instead)

    Let me know if you need any clarifications or have questions!

    Best,
    Cyril

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions