Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added RGBD diffusion policy implementation as well as Draw Triangle task #643

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

arnavg115
Copy link
Collaborator

DrawTriangle: #638
Diff policy RGBD: #616

MP_SOLUTIONS = {"DrawTriangle-v1": solveDrawTriangle}


def parse_args(args=None):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for adding this file.

we might want to consider having a more unified motion planning interface for all robots with some base classes and run scripts etc., this should be fine for now though!

@@ -50,7 +51,12 @@ def observation(self, observation: Dict):
if self.include_rgb and not self.include_depth:
ret["rgb"] = images
elif self.include_rgb and self.include_depth:
ret["rgbd"] = images
# todo: might not be the best way or the right place to perform this
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the todo. I think this is fine. I normally myself wouldn't merge rgb and depth but this is just for compatibility with a lot of old code from MS2 that assumed "rgbd" as a key.

@@ -0,0 +1,330 @@
import math
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Is it possible to make the outline 1. not transparent and 2. just be below the dots/ink? instead of over it. Looks a bit strange here

to create their own drawing type tasks.
"""

MAX_DOTS = 1010
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reduce this down significantly, maybe to 300. and max episode steps should be down to 300

vis=vis,
base_pose=env.unwrapped.agent.robot.pose,
visualize_target_grasp_pose=vis,
print_env_info=False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you lower the max allowed joint velocities? Right now the result drawings are a bit too fast (dots are too spread out).

maybe lets tune it so that the typical solve time is about the 200-250 steps mark



def make_eval_envs(env_id, num_envs: int, sim_backend: str, env_kwargs: dict, other_kwargs: dict, video_dir: Optional[str] = None, wrappers: list[gym.Wrapper] = []):
class DictFrameStack(GymFrameStack):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this not just inherit the maniskill frame stack wrapper?

I purposely didn't use the original framestack wrapper from gymnasium since it was not properly GPU parallelized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants