IntelLabs / coach

Reinforcement Learning Coach by Intel AI Lab enables easy experimentation with state of the art Reinforcement Learning algorithms
https://intellabs.github.io/coach/
Apache License 2.0
2.33k stars 461 forks source link

Visualization problem #351

Closed DiegoBastosCosta closed 5 years ago

DiegoBastosCosta commented 5 years ago

Hey guys,

I'm new here and I trying to run the "0. Quick Start Guide.ipynb" with visualization

from rl_coach.agents.clipped_ppo_agent import ClippedPPOAgentParameters 
from rl_coach.environments.gym_environment import GymVectorEnvironment 
from rl_coach.graph_managers.basic_rl_graph_manager import BasicRLGraphManager
from rl_coach.graph_managers.graph_manager import SimpleSchedule 
from rl_coach.base_parameters import VisualizationParameters 
graph_manager = BasicRLGraphManager( 
    agent_params=ClippedPPOAgentParameters(), 
    env_params=GymVectorEnvironment(level='CartPole-v0'), 
    schedule_params=SimpleSchedule(), 
    vis_params= VisualizationParameters(render= True)
)
graph_manager.improve() 

And I got this error:

File "/home//anaconda3/lib/python3.7/site-packages/gym-0.12.1-
py3.7.egg/gym/envs/classic_control/rendering.py", line 105, in render
arr = np.frombuffer(image_data.data, dtype=np.uint8)
AttributeError: 'ImageData' object has no attribute 'data'

Anyone can help me?

gal-leibovich commented 5 years ago

This shouldn't happen. Chances are that this is some incompatibility with the Python packages installed on your system (you're using Anancoda with Python3.7). Could you please follow Coach's installation procedure here, and report back if this issue still occurs?

DiegoBastosCosta commented 5 years ago

This shouldn't happen. Chances are that this is some incompatibility with the Python packages installed on your system (you're using Anancoda with Python3.7). Could you please follow Coach's installation procedure here, and report back if this issue still occurs?

Thanks, man! I will try =) Maybe I forgot something