Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

caffe c++ demo speed is too slow

See original GitHub issue

Hi, First of all, thank your great project.
I convert the pytorch model to caffe, then realized it in c++ code, the accuracy is pretty good But I met the speed problem.

    double t1 = static_cast<double>(cv::getTickCount());
    double t2 = static_cast<double>(cv::getTickCount());
    double inferenceTime = (t2 - t1) / cv::getTickFrequency() * 1000;
    std::cout << "model infrence time is: " << inferenceTime << std::endl;

In my GPU card (1080ti), It needs about 30 ms for each inference, Could you please tell the reason or potential fix method ? thanks a lot.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

lxy5513commented, Dec 26, 2019

@Daniil-Osokin So kind of you! At last I realize the caffe model with depthconv, The speed of inference is about 10ms.

By the way, only in the condition of dilation=1 , you can change convolution to DepthwiseConvolution, or the result will is a little strange.

Daniil-Osokincommented, Dec 28, 2019

Great, that it works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix a Slow WordPress Website (COMPLETE GUIDE)
SUPER SIMPLE, Easy to Follow Steps That Will Speed Up WordPress & Resolve 99% of WordPress Slow Loading Problems & Wordpress Speed Issues....
Read more >
24 Tips to Speed Up WordPress Performance (UPDATED)
The primary causes for a slow WordPress website are: Web Hosting – When your web hosting server is not properly configured it can...
Read more >
Caffe Assist | Facebook
Book a demo on our website, or email 2 days ago ... If you do too, we can help you get perfect...
Read more >
Demos - Rust Wiki
Below are a few commands available for altering the playback of a demo file. Timescale. demo.timescale <speed> - Adjust playback speed of the...
Read more >
Online Assessment FAQ
These assessments are proctored online, in order to ensure the integrity of the test, ... This error occurs if your RAM or Processor...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found