Troubleshooting#
Useful tips#
When the Keypoint or Tracking controls have been opened at least once, you may use
Help -> Generate napari-dlc logs
to collect diagnostic information for troubleshooting.
Use Copy to clipboard to copy the generated logs for issues reporting on GitHub.
This is one of the most helpful ways to provide detailed information when reporting issues on GitHub. We may also ask that you share some configuration files or additional context to help us diagnose the issue.
Messages when opening a folder#
Please find several of the common messages you may encounter when opening a folder below.
“does not match the frames now in …”#
Your annotations are unchanged and still save to their own folder. The layer is locked for editing.
A keypoints layer from another dataset folder is still open, or the frames were renamed or re-extracted. Labelling the layer and saving would store them against the frames that were loaded with it rather than the ones in the folder you just opened. The layer is locked until it matches the opened folder.
To label the folder you opened:
Save the locked layer if it has unsaved changes
Clear all layers, including the images
Open the folder again
If it has no annotations yet, drag in the project’s
config.yamlto get a keypoints layer carrying the project’s bodyparts
To go back to the previous folder instead, clear all layers and reopen it. The lock lifts on its own once the layer’s frames match the Image layer in the viewer.
Note
Saving a locked layer still works, and writes to its own folder. Only editing is blocked.
“Annotated frames lost their path”#
Your annotation file is not modified. The layer is locked for editing.
A labeled frame was renamed or deleted. Keypoints are tied to a position in the frame order, not to a filename, and said position now belongs to a different image. Keypoints after the missing frame may display one frame off.
Unlike the message above, reopening the folder does not lift this lock: the frame is still missing, so the plugin refuses again. The annotation file and the folder have to agree first.
Restore the frame in the folder, or remove its row:
Delete the row for the missing frame in
CollectedData_<ScorerName>.csvRun
deeplabcut.convertcsv2h5("/path/to/config.yaml")Reopen the folder
Note
convertcsv2h5 prompts per folder, and only visits folders listed in video_sets.
“These annotations are already open as …”#
Keep working in the layer you already had.
The folder was opened twice. Both layers would save to the same file, so the second copy is closed automatically.
Annotations written into the wrong folder#
This affects files written before v0.4.0 of the plugin. Current versions refuse the write that causes it.
A keypoints layer left open while a different extracted frames folder was opened could follow that folder and, on the next save, write annotations to the wrong folder. The result is a CollectedData_<ScorerName> file holding rows for frames belonging to another folder.
No message is shown for this, since it happened in an earlier session. To check a file, open the .csv next to it: the first column lists one frame per row, and every row should name the folder the file sits in.
To repair it:
Copy any row naming another folder into that folder’s
CollectedData_<ScorerName>.csv, if the annotations are not already thereDelete those rows from the file you are repairing
Run
deeplabcut.convertcsv2h5("/path/to/config.yaml")Reopen the folder
Warning
Deleting the rows discards those annotations unless they exist in the folder they belong to. Check before deleting.