This folder contains the code scripts for the major experiments in our works. It includes:

diff_opt.py All-in-one script for optimizing differentiable reward functions.

mix_opt.py Script for implementing Hybrid-1 and Hybrid-2.

rank_opt.py Script for implementing ZO-SGD.

lgd.py Script for replicating Loss-Guided Diffusion.