nemodrive / semantic-data-augmentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Semantic data augmentation

  • Based on numpy, OpenCV, picking the best from each of them.
  • Simple, flexible API that allows the library to be used in any computer vision pipeline.
  • Easy to extend the library to wrap around other libraries.
  • Easy to extend to other tasks.
  • Supports python 2.7-3.7
  • Easy integration with PyTorch.
  • Supports extraction of people on segmented images.

Table of contents

  • clone the repository
git clone https://github.com/nemodrive/semantic-data-augmentation.git
  • download Cityscapes Dataset from Cityscape Dataset.
  • create a two columns CSV file with original image path and coresponding segmented image path (one example is in resources/good_train_fine.txt)
  • create your own dataset (similar to Cityscape Dataset), having the original image and segmented road of that
  • have fun :)
  1. Install pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
  1. Clone the repository
git clone https://github.com/nemodrive/semantic-data-augmentation.git
  1. Go to extract_people.py
cd scripts
  1. Run extract_people.py
python extract_people.py <path_to_CSV_file>
  1. You can install roadpackage using pip command
pip install git+https://github.com/nemodrive/semantic-data-augmentation.git
  1. Import in your file
from roadpackage.road import overlay_people_on_road

About


Languages

Language:Python 100.0%