Comments (8)
It is harder to reproduce the deeplab results on cityscape than on PASCAL.
The performance depends on the training patch size (typically larger is better but we have limited memory) and the way you do testing. Note that in deeplab paper, they claimed that they performed inference on small overlapping patches, while this code tests on whole image. Also, the training set of cityscape has two parts (fine and coarse labels). All these things will affect the final results.
Could you share your setting and results, please? We can discuss and see whether the results are reasonable.
from deeplab-v2--resnet-101--tensorflow.
I got a 0.656 IOU, but I think it is a little lower.
I use the resnet50 provided in your code, but I compare it with the standard resnet50, I found somewhere is different, such as stride in the '_dilated_bottle_resblock'. You set it almost to 1, but the standard stride is 2 in my opinion, which one is correct, or I miss something? @zhengyang-wang
from deeplab-v2--resnet-101--tensorflow.
The paper used resnet101-based models. It may improve results compared to resnet50.
Could you specify what standard you were using to do the comparison and which stride (there are several convolution operations in a bottleneck block)? For blocks with dilated convolutions, the stride is always 1. For a regular bottleneck block, the stride is sometimes 2 for some convolution operations, depending on whether the spatial size changes in this block. If my stride setting is wrong, the spatial size will be wrong. Thanks.
from deeplab-v2--resnet-101--tensorflow.
Alright, I see. And another question, in your code, how many batch size is small, and if the batch_size in my code is 4, do you think, I can set is_training to true in _batch_norm.
from deeplab-v2--resnet-101--tensorflow.
And about the resnet50, I just download a caffe prototxt, I compare your code with it, and I found it is a little different in the stride, in the block which kernel size is 1024 and 2048.
from deeplab-v2--resnet-101--tensorflow.
And, to be honest, I am a little confused between is_training and training. If I set trainable=True, and is training_false, what is that mean. And set trainable=False, is_training=true/false, what is that mean? Tks.
from deeplab-v2--resnet-101--tensorflow.
- It is hard to say what batch size is small. But if you take a look at successful image classification models, the batch size is usually larger than 100. We are doing segmentation (dense prediction) so that we cannot have such a large batch size due to memory limitation.
- Original ResNet50 even does not have dilated convolutions. Our task is segmentation instead of classification. You were talking about different things.
- From the documentation of tensorflow:
is_training: Whether or not the layer is in training mode. In training mode it would accumulate the statistics of the moments into moving_mean and moving_variance using an exponential moving average with the given decay. When it is not in training mode then it would use the values of the moving_mean and the moving_variance.
trainable: If True also add variables to the graph collection GraphKeys.TRAINABLE_VARIABLES (see tf.Variable).
from deeplab-v2--resnet-101--tensorflow.
Tks I see
from deeplab-v2--resnet-101--tensorflow.
Related Issues (20)
- Optimizer choice: Adam VS SGD HOT 1
- Another dataset HOT 4
- Problem with pre-trained model HOT 1
- Results for VOC2012 are not correct HOT 3
- Training Cityscapes - Changes in label_utils.py HOT 1
- pretrain model download
- How to process the outline of the object in Segmentation label images? HOT 1
- The problem about paper "Smoothed Dilated Convolutions for Improved Dense Prediction". HOT 1
- Which part of your code corresponds to the CRF in Deeplab V2? HOT 1
- How to predict dynamically from graph HOT 1
- A question about paper "Smoothed Dilated Convolutions for Improved Dense Prediction" HOT 2
- NotFoundError (see above for traceback): Tensor name HOT 3
- only can train 2images HOT 1
- Can I input 6 channel images for training? HOT 2
- how about results(mIoU) on validation set and test set HOT 2
- Hi, could you please implement it on cityscape? HOT 3
- how about the hyperparms of cityscape
- ABOUT BATCHSIZE WHEN TRAINING ON CITYSCAPES HOT 1
- It is OOM. Try reducing input_height and input_width. HOT 1
- resnet101 ------- miou 70.7% HOT 2
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 deeplab-v2--resnet-101--tensorflow.