Coder Social home page Coder Social logo

Comments (4)

obendidi avatar obendidi commented on May 17, 2024 1

you can change the GPU Flag in YOLO :

FLAGS.gpuName = '/gpu:0'

by default it's on GPU 0 , but you can set it to another GPU (for example /gpu:1) , hopefully deep_sort will still run on GPU 0 (I only have one GPU so can't test it )

Another thing to try is to set deep sort to run on GPU 1 , by adding this line to deep sort tf_session :

config = tf.ConfigProto(device_count = {'GPU': 1})
session = tf.Session(config=config) 

these should replace line 318 in the script deep_sort/generate_detection.py

if it works out, a pull request would be appreciated for future users :)

from tracking-with-darkflow.

ifangcheng avatar ifangcheng commented on May 17, 2024 1

I tried the two ways you mentioned, however it both turns out that they have no effects on the gpu assignment.
it always used both of the memory of gpu0 and gpu1
but the gpu util shows only the percent value(like 40%-60%)on gpu0, while 0% on gpu 1

from tracking-with-darkflow.

ifangcheng avatar ifangcheng commented on May 17, 2024

thanks for reply!
i will try to test it, hopefully it works.

from tracking-with-darkflow.

obendidi avatar obendidi commented on May 17, 2024

try using with tf.device("GPU:1"): before calling the encoder
I'm sorry I don't have the required hardware so can't really help much

from tracking-with-darkflow.

Related Issues (20)

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.