wkentaro / chainer-mask-rcnn

Chainer Implementation of Mask R-CNN. (Training code to reproduce the original result is available.)
MIT License
55 stars 16 forks source link

Speedtest Chainer vs. Pytorch implementation from fb research #31

Closed wkentaro closed 6 years ago

wkentaro commented 6 years ago

Speed test (vs. PyTorch implementation)

Configuration:

# Chainer implementation (this repo)
% pwd
/home/wkentaro/chainer-mask-rcnn/examples/coco
% ./speedtest.py --gpu 0 --times 10
==> Benchmark: gpu=0, times=10
==> Image file: https://raw.githubusercontent.com/facebookresearch/Detectron/master/demo/33823288584_1d21cf0a26_k.jpg
==> Testing Mask R-CNN RestNet50-C4 with Chainer
Elapsed time: 3.09 [s / 10 evals]
Hz: 3.24 [hz]

# PyTorch implementation (https://github.com/facebookresearch/maskrcnn-benchmark)
% git clone https://github.com/wkentaro/maskrcnn-benchmark.git -b speedtest_r50_c4  # then install it
% pwd
/home/wkentaro/maskrcnn-benchmark/demo
% ./speedtest.py --gpu 0 --times 10
==> Benchmark: gpu=0, times=10
==> Image file: https://raw.githubusercontent.com/facebookresearch/Detectron/master/demo/33823288584_1d21cf0a26_k.jpg
==> Testing Mask R-CNN ResNet-C4 with PyTorch
Elapsed time: 3.44 [s / 10 evals]
Hz: 2.91 [hz]