insightface icon indicating copy to clipboard operation
insightface copied to clipboard

Multi-gpu usage

Open pasa13142 opened this issue 4 years ago • 6 comments

model = insightface.app.FaceAnalysis() ctx_id = 0 model.prepare(ctx_id = ctx_id, nms=0.4)

This is how i build model. with ctx_id param i can select only one gpu for model,

how can i choose all 4 gpus for model, is there any way ? putting in list [0,1,2,3] does not work btw.

Thanks!

pasa13142 avatar May 07 '20 06:05 pasa13142

Any idea ?

pasa13142 avatar May 20 '20 07:05 pasa13142

Hi @pasa13142 You can actually find all the available GPU's on your system. Let me know what error you got, and how many gpu's are availaible.

umairanis03 avatar May 26 '20 08:05 umairanis03

I got 4 gpus available, actually i got no error. This is just asking question. When training part we can give 4 gpus, likewise how i can run model with these 4 gpus ?

pasa13142 avatar May 28 '20 10:05 pasa13142

@pasa13142 Did you get it work with multi-gpu?

Luckygyana avatar Jul 04 '23 11:07 Luckygyana

anyone manage this?

sirdavidjcooper avatar Oct 27 '23 13:10 sirdavidjcooper