pjreddie / darknet

Convolutional Neural Networks
http://pjreddie.com/darknet/
Other
25.79k stars 21.33k forks source link

The speed varies greatly #134

Open jinyu121 opened 7 years ago

jinyu121 commented 7 years ago

Hi~ Your code is AMAZING !

I cloned your code at Jan 2017 ( the OLD version), and Aug 2017(the NEW version). I just noticed that the OLD version is faster than the NEW version.

The following is a comparison(without IO time):

GPU NEW OLD -
Titan X 0.032363ms/pic 0.020797ms/pic ~ 35% faster
K40 0.072557ms/pic 0.05184ms/pic ~ 28% faster

The compile args/ cfg files/ weights files are same.

GPU=1
CUDNN=1
OPENCV=0
DEBUG=0

ARCH= -gencode arch=compute_30,code=sm_30 \
      -gencode arch=compute_35,code=sm_35 \
      -gencode arch=compute_50,code=[sm_50,compute_50] \
      -gencode arch=compute_52,code=[sm_52,compute_52] \
      -gencode arch=compute_60,code=sm_60 \
      -gencode arch=compute_61,code=sm_61 \
      -gencode arch=compute_61,code=compute_61

So.. can you tell me why?

dtmoodie commented 7 years ago

Can you diff the versions and post the diff?

jinyu121 commented 7 years ago

The OLD version:

commit b61bcf544e8dbcbd2e978ca6a716fa96b37df767 Author: Joseph Redmon pjreddie@gmail.com Date: Wed Jan 4 05:05:08 2017 -0800

The NEW version:

commit 624a59307568212b7aecd9ae617bbcf4d94b8cec Author: Joseph Redmon pjreddie@gmail.com Date: Thu Jul 27 01:29:30 2017 -0700

yuanzhanghu commented 7 years ago

make sure you have same cfg file. new version might updated cfg files a bit.

On 12 August 2017 at 07:01, Yu Hao notifications@github.com wrote:

The OLD version:

commit b61bcf5 https://github.com/pjreddie/darknet/commit/b61bcf544e8dbcbd2e978ca6a716fa96b37df767 Author: Joseph Redmon pjreddie@gmail.com Date: Wed Jan 4 05:05:08 2017 -0800

The NEW version:

commit 624a593 https://github.com/pjreddie/darknet/commit/624a59307568212b7aecd9ae617bbcf4d94b8cec Author: Joseph Redmon pjreddie@gmail.com Date: Thu Jul 27 01:29:30 2017 -0700

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pjreddie/darknet/issues/134#issuecomment-321974213, or mute the thread https://github.com/notifications/unsubscribe-auth/AIDHxo63QD3ngd_RkIeclr_fgmX9EwRgks5sXYX2gaJpZM4O0KDe .

-- Yuanzhang Hu

jinyu121 commented 7 years ago

I am sure I use the same cfg files and same weights files.

I copied yolo-voc.cfg and other cfgs from the OLD version, trained with my data using the OLD version, and test it under both the OLD and NEW version.