anipose icon indicating copy to clipboard operation
anipose copied to clipboard

anipose analyze -- rename_dlc_files: FileExistsError

Open fmarbach opened this issue 2 years ago • 1 comments

Problem: at the end of anipose analyze, FileExistsError occurs (see image, highlighted); it seems like for a given camera/video file, it generates multiple .pickle output files (see screenshot, at time of error) that are sequentially renamed to '...camera_name.pickle'. This is not the case in the tutorial, where there is only one .pickle file generated and the renaming does not throw this error (and one .h5 file) Details:

  • recently installed anipose with tutorial working
  • the deeplabcut network was trained in the separate dlc environment (dlc version 2.2.0.6). i used the GUI and checked "is this a multi-animal project?" based on instructions from "how to use maDLC with a single animal"

image PastedGraphic-1

fmarbach avatar Apr 04 '22 15:04 fmarbach

solution:

  • do not use the (multi animal) deeplabcut gui (the option for beginners, 'python -m deeplabcut') as it forces you to tick the box for multi animal project (otherwise the GUI doesn't create the project/config file, looks like a bug).
  • instead run everything in a script / on command line (choosing 'multianimal=False'), the extra .pickle files are not created

fmarbach avatar Apr 05 '22 08:04 fmarbach