Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.8%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: Anarchy-ts
  • License: apache-2.0
  • Language: Python
  • Default Branch: master
  • Size: 25.7 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed over 2 years ago
Metadata Files
Readme Contributing License Code of conduct Citation

README.md

SEMANTIC SEGMENTATION

Live workings of the semantic segmentation model.

https://github.com/ANARCHY-ME-205/semseg/assets/129314735/22f779cf-a043-4b29-839f-3818c6688f16

https://github.com/ANARCHY-ME-205/semseg/assets/129314735/8bcab38b-7e29-457a-bbd4-2185c43b5570

Prerequisites

THANK, WORSHIP, PRAY to Tamoghna!!!

This requires Python 3.7+, CUDA 10.2+ and PyTorch 1.8+.

Installing pytorch

shell pip install torch; pip install torchvision

Installing dependencies :

shell pip install testresources ; pip install launchpadlib ; pip install --upgrade pip setuptools ; pip install --upgrade six

Installation

Step 1. Installing mmengine and mmcv using openmim

shell pip install -U openmim ; mim install mmengine ; mim install "mmcv>=2.0.0" Step 2. Install MMSegmentation.

```shell cd semseg ; pip install -v -e .

'-v' means verbose, or more output

'-e' means installing a project in editable mode,

thus any local modifications made to the code will take effect without reinstallation.

```

Verify the installation

To verify whether MMSegmentation is installed correctly, we provide some sample codes to run an inference demo.

Step 0. Checking mmseg version.

```python import mmseg print(mmseg.version)

Example output: 1.0.0

```

The following steps to verify installation are optional

Step 1. We need to download config and checkpoint files.

shell mim download mmsegmentation --config pspnet_r50-d8_4xb2-40k_cityscapes-512x1024 --dest .

The downloading will take several seconds or more, depending on your network environment. When it is done, you will find two files pspnet_r50-d8_4xb2-40k_cityscapes-512x1024.py and pspnet_r50-d8_512x1024_40k_cityscapes_20200605_003338-2966598c.pth in your current folder.

Step 2. Verify the inference demo.

Option (a). If you install mmsegmentation from source, just run the following command.

shell python demo/image_demo.py demo/demo.png configs/pspnet/pspnet_r50-d8_4xb2-40k_cityscapes-512x1024.py pspnet_r50-d8_512x1024_40k_cityscapes_20200605_003338-2966598c.pth --device cuda:0 --out-file result.jpg

You will see a new image result.jpg on your current folder, where segmentation masks are covered on all objects.

Running semantic segmentation.

Run semseg.py

Plausible semseg models :

Option(A). configs/bisenetv1/bisenetv1r18-d32-in1k-pre4xb4-160kcityscapes-1024x1024.py && bisenetv1r18-d32in1k-pre4x41024x1024160kcityscapes20210905_220251-8ba80eff.pth :
gives a decent computational speed of semseg although the accuracy is compromised a bit (70%).

Option(B). configs/pspnet/pspnetr50b-d84xb2-80kcityscapes-512x1024.py && pspnetr50b-d8512x102480kcityscapes20201225_094315-6344287a.pth :
this one is found to have the highest amount accuracy(81%) so far but very very slow computational speed something around 3 fps which is very bad.

Option(C). configs/ddrnet/ddrnet23-slimin1k-pre2xb6-120kcityscapes-1024x1024.py && ddrnet23-slimin1k-pre2xb6-120kcityscapes-1024x102420230426145312-6a5e5174.pth :
model link : https://download.openmmlab.com/mmsegmentation/v0.5/ddrnet/ddrnet23-slimin1k-pre2xb6-120kcityscapes-1024x1024/ddrnet23-slimin1k-pre2xb6-120kcityscapes-1024x102420230426145312-6a5e5174.pth works with moderate accuracy and moderate speed. I will be using this for now. DISCLAIMER : Need the bolt zed cam param tuning for this to work well!!!

Owner

  • Name: Tamoghna Saha
  • Login: Anarchy-ts
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - name: "MMSegmentation Contributors"
title: "OpenMMLab Semantic Segmentation Toolbox and Benchmark"
date-released: 2020-07-10
url: "https://github.com/open-mmlab/mmsegmentation"
license: Apache-2.0

GitHub Events

Total
Last Year