Skip to content

matteoguarrera/planning

Repository files navigation

Final project CS282A: Diffusion Planning

GitHub stars GitHub forks GitHub repo size in bytes GitHub contributors GitHub license

Authors: Carlo Bosio1, Karim Elmaaroufi2, Margarita Geleta2, Matteo Guarrera2

1 UC Berkeley, Department of Mechanical Engineering

2 UC Berkeley, Department of Electrical Engineering and Computer Science

Description

This repository contains the code for our project on diffusion models for drone motion planning.

Usage

pip install -r requirements.txt

Execution steps

1. Download the pretrained models from the v0.0.1 release

2. Launch training Run the following, if you have the computational power.

  >> python diffusion.py

If not, we suggest using the pretrained model and just do inference.

If you are using a M1 Mac, please execute any jupyter notebook with the following command to enable MPS:

PYTORCH_ENABLE_MPS_FALLBACK=1 jupyter notebook

3. Inference Run the DiffusionInference notebook and visualize one trajectory.

Simulator

For the simulator installation please follow this link.