https://github.com/lemonpi/sem-to-ins
Semantic segmentation mask to instance segmentation
https://github.com/lemonpi/sem-to-ins
Last synced: 7 months ago
JSON representation
Semantic segmentation mask to instance segmentation
- Host: GitHub
- URL: https://github.com/lemonpi/sem-to-ins
- Owner: LemonPi
- Created: 2020-03-24T17:18:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-29T05:38:32.000Z (about 6 years ago)
- Last Synced: 2025-02-22T18:39:36.724Z (over 1 year ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Requirements
- PyTorch (1.0+)
- python 3
## Installation (development)
### Install pycocotools
```
git clone https://github.com/cocodataset/cocoapi.git
cd cocoapi/PythonAPI
make
python setup.py build_ext install
```
### Get data
Download data from the shared drive and store inside `/data` directory.
The resulting folder structure should look something like
```
.
├── data
│ ├── PennFudanPed
│ │ ├── added-object-list.txt
│ │ ├── Annotation
│ │ ├── PedMasks
│ │ ├── PNGImages
│ │ └── readme.txt
│ └── synthetic-val
│ ├── cup-with-waves-val
│ ├── flower-bath-bomb-val
│ ├── heart-bath-bomb-val
│ ├── square-plastic-bottle-val
│ └── stemless-plastic-champagne-glass-val
├── README.md
├── sem_to_ins
│ ├── cfg.py
│ ├── dataset.py
│ ├── detection_reference
│ │ ├── coco_eval.py
│ │ ├── coco_utils.py
│ │ ├── engine.py
│ │ ├── __init__.py
│ │ ├── transforms.py
│ │ └── utils.py
│ └── __init__.py
└── setup.py
```
### Install rest
Install in editable mode with `python3 -m pip install -e .` so that modifications
in the repository are automatically synced with the installed library