CompVis / metric-learning-divide-and-conquer

Source code for the paper "Divide and Conquer the Embedding Space for Metric Learning", CVPR 2019

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can this code run on multiple GPUs?

lxc86739795 opened this issue · comments

It seems that the code cannot directly run on multiple GPUs by simply adding "torch.nn.Dataparallel".

I'm not sure about that. Maybe you will have to make some extra modifications.
What kind of error do you get?

The simplest way to go about this is to make modifications until train_batch and disable faiss_gpu. You might have to make more modification in terms of gpu sharing between faiss and the training session.