# Multiclass Semantic segmentation in pytorch

**URL:** <https://discuss.pytorch.org/t/multiclass-semantic-segmentation-in-pytorch/74751>\
**Category:** vision\
**Created:** [March 30, 2020, 5:58am UTC](https://discuss.pytorch.org/t/multiclass-semantic-segmentation-in-pytorch/74751 "2020-03-30T05:58:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/mohit/32/12827_2.png) [@Mohit](https://discuss.pytorch.org/u/Mohit)\
**Post date:** [March 30, 2020, 5:58am UTC](https://discuss.pytorch.org/t/multiclass-semantic-segmentation-in-pytorch/74751/1 "2020-03-30T05:58:20Z")

</div>

Greetings everyone

I am new to using PyTorch. I am trying to implement semantic segmentation for identifying multi-class objects for eg if I pass an image with 2 laptops and one knife, I want my model to categorise both the laptops in one class, the knife in another and background being the last class. I have understood the concepts intuitively and was able to predict binary classification using DeepLab V3. But after several tries I am failing to do the same when it comes to multi-channels. I have customised my images and masks using Gimp. **I need help with the code** if someone could send me a running code or a repository it’ll be a huge favour.

Regards
