GithubHelp home page GithubHelp logo

ias_naviprediction's Introduction

IAS NaviPrediction

Pipeline Draft

IAS_Naviprediction_v3 1

Date augmentation with GAN (Generative adversarial networks)

A deep learning approach was used to complement the data set. for this approach the method Generative adversarial networks was chosen. to use the script, the file gan.py should be executed. The arguments are as follows:

  • --image_path: path of dataset.
    • for generating the maps, there is in the folder data_augmentation_GAN, a folder with dataset. you can use this as a dataset or use your own maps in .png format. all maps (images) should be in one folder.
  • --output_path: path of the output folder.

Example:

python data_augmentation_GAN/gan.py --image_path /path/to/dataset --output_path /path/to/output

Filter of maps

Second step is to filter the generated maps. to filter the maps, the script filter.py should be used. The arguments are as follows:

  • --image_path: path of generated images.
  • --output_path: path of the output folder.

Example:

python data_augmentation_GAN/filter.py --image_path /path/to/generated_images --output_path /path/to/output

Create yaml file

For the world complexity metrics, the maps should still have yaml files. to create yaml files, you should run the script create_yaml.py. he arguments are as follows:

  • --image_path: path of images.

Example:

python create_yaml.py --image_path /path/to/folder/of/images

calc_ComplexityValues.py

This script calculates the complexity values of the given maps in a folder and writes them into a csv-file as input for the DNN.

Example:

python3 calc_ComplexityValues.py folderpath

World complexity

in order to calculate the metrics of worlds, script world.complexity.py should be executed. the arguments are as follows:

  • --image_path: path of the image.
  • --yaml_path: path of the map.yaml file.
  • --dest_path: path of the output folder.
  • --folders_path: if each maps and associated yaml file are stored in a folder and separated from other files, you can use this argument. this way all folders will be loaded automatically and complexity metrics will be calculated.
    • if this argument is used, other arguments must not be specified

the name of yaml file must be map.yaml, if your file has another name, please rename it to map.yaml

Example:

python world_complexity.py --image_path /path/to/folder/of/images --yaml_path path/to/map.yaml --dest_path path/to/output/folder

or

python world_complexity.py --folders_path /path/to/folders/of/maps

Step 1

  1. Install world_complexity.py script

Step 2

  1. Please read those notes
  2. install and validate the package

Step 3

  1. Test script world_complexity.py (what are the limits of the script? what could be improved?)
  2. Create enough maps (~100 - 200)
  3. Collect values from maps via world_complexity.py
  4. Test, if the collected values can be added to one value or if a CNN is necessary

ias_naviprediction's People

Contributors

amer avatar fengji2021 avatar niloufarkh avatar valwai avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ias_naviprediction's Issues

Data Augmentation with GAN

generated images look good. but the quality is not super good and not sure if these maps could be used for navigation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.