Setup
Dependency Installation and Repository Setup
First, clone the repository.
The original author suggests using mamba
or conda
for environment creation.
mamba create -p ./env -f diffusion_policy/conda_environment.yaml
mamba activate ./env
# Pin version to avoid ImportError("cannot import name 'cached_download' from 'huggingface_hub'").
pip install huggingface_hub==0.11.1
# Uncomment this if you want to build the documentation.
# pip install mkdocs-material
Patching and Installing real-stanford/diffusion_policy
[!NOTE] The original
real-stanford/diffusion_policy
repository uses a flat layout instead of a more standard,src
-based one. In addition, the__init__.py
files are not presented in any subdirectories that contain python files 1. This makes it difficult to install the repository as a package usingpip install
. Therefore, I created the missing__init__.py
files (plus some other changes) and save them as patches for others to use.
Apply the patches and install the repository as a package using the following commands.
Documentation
All documentation is written in plain markdown. MkDocs is used as the static site generator (SSG) to build the documentation. The theme used is Material for MkDocs.
To build it for deployment, run the following command.
The documentation is then available at site/index.html
.
-
I suspect this is because the original author is using
hydra
for configuration management. ↩