Giter Club home page Giter Club logo

Comments (10)

MrLinNing avatar MrLinNing commented on August 28, 2024 8

Hi, @ycszen
Why you use the cityscapes.bisenet.R18.speed folder rather than cityscapes.bisenet.R18 ?
I found that the network.py is different.
In the cityscapes.bisenet.R18.speed/network.py, you drop two srtucture where

        if is_training:
            heads = [BiSeNetHead(conv_channel, out_planes, 2,
                                 True, norm_layer),
                     BiSeNetHead(conv_channel, out_planes, 1,
                                 True, norm_layer),
                     BiSeNetHead(conv_channel * 2, out_planes, 1,
                                 False, norm_layer)]
        else:
            heads = [None, None,
                     BiSeNetHead(conv_channel * 2, out_planes, 1,
                                 False, norm_layer)]

I wonder know why you do that?

@Reagan1311 Besides, I test the cityscapes.bisenet.R18.speed/network.py in TITAN xp, the FPS is ~30 on 1024x2048, and the model output shape is 1x19x128x256.
And in the cityscapes.bisenet.R18/network.py, the FPS is ~25 on 1024x2048 and the output shape is 1x19x1024x2048.

Looking forward to your reply !

from torchseg.

Reagan1311 avatar Reagan1311 commented on August 28, 2024 8

That's still a large gap from the original paper's FPS. @MrLinNing

which is:
Xception39 105.8
Res18 65.5
(Titan XP with 2048x1024 resolution input)

How these papers figure out the accurate FPS? Really curious...

from torchseg.

Reagan1311 avatar Reagan1311 commented on August 28, 2024 4

So currently, are there any good solutions to compute the accurate FPS? @ycszen
Looking forward to your reply!

from torchseg.

yu-changqian avatar yu-changqian commented on August 28, 2024 1

Hi,
If you focus on the speed experiments, you should use the experiments with the suffix .speed, like the folder cityscapes.bisenet.R18.speed. Then, as we elaborated in our paper, in the speed experiments, we first resize the 1024x2048 image into 768x1536 input size.
Finally, I have to mention that the speed of Depthwise Conv in PyTorch has a little problem. Its speed is slower than the normal convolution, which results in the speed of our Xception is not accurate in this repo. More details about the depthwise conv in PyTorch can be found here.

from torchseg.

JingliangGao avatar JingliangGao commented on August 28, 2024 1

Hi,
I also have the same question and look forward to your reply . @ycszen

from torchseg.

MrLinNing avatar MrLinNing commented on August 28, 2024

Thanks, @ycszen
By the way, can you share the 960x720 CamVid dataset and usage instruction? I can just find the 480x360 resolution( https://github.com/alexgkendall/SegNet-Tutorial/tree/master/CamVid)

from torchseg.

yu-changqian avatar yu-changqian commented on August 28, 2024

Thanks for all attention.
In this repo, it is just a pytorch-version reimplementation of our proposed method. Actually, we implement this method with our own framework when I submitted my paper, in which the depthwise conv is correctly optimized.
However, in PyTorch, the depthwise cov is not correctly optimized, which is even slower than the original conv. Therefore, there is a gap between this repo and our paper.
Maybe the official PyTorch will support the optimized depthwise conv.
Or I can implement the optimized depthwise conv in PyTorch if I have time ...

from torchseg.

yu-changqian avatar yu-changqian commented on August 28, 2024

Hi, @ycszen
Why you use the cityscapes.bisenet.R18.speed folder rather than cityscapes.bisenet.R18 ?
I found that the network.py is different.
In the cityscapes.bisenet.R18.speed/network.py, you drop two srtucture where

        if is_training:
            heads = [BiSeNetHead(conv_channel, out_planes, 2,
                                 True, norm_layer),
                     BiSeNetHead(conv_channel, out_planes, 1,
                                 True, norm_layer),
                     BiSeNetHead(conv_channel * 2, out_planes, 1,
                                 False, norm_layer)]
        else:
            heads = [None, None,
                     BiSeNetHead(conv_channel * 2, out_planes, 1,
                                 False, norm_layer)]

I wonder know why you do that?

@Reagan1311 Besides, I test the cityscapes.bisenet.R18.speed/network.py in TITAN xp, the FPS is ~30 on 1024x2048, and the model output shape is 1x19x128x256.
And in the cityscapes.bisenet.R18/network.py, the FPS is ~25 on 1024x2048 and the output shape is 1x19x1024x2048.

Looking forward to your reply !

We do this to accelerate the inference speed.
Because both structures are auxiliary modules which are designed for better training, we can drop them in the inference phase.

from torchseg.

JingliangGao avatar JingliangGao commented on August 28, 2024

from torchseg.

chenwydj avatar chenwydj commented on August 28, 2024

Thanks, @ycszen
By the way, can you share the 960x720 CamVid dataset and usage instruction? I can just find the 480x360 resolution( https://github.com/alexgkendall/SegNet-Tutorial/tree/master/CamVid)

Hi! Are you able to get the 960x720 CamVid dataset? Thanks!
@ycszen Could you comment on the resolution of CamVid dataset? Thank you!

from torchseg.

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.