Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yolo2 and deepsort models run on the same gpu? #26

Open
ifangcheng opened this issue Nov 26, 2017 · 4 comments
Open

yolo2 and deepsort models run on the same gpu? #26

ifangcheng opened this issue Nov 26, 2017 · 4 comments

Comments

@ifangcheng
Copy link

it seems that in this project yolo2 and deepsort models run on the same gpu, can it be configured to run different models on multiple different gpus to further improve the fps of the whole end-to-end system?

@obendidi
Copy link
Owner

obendidi commented Nov 26, 2017

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 :)

@ifangcheng
Copy link
Author

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

@ifangcheng
Copy link
Author

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

@obendidi
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants