Code Monkey home page Code Monkey logo

Comments (4)

angelgho avatar angelgho commented on June 10, 2024 3

OS: Win 10
Installation sequence:
Build cuda following:
https://www.reddit.com/r/tensorflow/comments/jsalkw/rtx_3090_and_tensorflow_for_windows_10_step_by/
Cuda: 11.1
cuDNN: v8.0.5.39
Anaconda env used: DLC-GPU (latest, v2.1.10.2)
Tensorflow Version: pip install tensorflow-gpu==2.4.1
Deeplabcutcore: pip installed first, later from github directly (see below)
tf-slim: pip install tf-slim==1.1.0

Hi all,
Another RTX 3070 user checking in.

I found out that the pip installed deeplabcutcore seems to be an older version than the github one.
When I ran the testscript.py with the pip installed deeplabcutcore, it gives a lot of errors related to tensorflow library while importing deeplabcutcore (for example, module 'tensorflow.python.framework.ops' has no attribute 'RegisterShape').
But if I download the github repo, it works.

Plus, I had the same problem with VRAM exploding, too.
I guess it might be because I am using RTX 3070 as my displaying GPU, too.
I found a solution in here:
tensorflow/tensorflow#46209
I added the following two lines after "import tensorflow as tf" in Lib\site-packages\deeplabcutcore\pose_estimation_tensorflow\train.py:
physical_devices = tf.config.list_physical_devices('GPU')
tf.config.experimental.set_memory_growth(physical_devices[0], True).
It then worked well.

Hope it helps!
Best,
Chen

from deeplabcut-core.

bobfromjapan avatar bobfromjapan commented on June 10, 2024 2

Hello. I'm a RTX3000 user too!

This may not be the answer you are looking for, but I was able to run DeepLabCut 2.2b8 on my RTX3080 using the package tensorlow-directml.
This is an UNOFFICIAL WAY with a package not originally used by DeepLabCut, and it works slower than using native CUDA, but I was able to confirm that it works.

I wrote a report about this on imaga.sc: https://forum.image.sc/t/fyi-deeplabcut-worked-on-radeon-gpu-rtx3080-using-tensorflow-directml/47700

from deeplabcut-core.

dlramamurthy avatar dlramamurthy commented on June 10, 2024 1

Thanks for this post -- I have also been having these exact issues when trying to install with RTX 3070.
I made an initial post which didn't go into the same level of detail as you have: DeepLabCut/DeepLabCut#1078
I would love to hear if you find out how to get it running!

from deeplabcut-core.

F2AGLAXY avatar F2AGLAXY commented on June 10, 2024

Hi Yao, I am new to DLC and I also use RTX2060 but it does not work. Can you share your config? Best

from deeplabcut-core.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.