Hi, I would like to know how to test with multi gpu and increase test batches?
tools/train_net.py --num-gpu 8
Evaluation with batch size > 1 is unsupported at the moment, mainly because for most models it will not produce the exact same output due to padding, therefore not very useful for research. However the models can already accept inputs with batch size>1.
If a聽TensorFlow聽operation has both CPU and聽GPU聽implementations,聽TensorFlow will automatically聽place the operation to run on a聽GPU聽device first. If you have more than one聽GPU, the聽GPU聽with the lowest ID聽will聽be selected by default. However,聽TensorFlow does聽not place operations into multiple聽GPUs automatically
@joeythegod but if you still want to increase the batch, you can do it by hacking the code here: https://github.com/facebookresearch/detectron2/blob/master/detectron2/data/build.py#L398
Just change the batch size in the BatchSampler.
Closing as all the models do support batch size >1 for inference from the beginning.
We probably don't want to support batch size > 1 for evaluation, due to reasons mentioned above.
Most helpful comment
@joeythegod but if you still want to increase the batch, you can do it by hacking the code here: https://github.com/facebookresearch/detectron2/blob/master/detectron2/data/build.py#L398
Just change the batch size in the
BatchSampler.