- Download and install Anaconda to manage python environment. If you are using Linux, you can download it by
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
Run Miniconda3-latest-Linux-x86_64.sh
and install.
- Create a python 3.12 virtual env
conda create -n madgs312 python=3.12
- Activate this environment
conda activate madgs312
mkdir gs_render
cd gs_render
git clone --recurse-submodules [email protected]:yuhongyi/madrona.git
git clone [email protected]:yuhongyi/Genesis.git
-
Install the following libraries:
sudo apt install libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev mesa-common-dev
-
Install
cd madrona
mkdir build
cd build
cmake ..
make -j
cd ..
pip install -e .
cd ..
-
Install PyTorch first following the official instructions.
-
Install Genesis locally
cd Genesis
pip install -e ".[dev]"
- In
gs_render/Genesis
, run
python examples/rigid/single_franka_batch_render.py
Images will be generated in image_output
- To use ray tracer, change the
use_rasterizer=False
insingle_franka_batch_render.py
renderer = gs.options.renderers.BatchRenderer(
use_rasterizer=True,
batch_render_res=(512, 512),
)