8000 GitHub - talmolab/stac-mjx at viewer
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implementation of STAC using MJX for GPU acceleration. Part of VNL project.

License

Notifications You must be signed in to change notification settings

talmolab/stac-mjx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stac-mjx 🐀

Implementation of STAC using MJX. This is part of the VNL project.

Installation

stac-mjx relies on many prerequisites, therefore we suggest installing in a new conda environment, using the provided environment.yaml:

Create and activate the stac-mjx-env environment:

conda env create -f environment.yaml
conda activate stac-mjx-env

Usage

  1. Update the .yaml files in config/ with the proper information (details WIP).

  2. For new data, first run stac on just a small subset of the data with

    python stac_mjx/main.py test.skip_transform=True

    Note: this currently will fail w/o supplying a data file.

  3. Render the resulting data using mujoco_viz() from within viz_usage.ipynb. Currently, this uses headless rendering on CPU via osmesa, which requires its own setup. To set up (currently on supported on Linux), execute the following commands sequentially:

    sudo apt-get install libglfw3 libglew2.0 libgl1-mesa-glx libosmesa6 
    conda install -c conda-forge glew 
    conda install -c conda-forge mesalib 
    conda install -c anaconda mesa-libgl-cos6-x86_64 
    conda install -c menpo glfw3
    

    Finally, set the following environment variables, and reactivate the conda environment:

    conda env config vars set MUJOCO_GL=osmesa PYOPENGL_PLATFORM=osmesa
    conda deactivate && conda activate base
    

    To ensure all of the above changes are encapsulated in your Jupyter kernel, a create a new kernel with:

    conda install ipykernel
    python -m ipykernel install --user --name stac-mjx-env --display-name "Python (stac-mjx-env)"
    
  4. After tuning parameters and confirming the small clip is processed well, run through the whole thing with python stac-mjx/main.py

About

Implementation of STAC using MJX for GPU acceleration. Part of VNL project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0