Views
No views yet
action.direction in {0..7})action.distance in [0, 50])camera_0: top-view RGB image, 3x224x224, two-step history (n_obs_steps=2)| Folder | Method | Dataset | Action treatment | Inference steps |
|---|---|---|---|---|
bfn_merged/ | BFN-Hybrid | merged (7835 frames) | true hybrid | 20 |
bfn_orig/ | BFN-Hybrid | original (9229 frames) | true hybrid | 20 |
ddpm_merged/ | DDPM | merged | one-hot continuous (9D) | 100 |
ddpm_orig/ | DDPM | original | one-hot continuous (9D) | 100 |
1pip install -r requirements.txt
2python inference.py --ckpt bfn_merged/latest.ckpt --config bfn_merged/policy_config.yaml1from inference import load_bfn_policy, infer_step
2
3policy = load_bfn_policy("bfn_merged/latest.ckpt", "bfn_merged/policy_config.yaml", "cuda")
4actions = infer_step(policy, cam0_now, cam0_prev, "cuda")
5# actions: List[{"direction": int 0..7, "distance": float 0..50}], len = n_action_steps (8)diffusion_policy.policy.diffusion_unet_hybrid_image_policy.DiffusionUnetHybridImagePolicy
from the diffusion-policy library. Action is a 9D continuous vector: [one_hot(8), distance].
At inference time, take argmax of the first 8 dims for the direction, and the 9th dim for distance.bfn_merged/
latest.ckpt
policy_config.yaml
bfn_orig/
latest.ckpt
policy_config.yaml
ddpm_merged/
latest.ckpt
policy_config.yaml
ddpm_orig/
latest.ckpt
policy_config.yaml
bfn_hybrid_image_policy.py # standalone BFN policy class
policies/base.py # BasePolicy abstract class
networks/base.py # BFNetwork wrapper
inference.py # example loader + inference
requirements.txt