All Projects → pathak22 → modular-assemblies

pathak22 / modular-assemblies

Licence: other
[NeurIPS 2019] Code for the paper "Learning to Control Self-Assembling Morphologies: A Study of Generalization via Modularity"

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to modular-assemblies

recaf
Recaffeinating Java ☕️ with custom semantics and extensions
Stars: ✭ 48 (-51.02%)
Mutual labels:  modularity
treestoolbox
TREES toolbox
Stars: ✭ 20 (-79.59%)
Mutual labels:  morphology
modules
The official repository for our paper "Are Neural Nets Modular? Inspecting Functional Modularity Through Differentiable Weight Masks". We develop a method for analyzing emerging functional modularity in neural networks based on differentiable weight masks and use it to point out important issues in current-day neural networks.
Stars: ✭ 25 (-74.49%)
Mutual labels:  modularity
langua
A suite of language tools
Stars: ✭ 29 (-70.41%)
Mutual labels:  morphology
ctx
🍭Ctx (Context) 是一个服务模块化上下文框架。
Stars: ✭ 38 (-61.22%)
Mutual labels:  modularity
frog
Frog is an integration of memory-based natural language processing (NLP) modules developed for Dutch. All NLP modules are based on Timbl, the Tilburg memory-based learning software package.
Stars: ✭ 70 (-28.57%)
Mutual labels:  morphology
colony
Implementation of the colony specification for python
Stars: ✭ 23 (-76.53%)
Mutual labels:  modularity
lemma
A Morphological Parser (Analyser) / Lemmatizer written in Elixir.
Stars: ✭ 45 (-54.08%)
Mutual labels:  morphology
ImageMorphology.jl
Morphological operations for image processing
Stars: ✭ 23 (-76.53%)
Mutual labels:  morphology
OpenHebrewBible
Open Hebrew Bible Project; aligning BHS with WLC; bridging ETCBC, OpenScriptures & Berean data on Hebrew Bible
Stars: ✭ 43 (-56.12%)
Mutual labels:  morphology
LabelPropagation
A NetworkX implementation of Label Propagation from a "Near Linear Time Algorithm to Detect Community Structures in Large-Scale Networks" (Physical Review E 2008).
Stars: ✭ 101 (+3.06%)
Mutual labels:  modularity
didactic-bank-application
A simple banking system written in Java used to teach object-oriented programming and best coding practices.
Stars: ✭ 32 (-67.35%)
Mutual labels:  modularity
educational-platform
Modular Monolith Java application with DDD
Stars: ✭ 124 (+26.53%)
Mutual labels:  modularity
KoParadigm
KoParadigm: Korean Inflectional Paradigm Generator
Stars: ✭ 48 (-51.02%)
Mutual labels:  morphology
Basic-Image-Processing
Implementation of Basic Digital Image Processing Tasks in Python / OpenCV
Stars: ✭ 102 (+4.08%)
Mutual labels:  morphology
lion
A simple, modular Discord bot from scratch
Stars: ✭ 15 (-84.69%)
Mutual labels:  modularity
awesome-cytodata
A curated list of awesome cytodata resources
Stars: ✭ 40 (-59.18%)
Mutual labels:  morphology
RivWidthCloudPaper
A Google Earth Engine based algorithm that extracts river centerlines and widths from satellite images
Stars: ✭ 62 (-36.73%)
Mutual labels:  morphology
mlmorph
Malayalam Morphological Analyzer using Finite State Transducer
Stars: ✭ 40 (-59.18%)
Mutual labels:  morphology
Sophie
New repo - https://gitlab.com/SophieBot/sophie
Stars: ✭ 28 (-71.43%)
Mutual labels:  modularity

Learning to Control Self-Assembling Morphologies

NeurIPS 2019 (Spotlight)
Winner of Virtual Creatures Competition at GECCO 2019, Prague

[Project Website] [Demo Video]

Deepak Pathak*, Chris Lu*, Trevor Darrell, Phillip Isola, Alexei A. Efros
University of California, Berkeley
MIT
(* equal contribution)

This is a pytorch based implementation for our paper on learning to control self-assembling agents using deep reinforcement learning. We investigate a modular co-evolution strategy: a collection of primitive agents learns to dynamically self-assemble into composite bodies while also learning to coordinate their behavior to control these bodies. We learn compositional policies to demonstrate better zero-shot generalization. If you find this work useful in your research, please cite:

@inproceedings{pathak19assemblies,
    Author = {Pathak, Deepak and Lu, Chris and Darrell, Trevor and
              Isola, Phillip and Efros, Alexei A.},
    Title = {Learning to Control Self-Assembling Morphologies:
              A Study of Generalization via Modularity},
    Booktitle = {arXiv preprint arXiv:1902.05546},
    Year = {2019}
}

Installation and Usage

  1. Setting up repository
git clone https://github.com/pathak22/modular-assemblies.git
cd modular-assemblies/
git clone https://github.com/Unity-Technologies/ml-agents.git
cd ml-agents/
git reset --hard 6c5255e
cd ..
bash envs/setup_env.sh

python3 -m venv assemblyEnv
source $PWD/assemblyEnv/bin/activate
pip install --upgrade pip
  1. Installation

    • Requirements:
      • CUDNN-5.1, CUDA-8.0, Python-3.5
    • Detailed setup, skip to quick setup for exact replication:
    # Install Pytorch from http://pytorch.org/
    pip install http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp35-cp35m-linux_x86_64.whl
    pip install torchvision
    pip install --upgrade visdom
    
    # Install baselines for Atari preprocessing
    pip install gym==0.9.4 # baselines install latest gym first automatically, but latest gym has moved to mujoco5 so first install old gym and then install baselines
    git clone https://github.com/openai/baselines.git
    cd baselines
    git reset --hard b5be53d
    pip install -e .
    
    # Additional packages
    pip install numpy
    pip install matplotlib
    pip install pillow
    pip install opencv-python
    
    # fold
    cd modular-assemblies/src/
    git clone https://github.com/nearai/pytorch-tools.git
    cd pytorch-tools/
    git reset --hard 09dccb2
    python setup.py install
    • Quick setup for exact replication:
    pip install -r requirements.txt
  2. Run code

cd modular-assemblies/src/
python test_env.py

Acknowledgement

Builds upon Ilya Kostrikov's Pytorch PPO implementation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].