faster_rcnn_pytorch icon indicating copy to clipboard operation
faster_rcnn_pytorch copied to clipboard

How to support multigpu?

Open philokey opened this issue 8 years ago • 2 comments

Hello, How to modify the repo to support multi gpu training?

philokey avatar May 09 '17 03:05 philokey

Refer to this: https://github.com/bamos/densenet.pytorch/issues/5#issue-216681444

acgtyrant avatar May 18 '17 11:05 acgtyrant

I tried what the comment suggested, it didn't quite work. I get:

Exception in thread Thread-4:
Traceback (most recent call last):
  File "/home/rizhiy/miniconda3/envs/rcnn/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/home/rizhiy/miniconda3/envs/rcnn/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/rizhiy/miniconda3/envs/rcnn/lib/python2.7/site-packages/torch/nn/parallel/parallel_apply.py", line 22, in _worker
    var_input = var_input[0]
IndexError: invalid index to scalar variable.

Same for the other three threads.

I'm new to pytorch can someone help?

Where can I find what the batch size during training is?

Rizhiy avatar Jul 19 '17 12:07 Rizhiy