isaac-sim / OmniIsaacGymEnvs

Reinforcement Learning Environments for Omniverse Isaac Gym
Other
764 stars 202 forks source link

cartpole camera headless #94

Open domhuh opened 8 months ago

domhuh commented 8 months ago

CartpoleCamera seems to work with headless=False, verified by the exportImages=True. However, with headless=True, the image tensor is None. Is there a fix to this?

kellyguo11 commented 8 months ago

Hi there, the CartpoleCamera example should be able to run with headless=True as well. Are you seeing any errors being reported during training?

domhuh commented 8 months ago

Only warnings are being reported but they are also the same in the headless:False. When I do headless:False, it does work but it gives me an error report: 2023-11-03 17:25:48 [258,677ms] [Error] [omni.kit.app._impl] [py stderr]: c:/.../appdata/local/ov/pkg/isaac_sim-2023.1.0/extscache/omni.pip.torch-2_0_1-2.0.2+105.1.wx64/torch-2-0-1/torchvision/transforms/_functional_pil.py:242: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead. interpolation: int = Image.BILINEAR,

The only change I made was to the headless: True and exportImages: True.

domhuh commented 8 months ago

Sorry I didn't mean to close.