thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.08k forks source link

Why is darkflow slower than darknet ? #967

Open phamngocthanhtrung opened 5 years ago

phamngocthanhtrung commented 5 years ago

Hi guys, one point i don't really understand is, why is darkflow slower than darknet? I thought with Cython it would be just as fast.

AzwadAbid commented 5 years ago

Darkflow is ported from Darknet. Darkflow uses high level language (Python) while Darknet uses low level language (C++), which has a much faster compilation time. So, of course, it is expected to be faster. But the magnitude of x2.6 is pretty darn noticeable as mentioned here: https://www.linkedin.com/pulse/comparison-yolo-darknet-versus-darkflow-rasmus-kromann/

Still, unless you need realtime application, Darkflow can suffice.