Giter Site home page Giter Site logo

About inference speed about u-2-net HOT 3 CLOSED

xuebinqin avatar xuebinqin commented on August 15, 2024
About inference speed

from u-2-net.

Comments (3)

DBraun avatar DBraun commented on August 15, 2024 2

With the large U2Net model on my RTX 2080, I'm getting about 20ms per frame in my C++ app, making sure the module and input data are on the GPU. Using release (not debug) libtorch DLLS:

// in loop for every frame
auto start = high_resolution_clock::now();
auto result = module.forward({ rgb });
auto stop = high_resolution_clock::now();
myDuration = duration_cast<milliseconds>(stop - start);
myDuration.count(); // about 20ms avg when displayed via HUD

from u-2-net.

xuebinqin avatar xuebinqin commented on August 15, 2024

Both are tested on a NVIDIA gtx 1080 ti GPU.

from u-2-net.

clelouch avatar clelouch commented on August 15, 2024

I've also tried to test the inference speed of U2Net. However, the larger U2Net running at a speed of 16 FPS on RTX TITAN Xp when processing 352X352X3 image.

with torch.no_grad():
    start = time.time()
    res = model(img)
    torch.cuda.synchronize()
    end = time.time()
    # print(res.shape)
    print(end - start)

from u-2-net.

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.