Comments (10)
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.
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.
So currently, are there any good solutions to compute the accurate FPS? @ycszen
Looking forward to your reply!
from torchseg.
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.
Hi,
I also have the same question and look forward to your reply . @ycszen
from torchseg.
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.
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.
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 whereif 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.
from torchseg.
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)
- train a dfn-voc network with my own data HOT 1
- 关于cityscapes.bisenet.R18.speed中下采样label HOT 1
- subprocess.CalledProcessError
- example about the train.txt, val.txt, test.txt
- A exception occurred during Engine initialization, give up running process HOT 1
- about aux_label
- C++
- 关于您提供的BiSeNet_Xception39的复现结果mIOU低
- Inference on my own images HOT 1
- Setting gt_down_sample=1 resulting in reduction of validation accuracy by 4.9% HOT 1
- Where are train.py and eval.py? HOT 1
- Does the .pth file downloaded in google drive need to be retrained?
- The loss calculation of PSPNet
- BiSeNetV2 support
- Training Parameter - Large dataset
- Difference between realtime res18 and non-realtime res18 model HOT 1
- About the pretrained model
- ModuleNotFoundError: No module named 'utils.pyt_utils' HOT 3
- 训练问题
- valueError invalid literal for int() with base10:‘’
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torchseg.