Skip to content

Analysis Buffering / Not Progressing #3352

Closed

Description

@pvarsharavi

Is there an existing issue for this?

  • I have searched the existing issues

Operating System

Windows 11 Pro

DeepLabCut version

2.2.3

What engine are you using?

tensorflow

DeepLabCut mode

multi animal

Device type

NVIDIA RTX 4500 Ada Generation

Bug description 🐛

I'm analyzing new videos using a project developed on DLC 2.3.5.

Though I believe the GPU / driver / cuda are all set up, I worry they're not being accessed during the analysis, or that there's another reason why it's going so slowly that there's no progress made after ~an hour. Are there other causes behind this, and/or is my GPU actually not working during the analysis?

Steps To Reproduce

  1. In DLC 2.2.3, open a project from DLC 2.3.5.
  2. Add new videos and extract frames.
  3. Analyze videos.
  4. See error.

Relevant log output

1. Log Output 1 
(deeplabcut) C:\Users\pravi>python -m deeplabcut
Loading DLC 2.2.3...
Starting GUI...
DLC network loading and video analysis starting ...
Using snapshot-100000 for model D:\ResidentIntruder0930\residentintruder3-SG-2025-10-01\dlc-models\iteration-0\residentintruder3Oct1-trainset95shuffle1
C:\Users\pravi\AppData\Local\anaconda3\envs\deeplabcut\lib\site-packages\tensorflow\python\keras\engine\base_layer_v1.py:1694: UserWarning: `layer.apply` is deprecated and will be removed in a future version. Please use `layer.__call__` method instead.
  warnings.warn('`layer.apply` is deprecated and '
Activating extracting of PAFs
2026-05-31 16:20:48.009697: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2026-05-31 16:20:48.033823: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:357] MLIR V1 optimization pass is not enabled
2026-05-31 16:21:12.321880: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at save_restore_v2_ops.cc:228 : OK: D:\ResidentIntruder0930\residentintruder3-SG-2025-10-01\dlc-models\iteration-0\residentintruder3Oct1-trainset95shuffle1\train\snapshot-100000.data-00000-of-00001; No error
Starting to analyze %  D:\R-I_2 -Videos\20260331_NR2A_cKO_363_D1.mp4
Loading  D:\R-I_2 -Videos\20260331_NR2A_cKO_363_D1.mp4
Duration of video [s]:  620.61 , recorded with  29.84 fps!
Overall # of frames:  18519  found with (before cropping) frame dimensions:  1920 1080
Starting to extract posture from the video(s) with batchsize: 8
  0%|                                                                                        | 0/18519 [00:00<?, ?it/s]

2. Log Output 2
PS C:\Users\pravi> nvidia-smi
Sun May 31 16:34:10 2026
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 573.44                 Driver Version: 573.44         CUDA Version: 12.8     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                  Driver-Model | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA RTX 4500 Ada Gene...  WDDM  |   00000000:01:00.0  On |                  Off |
| 30%   32C    P8              7W /  210W |     999MiB /  24570MiB |      3%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

Anything else?

No response

Code of Conduct

Activity

  1. added
    bug
    on Jun 1, 2026
  2. added theissue type on Jun 1, 2026
  3. deruyter92 commented on Jun 1, 2026

    @deruyter92
    Collaborator

    Hi @pvarsharavi,

    To find out whether your GPU is being used, you can try the following things:

    1. Monitor GPU activity. Instead of running nvidia-smi once, you can open a separate terminal and run watch nvidia-smi to monitor the use of your GPU in real time.
    2. In an interactive Python session, you can try the two following commands to check if tensorflow can detect your GPU
    import tensorflow as tf
    tf.config.list_physical_devices("GPU")
    

    Some additional questions:
    I am assuming you use a readily trained model from a different project (trained in DLC 2.3.5), is that correct? Which model did you train? Can you confirm the same issue happens when you train a new model instead of running the analysis with a trained model? Can you provide the exact settings you use for the analyze_videos step? Do you use the GUI or Python scripts to run your analysis? If you use Python, can you list the exact command? Are you bound to TensorFlow, or would you be happy to use our newest PyTorch models?

    DeepLabCut 3.0
    To profit from the latest developments, you could also install DeepLabCut version 3.0, and train a new model using PyTorch. This backend is a bit faster and contains a variety of new models. Your data can be used directly, in the same way that you are used to. To install:

    1. Create a clean environment:
    conda create -n dlc3 python==3.12
    conda activate dlc3
    
    1. Install PyTorch:
    pip install torch --index-url https://download.pytorch.org/whl/cu124  # Given that your GPU supports CUDA 12.4
    
    1. Install DeepLabCut with the GUI
    pip install deeplabcut[gui]
    
  4. added
    more-data-requested-by-us
    on Jun 3, 2026
  5. pvarsharavi commented on Jun 9, 2026

    @pvarsharavi
    Author

    Hi @deruyter92,

    I've attached a screenshot of the nvidia-smi command and DLC analysis concurrently with regards to the GPU issues, and below an attempt analyzing with the new project (a much smaller version). As far as the other questions.

    1. Yes, the model is trained in DLC 2.3.5.
    2. I trained a new model in DLC 2.2.3 and the analysis progressed without issue -- this issue seems limited to this project, whether it's opened on this program or on the original pc it was trained on.
    3. The settings we used for analyze_videos were as follows: shuffle: 1, videotype: mp4, 2 animals, use ffprobe: no, create video for checking detections: yes, calibrate animal assembly: no, assemble using animal identity: no, want to save results as csv: no, want to save results as nwb: no, want to filter the predictions: no, want plots to pop up: yes, want to plot the trajectories: yes.
    4. We use the GUI.
    5. We're bound to Tensorflow! If it's at all possible to analyze videos from this project on DLC 3.0, I'd be happy to do so, but we've faced training issues using the newest models in the past and are remaining on DLC 2.3.5 to train new projects for this reason.
    Image Image
  6. pvarsharavi commented on Jun 24, 2026

    @pvarsharavi
    Author

    Hi @deruyter92 @C-Achard ,

    Just following up on this!

  7. pvarsharavi commented on Jul 8, 2026

    @pvarsharavi
    Author

    Hi @deruyter92 @C-Achard ,

    Just following up on this again. This issue has been a roadblock in our continuing this project, and we'd love to get it resolved ASAP.

  8. self-assigned this
    on Jul 9, 2026
  9. deruyter92 commented on Jul 9, 2026

    @deruyter92
    Collaborator

    Apologies for the delay.

    Good to know that the problem seems specific to the ported model (as a freshly trained model works fine). Also, your GPU is likely not the problem. Still it is difficult to pinpoint the specific cause at this point. A few follow-up questions to help you fix the problem or find a workaround:

    1. Is there any reason you are bound to DLC 2.2.3 specifically? Have you tried analysis with the DLC 2.3.5 model in DLC 2.3.5? We normally assume that models can be ported between versions but it would be good to know if this is not the case.
    2. Could you share the contents of your dlc-models/iteration-0/.../test/pose_cfg.yaml? It would be good to verify the configuration. And as a reference, could you also share the configuration of the freshly trained model that works? It would be good to compare.
      3 Do you see any stale partial output files? e.g. *_full.pickle, *_assemblies.pickle or .h5 in the video folder?
    3. What can you tell me about the data and the models? Did the model work previously on different data? Is there anything specific about your data (e.g. many joints or many individuals)?
    4. Have you tried downscaling the videos before analysis?
    5. What are your issues you've faced with DLC 3.0? For us as a research group it is difficult to keep supporting each specific DeepLabCut version from the past. Reproducibility is very important to us, and version 3.0 is designed to be entirely backwards compatible with older projects. While we strongly encourage using PyTorch, version 3.0 still supports TensorFlow as well.
  10. pvarsharavi commented on Jul 9, 2026

    @pvarsharavi
    Author

    Hi @deruyter92, no worries!

    1. There were some installation issues when I attempted upgrading to 2.3.5 on the new computer. I've attached them below. I believe I ran into memory issues when I attempted the analysis on the original computer where 2.3.5 was installed and the model was trained. I've also reproduced those and added them below.

    a) (deeplabcut) C:\Users\pravi>python -m deeplabcut
    Loading DLC 2.3.5...
    DLC loaded in light mode; you cannot use any GUI (labeling, relabeling and standalone GUI)
    You installed DLC lite, thus GUI's cannot be used. If you need GUI support please: pip install 'deeplabcut[gui]''

    The GUI is most accessible to most members of the lab, so I opted for a slightly older version. However, this confused me even upon installation, because the version of DLC 2.3.5 we use on the other computer is through the GUI, so I wasn't sure why this wasn't an option here.

    b) I've attached a screenshot of the memory issue below! It doesn't seem to be fully obstructing the analysis, but I'd appreciate any advice on how to address it -- with that said, it would be ideal if we could run the analysis on the new computer, as the old computer is shared between collaborators.

    1. I've attached the pose_cfg.yaml from both the test and train subfolders. I didn't see any partial output files in the video folder.
    2. This model worked on the first cohort of data from an identical experiment, and has had issues with the second cohort acquired recently (albeit on a different version of DLC). It's multi-animal (resident-intruder), with an 8-body part configuration for each animal (nose, ears, sides, center, tail base, tail end)
    3. We have not attempted this yet. Is there a specific way to do this that's recommended to help with the issues we're facing?
    4. Last year, we attempted this project on DLC 3.0 and faced major training failures. Since setting up the same model (with the same data) on DLC 2.3.5 progressed without these same training failures, and other collaborators generally use DLC 2.3.5, we didn't see a pressing need to upgrade when 3.0 was at times unreliable, and our goal was to make this project accessible to all lab members, even ones with minimal Python experience.
    Image

    pose_cfg.yaml

    pose_cfg.yaml

  11. deruyter92 commented on Jul 10, 2026

    @deruyter92
    Collaborator

    @pvarsharavi thank you for sharing!

    Nothing odd in these configurations or your data description. Good to understand the context for your installation choices, thanks for clarifying. Here are the directions I would advice you to choose from:

    Option 1: Install DLC 2.3.5
    Based on this information, I would recommend as a first step that you try running the DLC 2.3.5 in 2.3.5. This would really confirm that it is a porting issue where you try to run a new model in an old version of DeepLabCut. Have you tried installing DLC 2.3.5 in a fresh conda environment with the gui? The proper way to do it is using the command pip install "deeplabcut[gui]==2.3.5". If you see the message that the GUI cannot be used, you've probably used a different command.

    Option 2: Diagnose the porting problem
    In principle, we don't support downgrading in the sense that we guarantee newer models to run in older versions of DeepLabCut. But if you are dedicated to this as your preferred path, you can continue diagnosing the issue. To me it still seems odd that you have zero issues when running the exact same model trained in your currently installed DeepLabCut version 2.2.3. Are you sure that you are comparing the same conda environments? If not, can you rule out that your CUDA installation is incorrect in the failing environment? See my previous suggestion:

    In an interactive Python session, you can try the two following commands to check if tensorflow can detect your GPU

    import tensorflow as tf
    tf.config.list_physical_devices("GPU")

    you could also try:

    import tensorflow as tf
    sess = tf.compat.v1.Session()
    saver = tf.compat.v1.train.import_meta_graph("path/to/snapshot-100000.meta")
    saver.restore(sess, "path/to/snapshot-100000")

    More things to try:

    • increasing the batch size and see if your GPU usage varies
    • downscale your video size (google for commands that can help you, e.g. ffmpeg -i "yourvideo.mp4" -vf scale=960:540 "youroutput.mp4")

    Option 3: Install DLC 3.0
    Since the last time you tried, there have been many improvements to the code, so it is worth to try. For inference, the previously trained TensorFlow model should normally work. If you are willing to use PyTorch that would even be better. The solution to the issue that you mentioned in #3089 (NaN values in your loss curves) is likely solved by tuning your training with a less aggressive learning rate. You can also try one of our different models. We try to deliver an out-of-the-box solution for everyone, but unfortunately in a few cases some trial-and-error is required.

    The best we can do is fix specific and reproducable issues so the code works better in future versions. I really hope that option 1 or option 3 work for you. Option 1 should be the lowest-effort.

    As you may have noticed it is difficult for us to help you with option 2 when we cannot reproduce the issue ourselves. Based on your model configuration and data description I cannot find anything odd, so it might be something specific to your TensorFlow / CUDA installations that prevents you from porting the model to an older version successfully, but this will require some proper diagnosis and possibly Python debugging (e.g. beginning with the commands I mentioned).

    Please keep me posted on the results. We'll do our best effort to help you find a workaround!

  12. pvarsharavi commented on Jul 10, 2026

    @pvarsharavi
    Author

    Hi @deruyter92,

    Thank you so much for the detailed response! Ideally we can integrate option 3 into our workflow going forward, so I'll start working on that.

    My initial attempt with option 1 did successfully install DLC 2.3.5 GUI (in a separate conda environment on the new computer), but upon using 'python -m deeplabcut' to open the GUI, I ran into this error. Just wanted to reach out and ask if there's a specific installation / version of tensorflow I should use to ensure everything continues running smoothly.

    (deeplabcut235) C:\Users\pravi>python -m deeplabcut
    Traceback (most recent call last):
    File "C:\Users\pravi\AppData\Local\anaconda3\envs\deeplabcut235\lib\runpy.py", line 185, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
    File "C:\Users\pravi\AppData\Local\anaconda3\envs\deeplabcut235\lib\runpy.py", line 144, in _get_module_details
    return _get_module_details(pkg_main_name, error)
    File "C:\Users\pravi\AppData\Local\anaconda3\envs\deeplabcut235\lib\runpy.py", line 111, in get_module_details
    import(pkg_name)
    File "C:\Users\pravi\AppData\Local\anaconda3\envs\deeplabcut235\lib\site-packages\deeplabcut_init
    .py", line 16, in
    import tensorflow as tf
    ModuleNotFoundError: No module named 'tensorflow'

  13. C-Achard commented on Jul 13, 2026

    @C-Achard
    Member

    @pvarsharavi Hello again, you're likely missing the tf extra, so the installation command should be:
    pip install "deeplabcut[gui,tf]==2.3.5"

    Please refer to the docs for the basics of installation, the 3.0 docs should be mostly valid for 2.3.5, aside from the fact that the only available TensorFlow extra is tf, other extras making installation easier for specific CUDA versions were added with 3.0.

  14. C-Achard commented on Jul 13, 2026

    @C-Achard
    Member

    (If you'd like to rebuild 2.3.5 docs locally so you can browse them directly, let me know! It's relatively easy to do so)

  15. pvarsharavi commented on Jul 16, 2026

    @pvarsharavi
    Author

    Hi @C-Achard ,

    Thank you so much! That cleared that up. I was able to open it successfully, but I just wanted to check in as to this warning message -- I assume this means it's not being accessed when starting DLC, is there any way to rectify this so it doesn't slow down the analysis later on?

    (deeplabcut235) C:\Users\pravi>python -m deeplabcut
    2026-07-16 14:55:19.842968: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
    2026-07-16 14:55:19.843175: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
    Loading DLC 2.3.5...

  16. C-Achard commented on Jul 17, 2026

    @C-Achard
    Member

    Hello again @pvarsharavi,

    It seems you may not have the CUDA version that the TF version requires/is built for, though it may be supported by your GPU.

    Can you run in your env:

    where python
    python --version
    python -m pip show deeplabcut tensorflow tensorflow-gpu
    
    python -c "import tensorflow as tf; print('TF:', tf.__version__); print('Built with CUDA:', tf.test.is_built_with_cuda()); print('GPUs:', tf.config.list_physical_devices('GPU'))"
    
    nvidia-smi
    

    The GPU list will likely be empty. It might be best for us to see the output before we suggest how to (re)install TensorFlow though, so as to know where the problem lies exactly and avoid breaking the env.

    Best,
    Cyril

  17. pvarsharavi commented on Jul 17, 2026

    @pvarsharavi
    Author

    Hi @C-Achard ,

    Just ran it -- and like you said, the GPU list was empty. Thank you for all your help with this so far!

    Best,
    Varsha Ravi

    Full output:

    (deeplabcut235) C:\Users\pravi>where python
    C:\Users\pravi\AppData\Local\anaconda3\envs\deeplabcut235\python.exe
    C:\Users\pravi\AppData\Local\anaconda3\python.exe
    C:\Users\pravi\AppData\Local\Microsoft\WindowsApps\python.exe
    
    (deeplabcut235) C:\Users\pravi>python --version
    Python 3.8.20
    
    (deeplabcut235) C:\Users\pravi>python -m pip show deeplabcut tensorflow tensorflow-gpu
    WARNING: Package(s) not found: tensorflow-gpu
    Name: deeplabcut
    Version: 2.3.5
    Summary: Markerless pose-estimation of user-defined features with deep learning
    Home-page: https://github.com/DeepLabCut/DeepLabCut
    Author: A. & M. Mathis Labs
    Author-email: [email protected]
    License:
    Location: c:\users\pravi\appdata\local\anaconda3\envs\deeplabcut235\lib\site-packages
    Requires: dlclibrary, filterpy, imageio-ffmpeg, imgaug, matplotlib, networkx, numba, numpy, pandas, Pillow, pyyaml, ruamel.yaml, scikit-image, scikit-learn, scipy, statsmodels, tables, tensorpack, tf-slim, torch, tqdm
    Required-by:
    ---
    Name: tensorflow
    Version: 2.10.0
    Summary: TensorFlow is an open source machine learning framework for everyone.
    Home-page: https://www.tensorflow.org/
    Author: Google Inc.
    Author-email: [email protected]
    License: Apache 2.0
    Location: c:\users\pravi\appdata\local\anaconda3\envs\deeplabcut235\lib\site-packages
    Requires: absl-py, astunparse, flatbuffers, gast, google-pasta, grpcio, h5py, keras, keras-preprocessing, libclang, numpy, opt-einsum, packaging, protobuf, setuptools, six, tensorboard, tensorflow-estimator, tensorflow-io-gcs-filesystem, termcolor, typing-extensions, wrapt
    Required-by:
    
    (deeplabcut235) C:\Users\pravi>
    (deeplabcut235) C:\Users\pravi>python -c "import tensorflow as tf; print('TF:', tf.__version__); print('Built with CUDA:', tf.test.is_built_with_cuda()); print('GPUs:', tf.config.list_physical_devices('GPU'))"
    2026-07-17 16:31:04.430234: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
    2026-07-17 16:31:04.430449: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
    TF: 2.10.0
    Built with CUDA: True
    2026-07-17 16:31:17.852883: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
    2026-07-17 16:31:17.853371: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublas64_11.dll'; dlerror: cublas64_11.dll not found
    2026-07-17 16:31:17.853831: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublasLt64_11.dll'; dlerror: cublasLt64_11.dll not found
    2026-07-17 16:31:17.854535: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found
    2026-07-17 16:31:17.854980: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found
    2026-07-17 16:31:17.855416: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusolver64_11.dll'; dlerror: cusolver64_11.dll not found
    2026-07-17 16:31:17.855874: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusparse64_11.dll'; dlerror: cusparse64_11.dll not found
    2026-07-17 16:31:17.856294: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found
    2026-07-17 16:31:17.856470: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1934] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
    Skipping registering GPU devices...
    GPUs: []
    
    (deeplabcut235) C:\Users\pravi>
    (deeplabcut235) C:\Users\pravi>nvidia-smi
    Fri Jul 17 16:31:50 2026
    +-----------------------------------------------------------------------------------------+
    | NVIDIA-SMI 573.44                 Driver Version: 573.44         CUDA Version: 12.8     |
    |-----------------------------------------+------------------------+----------------------+
    | GPU  Name                  Driver-Model | Bus-Id          Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
    |                                         |                        |               MIG M. |
    |=========================================+========================+======================|
    |   0  NVIDIA RTX 4500 Ada Gene...  WDDM  |   00000000:01:00.0  On |                  Off |
    | 30%   31C    P8              6W /  210W |    1347MiB /  24570MiB |      0%      Default |
    |                                         |                        |                  N/A |
    +-----------------------------------------+------------------------+----------------------+
    
    +-----------------------------------------------------------------------------------------+
    | Processes:                                                                              |
    |  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
    |        ID   ID                                                               Usage      |
    |=========================================================================================|
    |    0   N/A  N/A            3352    C+G   ...indows\System32\ShellHost.exe      N/A      |
    |    0   N/A  N/A            3584    C+G   C:\Windows\explorer.exe               N/A      |
    |    0   N/A  N/A            4340    C+G   ...2txyewy\CrossDeviceResume.exe      N/A      |
    |    0   N/A  N/A            5320    C+G   ...ole\DellOptimizer.Systray.exe      N/A      |
    |    0   N/A  N/A           11296    C+G   ...App_cw5n1h2txyewy\LockApp.exe      N/A      |
    |    0   N/A  N/A           20028    C+G   ...__8yrtsj140pw4g\app\Slack.exe      N/A      |
    |    0   N/A  N/A           22656    C+G   ..._cw5n1h2txyewy\SearchHost.exe      N/A      |
    |    0   N/A  N/A           22672    C+G   ...y\StartMenuExperienceHost.exe      N/A      |
    |    0   N/A  N/A           24300    C+G   ....0.4078.48\msedgewebview2.exe      N/A      |
    |    0   N/A  N/A           24528    C+G   ...yb3d8bbwe\WindowsTerminal.exe      N/A      |
    |    0   N/A  N/A           28320    C+G   ...__8yrtsj140pw4g\app\Slack.exe      N/A      |
    |    0   N/A  N/A           28444    C+G   ...s\Mozilla Firefox\firefox.exe      N/A      |
    |    0   N/A  N/A           28620    C+G   ...icrosoft.AAD.BrokerPlugin.exe      N/A      |
    |    0   N/A  N/A           30508    C+G   ...s\Mozilla Firefox\firefox.exe      N/A      |
    |    0   N/A  N/A           31552    C+G   ...xyewy\ShellExperienceHost.exe      N/A      |
    +-----------------------------------------------------------------------------------------+
    
  18. deruyter92 commented on Jul 20, 2026

    @deruyter92
    Collaborator

    Thanks @pvarsharavi,

    TensorFlow support for Windows has stopped after version 2.10. As a best-effort, we try to support TensorFlow installations still, but this is becoming harder with newer hardware that relies on modern drivers. You have relatively new hardware (RTX 4500 Ada), which can be badly compatible with older CUDA drivers. The symptoms that you are seeing are the result of trying to install an old DeepLabCut version with an old TensorFlow version that relies on old CUDA drivers, on a Windows with a relatively modern GPU. This is an unlucky combination that is not guaranteed to work unfortunately..

    You can still try, by installing TensorFlow before installing DeepLabCut in a fresh conda environment, together with cudatoolkit and cudnn. Maybe you can search online for more help on this regard. An alternative is installing Linux on your machine using WSL (Windows Subsystem for Linux). Which would allow you to install a newer TensorFlow version. Anyway, some trial-and-error may still be required. Unfortunately we will not be able to help you with this.

    What we would recommend for the longer term is to use our PyTorch pipeline, included in the newest DeepLabCut installation. Which is relatively straightforward to install, works with modern hardware, and has long-term support.

    I am sorry that we could not help you further with your TensorFlow installation. I hope these tips help.

  19. pvarsharavi commented on Jul 20, 2026

    @pvarsharavi
    Author

    Hi @deruyter92 ,

    That makes sense -- thank you so much for all your help so far in elucidating the core issue here.

    I had a quick follow-up question. By switching to the Pytorch pipeline, would we have to create and train a new project in order to achieve successful analysis, or would it be possible to run the preexisting project on the newest DLC going forward? We invested a lot of time and effort into labelling frames for the original project, so I just want to check if it's possible to preserve that at all.

    If not, I'll play around with the other fix and begin the process of a new project. Once again, thank you so much for everything!

  20. deruyter92 commented on Jul 21, 2026

    @deruyter92
    Collaborator

    @pvarsharavi,
    The most clean start would be to create a new project, but the existing project can also be opened with DeepLabCut 3.0 if that is easier for you. In both cases you can use your prior labeled data directly - no need for relabeling! Just your prior TF shuffles cannot be used without a working TensorFlow installation, but creating new shuffles to train a PyTorch model should work without a problem.

    Closing the current issue for now. Good luck with your project and please feel free to (re-)open any issue if you are still encountering issues with DLC 3.0. We are actively maintaining it and are very happy with feedback!

  21. pvarsharavi commented on Jul 21, 2026

    @pvarsharavi
    Author

    Hi @deruyter92 ,

    Thank you for the help! Ran into these issues trying to install the DLC 3.0 GUI. I followed the instructions for NVIDIA GPU PyTorch installation (the first output), which I believe was successful, before running into an issue with "pip install deeplabcut[gui]"

    (deeplabcut3) C:\Users\pravi>pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu132
    Looking in indexes: https://download.pytorch.org/whl/cu132
    Collecting torch
      Using cached torch-2.13.0%2Bcu132-cp313-cp313-win_amd64.whl.metadata (39 kB)
    Collecting torchvision
      Using cached torchvision-0.28.0%2Bcu132-cp313-cp313-win_amd64.whl.metadata (5.7 kB)
    Collecting filelock (from torch)
      Using cached filelock-3.29.0-py3-none-any.whl.metadata (2.0 kB)
    Collecting typing-extensions>=4.10.0 (from torch)
      Using cached typing_extensions-4.15.0-py3-none-any.whl.metadata (3.3 kB)
    Requirement already satisfied: setuptools>=77.0.3 in .\AppData\Local\anaconda3\envs\deeplabcut3\Lib\site-packages (from torch) (82.0.1)
    Collecting sympy>=1.13.3 (from torch)
      Using cached sympy-1.14.0-py3-none-any.whl.metadata (12 kB)
    Collecting networkx>=2.5.1 (from torch)
      Using cached networkx-3.6.1-py3-none-any.whl.metadata (6.8 kB)
    Collecting jinja2 (from torch)
      Using cached jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB)
    Collecting fsspec>=0.8.5 (from torch)
      Using cached fsspec-2026.4.0-py3-none-any.whl.metadata (10 kB)
    Requirement already satisfied: numpy in .\AppData\Local\anaconda3\envs\deeplabcut3\Lib\site-packages (from torchvision) (2.4.6)
    Collecting pillow!=8.3.*,>=5.3.0 (from torchvision)
      Using cached pillow-12.2.0-cp313-cp313-win_amd64.whl.metadata (9.0 kB)
    Collecting mpmath<1.4,>=1.1.0 (from sympy>=1.13.3->torch)
      Using cached mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
    Collecting MarkupSafe>=2.0 (from jinja2->torch)
      Using cached markupsafe-3.0.3-cp313-cp313-win_amd64.whl.metadata (2.8 kB)
    Downloading torch-2.13.0%2Bcu132-cp313-cp313-win_amd64.whl (1918.0 MB)
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 GB 49.3 MB/s  0:00:19
    Downloading torchvision-0.28.0%2Bcu132-cp313-cp313-win_amd64.whl (9.2 MB)
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB 29.6 MB/s  0:00:00
    Downloading fsspec-2026.4.0-py3-none-any.whl (203 kB)
    Using cached networkx-3.6.1-py3-none-any.whl (2.1 MB)
    Downloading pillow-12.2.0-cp313-cp313-win_amd64.whl (7.1 MB)
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.1/7.1 MB 22.9 MB/s  0:00:00
    Using cached sympy-1.14.0-py3-none-any.whl (6.3 MB)
    Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
    Downloading typing_extensions-4.15.0-py3-none-any.whl (44 kB)
    Downloading filelock-3.29.0-py3-none-any.whl (39 kB)
    Downloading jinja2-3.1.6-py3-none-any.whl (134 kB)
    Downloading markupsafe-3.0.3-cp313-cp313-win_amd64.whl (15 kB)
    Installing collected packages: mpmath, typing-extensions, sympy, pillow, networkx, MarkupSafe, fsspec, filelock, jinja2, torch, torchvision
    Successfully installed MarkupSafe-3.0.3 filelock-3.29.0 fsspec-2026.4.0 jinja2-3.1.6 mpmath-1.3.0 networkx-3.6.1 pillow-12.2.0 sympy-1.14.0 torch-2.13.0+cu132 torchvision-0.28.0+cu132 typing-extensions-4.15.0
    
    (deeplabcut3) C:\Users\pravi>pip install deeplabcut[gui]
    Collecting deeplabcut[gui]
      Using cached deeplabcut-3.0.0-py3-none-any.whl.metadata (36 kB)
    Collecting albumentations<=1.4.3 (from deeplabcut[gui])
      Using cached albumentations-1.4.3-py3-none-any.whl.metadata (37 kB)
    Collecting dlclibrary>=0.0.12 (from deeplabcut[gui])
      Using cached dlclibrary-0.0.12-py3-none-any.whl.metadata (4.2 kB)
    Collecting einops (from deeplabcut[gui])
      Using cached einops-0.8.2-py3-none-any.whl.metadata (13 kB)
    Collecting filelock<3.16,>=3.12 (from deeplabcut[gui])
      Using cached filelock-3.15.4-py3-none-any.whl.metadata (2.9 kB)
    Collecting filterpy>=1.4.4 (from deeplabcut[gui])
      Using cached filterpy-1.4.5.zip (177 kB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Preparing metadata (pyproject.toml) ... done
    Collecting huggingface-hub>=0.23 (from deeplabcut[gui])
      Using cached huggingface_hub-1.24.0-py3-none-any.whl.metadata (16 kB)
    Collecting imageio-ffmpeg (from deeplabcut[gui])
      Using cached imageio_ffmpeg-0.6.0-py3-none-win_amd64.whl.metadata (1.5 kB)
    Collecting imgaug>=0.4 (from deeplabcut[gui])
      Using cached imgaug-0.4.0-py2.py3-none-any.whl.metadata (1.8 kB)
    Collecting matplotlib!=3.7,!=3.7.1,<3.9,>=3.3 (from deeplabcut[gui])
      Using cached matplotlib-3.8.4.tar.gz (35.9 MB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Preparing metadata (pyproject.toml) ... done
    Requirement already satisfied: networkx>=2.6 in .\AppData\Local\anaconda3\envs\deeplabcut3\Lib\site-packages (from deeplabcut[gui]) (3.6.1)
    Collecting numba>=0.54 (from deeplabcut[gui])
      Using cached numba-0.66.0-cp313-cp313-win_amd64.whl.metadata (2.8 kB)
    Collecting numpy<2,>=1.18.5 (from deeplabcut[gui])
      Using cached numpy-1.26.4.tar.gz (15.8 MB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Installing backend dependencies ... done
      Preparing metadata (pyproject.toml) ... error
      error: subprocess-exited-with-error
    
      × Preparing metadata (pyproject.toml) did not run successfully.
      │ exit code: 1
      ╰─> [21 lines of output]
          + C:\Users\pravi\AppData\Local\anaconda3\envs\deeplabcut3\python.exe C:\Users\pravi\AppData\Local\Temp\1\pip-install-4ugudz9x\numpy_14c44ecae1ac4d679212715eb29df1e3\vendored-meson\meson\meson.py setup C:\Users\pravi\AppData\Local\Temp\1\pip-install-4ugudz9x\numpy_14c44ecae1ac4d679212715eb29df1e3 C:\Users\pravi\AppData\Local\Temp\1\pip-install-4ugudz9x\numpy_14c44ecae1ac4d679212715eb29df1e3\.mesonpy-_o91ijjk -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\pravi\AppData\Local\Temp\1\pip-install-4ugudz9x\numpy_14c44ecae1ac4d679212715eb29df1e3\.mesonpy-_o91ijjk\meson-python-native-file.ini
          The Meson build system
          Version: 1.2.99
          Source dir: C:\Users\pravi\AppData\Local\Temp\1\pip-install-4ugudz9x\numpy_14c44ecae1ac4d679212715eb29df1e3
          Build dir: C:\Users\pravi\AppData\Local\Temp\1\pip-install-4ugudz9x\numpy_14c44ecae1ac4d679212715eb29df1e3\.mesonpy-_o91ijjk
          Build type: native build
          Project name: NumPy
          Project version: 1.26.4
          WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
    
          ..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
          The following exception(s) were encountered:
          Running `icl ""` gave "[WinError 2] The system cannot find the file specified"
          Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
          Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
          Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
          Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
          Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
          Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"
    
          A full log can be found at C:\Users\pravi\AppData\Local\Temp\1\pip-install-4ugudz9x\numpy_14c44ecae1ac4d679212715eb29df1e3\.mesonpy-_o91ijjk\meson-logs\meson-log.txt
          [end of output]
    
      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: metadata-generation-failed
    
    × Encountered error while generating package metadata.
    ╰─> numpy
    
    note: This is an issue with the package mentioned above, not pip.
    hint: See above for details.
    
    (deeplabcut3) C:\Users\pravi>pip install numpy
    Requirement already satisfied: numpy in .\AppData\Local\anaconda3\envs\deeplabcut3\Lib\site-packages (2.4.6)
    

    I've also faced similar issues trying to install it with TensorFlow (pip install deeplabcut[gui,tf]), with the same numpy error. Thank you!

  22. deruyter92 commented on Jul 22, 2026

    @deruyter92
    Collaborator

    @pvarsharavi I think you've installed python 3.13. DeepLabCut is not compatible yet with that python version. Also, cuda 13 wheels should be fine, but just to be sure I'd go for cuda 12.8.

    These steps should install you everything you need:

    conda create -n dlc3 python=3.12
    conda activate dlc3
    
    pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128
    pip install "deeplabcut[gui]"
  23. pvarsharavi commented on Jul 22, 2026

    @pvarsharavi
    Author

    Hi @deruyter92 ,

    Thank you so much -- that worked and I was able to create a new training dataset and start working on that. Unfortunately, with a learning rate of 0.005, I'm running into the same issues as before with an increasing RMSE and stagnant (though it would probably decrease if I continued with training) mAP/mAR.

    Epoch 80/200 (lr=0.0005), train loss 0.00868, valid loss 0.11455, GPU: 4258.0/24569.5 MiB
    Model performance:
      metrics/test.rmse:          17.03
      metrics/test.rmse_pcutoff:   7.38
      metrics/test.mAP:           24.33
      metrics/test.mAR:           29.78
    

    As I was able to successfully train this project on 2.3.5, it seems less likely that it's an issue of data quality. Referencing the previous ticket, I'd like to reduce the initial learning rate and use loss curves to decide what the next steps here are -- is there an option to plot these within DLC 3.0? Also, given these results, would you also recommend using the loss curves to guide the course of action, or is there a different path I should take to achieve successful training?

  24. deruyter92 commented on Jul 28, 2026

    @deruyter92
    Collaborator

    I re-opened issue #3089 to discuss this!

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

Metadata

Metadata

Labels

Tensorflow 2buggpumore-data-requested-by-us

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions