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

wrong rendering #24

Closed
Howuhh opened this issue Feb 21, 2022 · 5 comments
Closed

wrong rendering #24

Howuhh opened this issue Feb 21, 2022 · 5 comments

Comments

@Howuhh
Copy link

Howuhh commented Feb 21, 2022

Hi! I want to visualize my agent's rollouts. However, the resulting videos turns out to be strange, I see some color artifacts. Should it be like this?

What I do:

# on each step
render_frames.append(env.render(mode="rgb_array", width=256, height=256))

# at the end
imageio.mimsave(render_path, render_frames, fps=32)

Result:
Screenshot-from-2022-02-21-16-11-13

@cremebrule
Copy link
Member

Hi @Howuhh ,

Thanks for bringing up this issue. Are you using any custom logic beforehand (e.g.: wrappers)? The color artifacts you see are actually the collision meshes for those objects, which should be hidden by default.

@Howuhh
Copy link
Author

Howuhh commented Feb 22, 2022

I have gym.ObservationWrapper which only concats state dim's in one vector (names are in obs_dict below), other methods are not overloaded.

That's how I create env:

def create_env(hdf5_path="data/lift/ph/low_dim.hdf5", render=False):
    obs_dict = {
        "low_dim": [
            "robot0_eef_pos",
            "robot0_eef_quat",
            "robot0_gripper_qpos",
            "object"
        ]
    }
    initialize_obs_modality_mapping_from_dict(obs_dict)

    env_meta = get_env_metadata_from_dataset(hdf5_path)
    env = create_env_from_metadata(
        env_meta=env_meta,
        render=render,
        render_offscreen=False,
        use_image_obs=False
    )
    return env

@cremebrule
Copy link
Member

Can you make sure render_collision_mesh is set to False when you're creating the environment? You can check by simply calling env.render_collision_mesh. (this is a kwarg passed into all environment constructors)

@Howuhh
Copy link
Author

Howuhh commented Feb 23, 2022

Yes, it is definitely set to False, I even make an assert on that.

@amandlek
Copy link
Member

amandlek commented Jul 4, 2023

Closing this issue as it appears to be stale, and also more related to robosuite. Feel free to raise an issue there if problems persist.

@amandlek amandlek closed this as completed Jul 4, 2023
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

No branches or pull requests

3 participants