Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

caffe only need 8min for training mnist with accuracy of 0.99,why mxnet need over 50min for training? #1036

@dushoufu

Description

@dushoufu

I separately run caffe and mxnet to train mnist on the same computer with the mode of CPU.The result is that caffe is three times faster than mxnet.
I analyse it,the model and the environment is same,except that caffe‘s input is lmdb。 The two cases are directly executed according to the example。Caffe cost 700% of cpu,while mxnet cost 500% of cpu.
For mxnet,every cpu is not up to 30%. How can I check something to speed up mxnet?
mxnet:
INFO:root:Epoch[19] Time cost=146.922
INFO:root:Epoch[19] Validation-accuracy=0.990100

real 52m37.068s
user 87m37.811s
sys 205m59.149s

caffe
I1223 14:27:11.260304 12600 solver.cpp:408] Test net output #0: accuracy = 0.9909
I1223 14:27:11.260419 12600 solver.cpp:408] Test net output #1: loss = 0.0274076 (* 1 = 0.0274076 loss)
I1223 14:27:11.260432 12600 solver.cpp:325] Optimization Done.
I1223 14:27:11.260442 12600 caffe.cpp:215] Optimization Done.

real 8m28.679s
user 23m31.146s
sys 43m21.118s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions