Skip to content

makramchahine/flex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flex: Fly lexical

General

Setup

conda create -n flex python==3.9
conda activate flex
pip install ipdb
# install torch; check https://pytorch.org/get-started/locally/
pip install torch torchvision torchaudio

Learning

Setup

Installation.

pip install hydra-core==1.3.2
pip install hydra_colorlog --upgrade
cd learning
pip install -e .
pip install tensorboard
pip install cvxopt
pip install pyrootutils
pip install h5py
pip install salesforce-lavis # for BLIP
pip install vit-pytorch==1.2.4 # transformer-based policy

copy learning/src/models/components/extractors/eva_vit.py to installation lavis/model/eva_vit.py (probably @ ~/miniconda3/envs/flex/lib/python3.9/site-packages/lavis/models/eva_vit.py)

Setup paths.

export DATA_DIR=<directory-of-dataset>
export LOG_DIR=<directory-to-store-outputs>

You can also edit and run scripts/setup_macro.sh.

Workflow

  • Go to learning/.
  • Develop datamodule with testing script in scripts/test_datamodule.sh.
  • Develop model with testing script in scripts/test_model.sh.
  • Develop module with testing script in scripts/test_module.sh.
  • Set HYDRA_FULL_ERROR=1 to get traceback for debugging.

Run

Training.

$ bash scripts/train_flight.sh # you can specify directory name in bash arguments

Gym-Pybullet-Drone

Installation

Make sure to checkout on the flex branch and install the packages below

cd gym-pybullet-drone
git checkout flex
python -m pip install --upgrade "pip<23.1"
pip install --upgrade setuptools==66
pip install -e .

Couple of packages are required for running some of the code.

pip install marshmallow
pip install arguments
pip install future
pip install consoleprinter

Make sure you keep your torch version from flex installation. Above might change the torch version, so you might need to reinstall it.

Move custom assets to conda default installation (ugly)

cp -r gym_pybullet_drones/assets/* ~/miniconda3/envs/flex/lib/python3.9/site-packages/pybullet_data/

About

Fly lexical

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published