Coder Social home page Coder Social logo

Comments (4)

michaelisc avatar michaelisc commented on June 5, 2024 1

Between 500ms and 700ms sounds about right. Did that finding answer your question then? I am not sure if I can do anything to speed up the visualization function. I guess the bottleneck there is matplotlib but never profiled it.

from siamese-mask-rcnn.

trungpham2606 avatar trungpham2606 commented on June 5, 2024 1

@michaelisc Iam trying to use opencv instead to see whether it can boost the visualization time or not. I will report the results later.
Update: I think the problem comes from my PC, after trying several times again with matplotlib and opencv, the total time results ( prediction + visualization ) are the same.
Thank you for your prompt support.

from siamese-mask-rcnn.

michaelisc avatar michaelisc commented on June 5, 2024

Which model did you download and which function did you use for testing? model.evaluate_dataset or model.detect? The latter one can take a long time for the first image, as it has to initialize some components when the model is called for the first time. I found this behavior to be the same for the original Matterport Mask R-CNN implementation we build upon.

from siamese-mask-rcnn.

trungpham2606 avatar trungpham2606 commented on June 5, 2024

@michaelisc I downloaded large_siamese_mrcnn_coco_full model and used model.detect for detection. I was testing detection for multiple images.
For the first image, it took about 24sec, and approximately 5 to 7sec for each image after that.
Ah, I just figured out that for prediction part, the model takes only 0.5 to 0.7 sec for 1 image. But display_results part takes so much time (at least 3sec for 1 image in my PC).

from siamese-mask-rcnn.

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.