Giter Site home page Giter Site logo

Why is this port of SiamFC so slow? I get about 10fps with 1080Ti but author of the original paper claims 50-100 fps? about siamfc-pytorch HOT 5 CLOSED

huanglianghua avatar huanglianghua commented on August 20, 2024
Why is this port of SiamFC so slow? I get about 10fps with 1080Ti but author of the original paper claims 50-100 fps?

from siamfc-pytorch.

Comments (5)

huanglianghua avatar huanglianghua commented on August 20, 2024

The image reading, resizing, padding, cropping, etc. of PIL.Image is very slow. These operations run on CPU. You can try on cv2 for speeding up. The cv2 is much faster, but is less accurate and it acts differently on different machines.

from siamfc-pytorch.

yxchng avatar yxchng commented on August 20, 2024

@huanglianghua Do you have examples of how cv2 is less accurate and acts differently on different machines? I have been using cv2 for years and it works great!

from siamfc-pytorch.

huanglianghua avatar huanglianghua commented on August 20, 2024

@yxchng The decoding of OpenCV is based on libjpeg. Here is a discussion on OpenCV with different versions/platforms producing different results.

It might not be a problem for other CV applications. But for tracking, the performance is very vulnerable to small changes, as is also indicated in the summary on zhihu at the end of the article.

from siamfc-pytorch.

melodyhappy avatar melodyhappy commented on August 20, 2024

the result on my computer is only 1FPS. And I found my GPU was not working at all.Do you know how to solve this problem? Thx

from siamfc-pytorch.

huanglianghua avatar huanglianghua commented on August 20, 2024

@melodyhappy You can check my new commit, where all image operations (except for reading) are implemented in cv2, which is much faster.

from siamfc-pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.