Skip to content

tejas0809/Semantic-Scene-Composition-For-Amodal-Segmentation

Repository files navigation

Semantic-Scene-Composition-For-Amodal-Segmentation

Abstract for the Project

Visual recognition tasks such as object detection, classification and semantic segmentation, are now almost approaching human levels performances due to rapid rate of progress in recent years. However, the task of Amodal instance segmentation, which is to predict the region encompassing both visible and occluded parts of objects in an image, is still far for reaching maturity. Human beings learn and have this innate ability to imagine what the complete objects look like, even if objects might be half occluded. Amodal instance segmentation lets the model act in a similar way, by imagining beyond the visible pixels and providing complex reasoning about full scene structure. But a major roadblock in this task so far has been the lack of a dataset with annotations for amodal instances. In this work, we propose an architecture capable of generating scene composition by placing provided individual objects in the scene, in a context aware manner. We do this by learning a projection matrix based on encoded geometry and semantic information, and use a discriminator loss for training it to produce realistic compositions. Using this pipeline, we would get free amodal mask even in cases where objects are half occluded without human labelling, which can be further used for several other tasks such as scene inpainting of occluded part of the objects or other related segmentation tasks.

File Structure and description of each file

There are 6 python files, dataset.py, inference.py, models.py, spectral normalization.py, vis tools.py and train.py.

datasets.py

Contains all the dataloader code to load data from our input dataset

inference.py, inference_baseline.py

used to generate the results of our trained network, you can load weights and results can be saved using the inference files, each for our main model and our DL based baseline.

models.py

models_baseline.py

respectively contain the dataset class for each of our implementations of DL baseline and main approach

spectral_normalization.py

is a pre-design layer for our discriminator, basically what this file does is adding a more stable strategy to implement convolution layers.

train.py

train_baseline.py

train files contain the main function which calls the forward and backward pass, through out respective networks, and thus update the weights in the model.

vis_tools.py

contains the functions to visualize results in visdom

Instructions to run the code

Instructions to run the code are inlcuded in the attached pdf file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published