wayveai / mile

PyTorch code for the paper "Model-Based Imitation Learning for Urban Driving".
MIT License
330 stars 31 forks source link

Error while running "data_collect.py" #46

Open SExpert12 opened 1 month ago

SExpert12 commented 1 month ago

Hi, I am running code in CARLA 0.9.14 and while data collection I received the error: from gym.wrappers.monitoring.video_recorder import ImageEncoder ImportError: cannot import name 'ImageEncoder' from 'gym.wrappers.monitoring.video_recorder'

Although version is different this error is of carla gym. ImageEncoder is deprecated so how to change code according?

Thanks in advance.

anthonyhu commented 1 month ago

Hey, which gym version as you using? The code was tested with gym=0.17.2

SExpert12 commented 1 month ago

carla gym 1.0.0.

Thanks for quick reply.