Questions tagged [semantic-segmentation]

Semantic segmentation is the task of classifying every pixel in the image to a category or class label.

Semantic segmentation is the task of classifying every pixel in the image to a category. It refers to the process of linking each pixel in an image to a class label. Some of its primary applications are in autonomous vehicles, human-computer interaction & robotics.

532 questions
0
votes
1 answer

Multi-class image classification, how to load mask

I'm totally new to Keras, I've only been working for a few days, so I'm pretty inexperienced. I was able to train a U-Net network that works with a class, then input an RGB image and a grayscale mask for training, with the following code: def…
0
votes
0 answers

Error in DeepMask's Pytorch Code

I’m currently trying to implement Deepmask (Link to FAIR's Paper) using Pytorch, so far I have defined the Joint Loss Function, and the model’s learn-able parameters and the forward pass. I was working on the training phase, and as the paper says…
0
votes
1 answer

Pascal VOC Class Segmentation: Ground-truth pixel labeling for training

I just started to work on the Pascal VOC segmentation dataset. But I have trouble understanding the colour coding they have used in the ground labeling. I assumed pixels would be annotated 1 through 20 for each class but what I have got are 8 bit…
0
votes
3 answers

Mask R-CNN for object detection and segmentation [Train for a custom dataset]

I'm doing a research on "Mask R-CNN for Object Detection and Segmentation". So I have read the original research paper which presents Mask R-CNN for object detection, and also I found few implementations of Mask R-CNN, here and here (by Facebook AI…
0
votes
1 answer

Does tensorflow support to calculate the cross entropy loss of a subset of labels for semantic segmentation?

I am doing a semantic segmentation task using tensorflow. I have 5 classes, I calculate the loss like this: loss = tf.reduce_mean((tf.nn.sparse_softmax_cross_entropy_with_logits(logits=logits, labels=tf.squeeze(annotation, squeeze_dims=[3]),…
xiaopl
  • 1
  • 1
0
votes
1 answer

How can I save the segmentation result of segnet

scipy.misc.toimage(rgb, cmin=0.0, cmax=255).save(IMAGE_FILE+'_segnet.png') In the file test_segmentation_camvid, how should I define the IMAGE_FILE and save the prediction results?
haowu
  • 1
  • 1
0
votes
2 answers

How to train in Keras when I don't have enough memory for loading all training data

I want to train my model in Keras, so tried to load images as numpy array and resizing them, but it failed because I don't have enough memory. MemoryError when I normalize images by img/255 My task is semantic segmentation. I have two folders. One…
user8483278
0
votes
1 answer

Resizing a convolution layer before concatenating in Keras

I'm reading U-Net: Convolutional Networks for Biomedical Image Segmentation and want to implement this in Keras. In U-Net, I need to concatenate convolutional layers, one is in the contracting path and the other is in the expansive path (Fig1. 1. in…
user8483278
0
votes
0 answers

Semantic Sermentation, about the mask?

If I get the mask on the feature map, for example, a 7 x 7 feature map, how can these 7 x 7 masks finally become the mask on the raw image? Using interpolation or upsampling? As far as I'm concerned, if you do mask on a 7 x 7 feature map where you…
0
votes
1 answer

Fully convolutional neural network for semantic segmentation

I have perhaps a naive question and sorry if this is not the appropriate channel to ask about these kind of questions. I have successfully implemented a FCNN for semantic segmentation, but I don't involve deconvolution or unpooling layers. What I…
0
votes
1 answer

Which dataset used in jakeret/tf_unet U-Net implementation?

I am trying to implement U-net and I use https://github.com/jakeret/tf_unet/tree/master/scripts this link as reference. I don't understand which dataset they used. please give me some idea or link which dataset i use.
0
votes
1 answer

error in executing sess.run()

I wanna execute my graph model but I am having difficulty. The code is: epoch_x, epoch_y = features, labels sess.run(optimizer, feed_dict = {"x:0": epoch_x, "y:0": epoch_y}) and the error…
0
votes
0 answers

Improving accuracy of my CNN for pixel wise segmentation

I am trying to design a CNN that can do pixel wise segmentation of cell images. Such as these: With segmentation masks such as this (except more than one segmentation mask for each raw image, eg: interior of cell, border of cell, background): I…
-1
votes
1 answer

Estimating pose via semantic segmentation pipeline

Currently, I am implementing multi-class semantic segmentation pipeline for my custom dataset. At the end of training/evaluation, I will get the corresponding masks of my classes/objects. From the output masks, I need to find the pose of those…
-1
votes
1 answer

AssertionError when running U-Net script

This is a continuation of this problem. While I ironed out the problems I still get another issue. Would anyone be able to help me in this regards? Looks like the predicted mask and actual mask have different sizes? The output code is…