Code Monkey home page Code Monkey logo

Comments (11)

lxtGH avatar lxtGH commented on May 24, 2024 13

Hi! @wutianyiRosun
There are two questions I want to ask:

  1. I test your model with 1024 * 2048 as input images. However I only got 9.5 fps on single 1080TI.
    I use the code like the following
    start = time.time()
    out = model(img)
    torch.cuda.synchronize()
    print('Speed: {} fps.'.format(1.0/(time.time()-start)))

  2. In your paper, ICnet only 16 fps which is not consistent with his paper. (30 fps)
    I don't know why. The gap between K80 and 1080TI is such large ??
    Is my testing method wrong? I want to know the way you evalute your model for speed.
    Also, I use my test method to test ESP-net which result in nearly the same as your paper report(49 fps)

from cgnet.

Reagan1311 avatar Reagan1311 commented on May 24, 2024 4

I got the same result as you, a single 1080Ti got about 9 FPS. @lxtGH
And if I didn't use torch.cuda.synchronize()
The FPS will increase to ~70Fps, this code is necessary.

from cgnet.

lxtGH avatar lxtGH commented on May 24, 2024 3

@Reagan1311 Yes, GPU and CPU must synchronize (CPU must wait until the end of GPU forwarding )

from cgnet.

meteorshowers avatar meteorshowers commented on May 24, 2024 3

10FPS only! I test it on 1080Ti.
I suggest that you change your arxiv paper.

from cgnet.

lxtGH avatar lxtGH commented on May 24, 2024 1

Hi , @wutianyiRosun
Did you use this line ?
torch.cuda.synchronize() for speed test?

from cgnet.

LinZhuoChen avatar LinZhuoChen commented on May 24, 2024 1

I met the same question. I hope I can get an answer. Thank you.

from cgnet.

lxtGH avatar lxtGH commented on May 24, 2024

I think it is wrong speed testing.

from cgnet.

wutianyiRosun avatar wutianyiRosun commented on May 24, 2024

Hi, @lxtGH
A1: The speed we report is the average speed on the verification set. What is your cuda and cudnn version?
A2: The speed of ICNet is tested on K80, The paper of ICNet reported 30 fps, which is tested on 1080TI. The speed between them is about two to three times the difference.

from cgnet.

yyfyan avatar yyfyan commented on May 24, 2024

@lxtGH @wutianyiRosun
I have a problem:
Pytorch DwConv's implement is not good,it's very slow. The CGNet'paper result is based on Pytorch?

from cgnet.

lxtGH avatar lxtGH commented on May 24, 2024

@wutianyiRosun If you didn't use the line of code, your speed reported in your paper is wrong.
@yyfyan What speed results you get ?

from cgnet.

wutianyiRosun avatar wutianyiRosun commented on May 24, 2024

@meteorshowers, @LinZhuoChen We will update in the next few days.

from cgnet.

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.