Skip to content

Extract frames failing on new and old previously successful projects #3448

Closed

Description

@calliecrawford

I encountered a sudden new issue today where all new and old projects are failing to extract frames.
The popup in the GUI reads "Frame extraction failed. Please check your terminal output for more information.
Terminal output:
(DEEPLABCUT) C:\Windows\System32>python -m deeplabcut
Starting GUI...
INFO:deeplabcut.gui:Use all bodyparts
INFO:deeplabcut.gui:Videos added to analyze:
{WindowsPath('C:/Users/tensor/Desktop/3label-RZ-2026-08-06/videos/4_flies.MP4')}
Current video files:
{WindowsPath('C:/Users/tensor/Desktop/3label-RZ-2026-08-06/videos/4_flies.MP4')}
WARNING: QThread::wait: Thread tried to wait on itself
WARNING:vispy:QThread::wait: Thread tried to wait on itself
INFO:deeplabcut.gui.console:Config file read successfully.
INFO:deeplabcut.gui.console:Frame extraction failed. Video files must be corrupted.

This project has worked previously with these videos so the video shouldn't be corrupted (it also is happening on all new and old projects).
Widows updated last night and this issue started today, unsure if it is related, but the timing is odd.

I have tried upgrading DLC but keep running into this issue. I am able to open the window to crop, but when I click crop I also get the same error.
I attempted troubleshooting but have gotten stuck due to my lack of background in python.

Thanks for your help!

One thing to update - I had DeepLabCut run the most recent update to 3.0.1 on the computer that is no longer allowing me to load projects, another lab computer has not run this update and is allowing the creation of new projects and opening old ones. Could this be a bug in the recent update?
Apologies if I am using imprecise or inaccurate terminology.

Activity

  1. self-assigned this
    on Aug 14, 2026
  2. added theissue type on Aug 14, 2026
  3. C-Achard commented on Aug 14, 2026

    @C-Achard
    Member

    Hello @calliecrawford,

    Thanks for the report! This is indeed a regression in frame extraction, the message about corruption of your videos is incorrect in this case.
    The code was comparing pathlib.Path values from the GUI with string paths from the project configuration, which is not a valid comparison, so it reported no videos and displayed the error you mentioned.

    The recent configuration refactor added stronger validation for configuration files, but indeed some call sites still need more consistent path handling after the update. This is exactly the kind of remaining issue we were looking out for, thanks for reporting this one.

    This is now fixed in #3449, let us know if this is blocking your work and you would like to try out the fix.

    Best,
    Cyril

  4. calliecrawford commented on Aug 14, 2026

    @calliecrawford
    Author

    Thank you for looking into this so quickly! I would like to try out the fix so I can get my student researcher back on track.

  5. C-Achard commented on Aug 17, 2026

    @C-Achard
    Member

    @calliecrawford Apologies for the late reply, please find below how to install from the fix dev branch!

    • Please backup your project data if not done already
    • This is a small code change but for maximum safety you may want to duplicate your env first:
    conda create --name DEEPLABCUT-copy --clone DEEPLABCUT
    conda activate DEEPLABCUT-copy
    • Then install from the branch, you should already have all dependencies so this only updates DLC code:
    python -m pip install --no-deps --force-reinstall "git+https://github.com/DeepLabCut/DeepLabCut.git@refs/pull/3449/head"

    That should be all, if you want to revert to the latest DLC use:

    python -m pip install --upgrade --force-reinstall "deeplabcut[gui]"
    

    (and whichever other optional deps you were using initially)

    Let me know if you have any questions or encounter problems with the fix!

    Best,
    Cyril

  6. calliecrawford commented on Aug 17, 2026

    @calliecrawford
    Author

    Hi Cyril,
    Thank you so much, I was able to run that code and all appears to be working.
    Do you have recommendations on when to update versus when to hold off for those of us without much knowhow when it comes to python and coding? Or, is the preference to update so any bugs like this one can be caught?

    Thanks again for such a fast response and fix, I was worried I had created a mess of my computer!

    Callie

  7. C-Achard commented on Aug 18, 2026

    @C-Achard
    Member

    Hello again,

    I think when to update mostly depends on the state of your project; from my experience the best for a full scientific pipeline is that once a software version is well in place and used to generate usable results, it should remain the same, at least when generating extra related results that need to be comparable.
    When first labeling data, trying out models, checking the outputs etc, it matters less, so updating may be worthwhile if there are any bugs hindering the initial exploration. This wouldn't be true if you already have several trained models and usable results end-to-end.

    We do try our best in DLC to make everything backwards compatible, however the processing/parsing of project data does change across versions, sometimes because we fix bugs, but also sometimes because we introduce new bugs by bringing in other improvements (in your case, typed configs).

    Overall I think it's a balance between how critical a given version is to your results, versus how usable it is.

    • If your current version works and has already produced results you need for e.g. a publication, there is usually no need to update during that phase of the project
    • If you are blocked by a bug (and report it so it is fixed), updating in a controlled way would be best

    I think the key takeaways when you need to update are:

    • Back up project data and record the DLC version at the time
    • Keep envs separate, ideally have one env per version and keep them until you are certain the update works as expected
    • If migrating, try out on smaller representative dataset chunks before redoing everything

    We do very much appreciate bug reports but your project and data should be first, no need to update just to help us find bugs :)

    One last thing is that it can be difficult for us to provide fixes and debug help for much older versions, so keeping up to date where possible is still good practice, but it should come after doing what's best for your project.

    Sorry for the long answer, but I feel this is not a trivial question; the best decision really does depend on your project and its current stage.

    Hope this helps,
    Cyril

  8. calliecrawford commented on Aug 18, 2026

    @calliecrawford
    Author

    I really appreciate the long and detailed answer. I often feel I jumped into the deep end and skipped a lot of steps just in background of how the programming side works.

    Your explanation makes complete sense and again, I really appreciate you taking the time to add all of that.

    Callie

  9. ShambreTaylor commented on Sep 16, 2026

    @ShambreTaylor

    Hello there,

    I have the same problem: all new and old projects are failing to extract frames. (The old project was created 2 weeks ago)

    Runtime

    • python: 3.12.14 (main, Sep 2 2026, 23:27:36) [GCC 15.3.0]
    • platform: Linux-5.15.0-139-generic-x86_64-with-glibc2.31
    • executable: bin/python

    DeepLabCut core libraries

    • deeplabcut: 3.0.1
    • torch: 2.14.0+cpu
    • torchvision: 0.29.0+cpu
    • numpy: 1.26.4
    • pandas: 3.0.5
    • scipy: 1.17.1
    • h5py: not-installed
    • tables: 3.11.1
    • opencv-python: 4.11.0

    GUI libraries

    • PySide6: 6.9.3
    • shiboken6: 6.9.3
    • qtpy: 2.4.3
    • qdarkstyle: 3.1
    • napari: 0.9.1
    • napari-deeplabcut: 0.3.1.3

    External tools

    • ffmpeg: ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
    • ffmpeg_path: bin/ffmpeg

    Recent logs

    10:58:23.710 | INFO     | deeplabcut.gui | Use all bodyparts
    10:58:32.688 | INFO     | deeplabcut.gui | Videos added to analyze:
    {PosixPath('/data/Deeplabcut/test-02-2026-09-16/videos/05-55.mp4')}
    Current video files:
    {PosixPath('/data/Deeplabcut/test-02-2026-09-16/videos/05-55.mp4')}
    10:58:33.873 | INFO     | deeplabcut.gui.console | Config file read successfully.
    10:58:33.874 | INFO     | deeplabcut.gui.console | Frame extraction failed. Video files must be corrupted.
    10:58:41.909 | INFO     | deeplabcut.gui.console | failed to extract frames: worker is None
    
  10. C-Achard commented on Sep 16, 2026

    @C-Achard
    Member

    Hello @ShambreTaylor,

    Thanks for the additional report, this is now fixed in #3449 and will be released soon as part of 3.0.2.

    In the meantime, please use either the API directly if possible:

    import deeplabcut
    deeplabcut.extract_frames(config_path, mode="automatic", algo="kmeans", userfeedback=False)

    If you prefer you could also install from the 3.0.2 dev branch, let me know if you'd like instructions on how to do so, but ideally I would recommend using the API and waiting until 3.0.2 is released.

    Please let us know if you have any 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