Git Product home page Git Product logo

learning-connectivity's Introduction

learning-connectivity

Code for training and testing CNNs for learning (algebraic) connectivity maximizing network configurations as outlined in our paper Learning Connectivity-Maximizing Network Configurations. To cite this work use the following BibTeX entry:

@article{mox2022learning,
  author={Mox, Daniel and Kumar, Vijay and Ribeiro, Alejandro},
  journal={IEEE Robotics and Automation Letters},
  title={Learning Connectivity-Maximizing Network Configurations},
  year={2022},
  volume={7},
  number={2},
  pages={5552-5559},
  doi={10.1109/LRA.2022.3146524}
}

Installation

Clone the repository and initialize submodules:

git clone https://github.com/danmox/learning-connectivity.git

It is highly recommended that this project be used in conjunction with a virtual environment. Python dependencies can be installed with:

pip install -r requirements.txt

Note that the project requires Python 3.

Usage

Each of the python files in the top level directory comes with a commandline interface. See the help string for usage instructions:

python <file.py> -h

Datasets

New datasets can be generated using hdf5_dataset_utils.py (e.g. python hdf5_dataset_utils.py generate --scale 2 100000 3 to generate 100,000 256x256 image pairs with 3 task agents in the input image). Existing datasets for task agent teams of 2-6 agents can be downloaded here.

Models / Training

Limited pre-trained models can be found in the models directory. The model used in the paper is ConvAEModel_px256_nf128_8x8kern__256_2t2t3t3t4t5t6t__valloss_4.199e-04_epoch_14__20211202-054934.ckpt.

To train a new ConvAEModel_px256_nf128_8x8kern model on the 256px datasets (assuming they have been downloaded to data/256px) directory for 20 epochs:

python cnn.py train ConvAEModel_px256_nf128_8x8kern data/256px/256_connectivity_100000s_*.hdf5 --epochs 20

Other possible network models to train can be found in models.py.

Results

A variety of different tests can be run on trained networks with cnn_results.py. See the help string for more information. All tests can be run with the run_tests script.

learning-connectivity's People

Contributors

danmox avatar damowerko avatar

Stargazers

Tan Wei avatar cccleon avatar Goutam Das avatar  avatar  avatar Shall Chee Shih avatar

Watchers

 avatar Kostas Georgiou avatar

Forkers

damowerko

learning-connectivity's Issues

how can i get the code in this submodule

After I use command git clone --recursive https://github.com/danmox/learning-connectivity.git, the content below this submodule seems to be empty,how can i get the code in this submodule,Thanks
image

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.