Update README.md
Browse files18 unmodified lines19202122232425262718 unmodified lines4647484950515253545556575818 unmodified lines| Benchmark | Embedding dimension | Diffusion timestep ||------|------|------|| [RLBench (PerAct)]() | 120 | 100 || [RLBench (GNFactor)]() | 120| 100 || [CALVIN]() | 192 | 25 |### Model Description18 unmodified lines<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->TODO### Direct Use<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->TODO## Evaluation18 unmodified lines19202122232425262718 unmodified lines464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979818 unmodified lines| Benchmark | Embedding dimension | Diffusion timestep ||------|------|------|| [RLBench (PerAct)](https://huggingface.co/katefgroup/3d_diffuser_actor/blob/main/diffuser_actor_peract.pth) | 120 | 100 || [RLBench (GNFactor)](https://huggingface.co/katefgroup/3d_diffuser_actor/blob/main/diffuser_actor_gnfactor.pth) | 120| 100 || [CALVIN](https://huggingface.co/katefgroup/3d_diffuser_actor/blob/main/diffuser_actor_calvin.pth) | 192 | 25 |### Model Description18 unmodified lines<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->### Input format3D Diffuser Actor takes the following inputs:1. `RGB observations`: a tensor of shape (batch_size, num_cameras, 3, H, W). The pixel values are in the range of [0, 1]2. `Point cloud observation`: a tensor of shape (batch_size, num_cameras, 3, H, W).3. `Instruction encodings`: a tensor of shape (batch_size, max_instruction_length, C). In this code base, the embedding dimension `C` is set to 512.4. `curr_gripper`: a tensor of shape (batch_size, history_length, 7), where the last channel denotes xyz-action (3D) and quarternion (4D).5. `trajectory_mask`: a tensor of shape (batch_size, trajectory_length), which is only used to indicate the length of each trajectory. To predict keyposes, we just need to set its shape to (batch_size, 1).6. `gt_trajectory`: a tensor of shape (batch_size, trajectory_length, 7), where the last channel denotes xyz-action (3D) and quarternion (4D). The input is only used during training.### Output formatThe model returns the diffusion loss, when `run_inference=False`, otherwise, it returns pose trajectory of shape (batch_size, trajectory_length, 8) when `run_inference=True`.### UsageFor training, forward 3D Diffuser Actor with `run_inference=False````> loss = model.forward(gt_trajectory,trajectory_mask,rgb_obs,pcd_obs,instruction,curr_gripper,run_inference=False)```For evaluation, forward 3D Diffuser Actor with `run_inference=True````> fake_gt_trajectory = torch.full((1, trajectory_length, 7), 0).to(device)> trajectory_mask = torch.full((1, trajectory_length), False).to(device)> trajectory = model.forward(fake_gt_trajectory,trajectory_mask,rgb_obs,pcd_obs,instruction,curr_gripper,run_inference=True)```Or you can forward the model with `compute_trajectory` function```> trajectory_mask = torch.full((1, trajectory_length), False).to(device)> trajectory = model.compute_trajectory(trajectory_mask,rgb_obs,pcd_obs,instruction,curr_gripper)```## Evaluation
README.md+47-7