-
Notifications
You must be signed in to change notification settings - Fork 162
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 and Draw SVG task #643
base: main
Are you sure you want to change the base?
Conversation
MP_SOLUTIONS = {"DrawTriangle-v1": solveDrawTriangle} | ||
|
||
|
||
def parse_args(args=None): |
There was a problem hiding this comment.
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!
mani_skill/utils/wrappers/flatten.py
Outdated
@@ -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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to create their own drawing type tasks. | ||
""" | ||
|
||
MAX_DOTS = 1010 |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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.
Draw svg
DrawTriangle, DrawSVG: #638
Diff policy RGBD: #616