p-christ / Deep-Reinforcement-Learning-Algorithms-with-PyTorch

PyTorch implementations of deep reinforcement learning algorithms and environments
MIT License
5.56k stars 1.19k forks source link

SpaceInvaders(SAC_Discrete) : Error #52

Open FarhaParveen919 opened 4 years ago

FarhaParveen919 commented 4 years ago

Dear Petros,

Thank you very much for the implementations and it is very useful. I was able to successfully execute the code in the file Cart_Pole.py. I am now am trying to run the Space_Invaders.py file with SAC_Discrete, but had received the following error.

AttributeError: 'LazyFrames' object has no attribute 'size'.

This same error persists for other games in Atari environment(Road_Runner,Pong etc.) as well as for other methods (SAC_Discrete, DDQN, DQN etc). I have also installed Atari_py of version : 0.2.6.

It would be very helpful if you could provide your suggestions/insights on the error and methods to fix it. I have attached the python file and a snapshot of the error with this request.

Thanks, Farha Parveen Space_Invaders.txt ![ErrorFile_SpaceInvaders_SAC(Discrete)](https://user-images.githubusercontent.com/56920928/80626164-a4ac7a00-8a13-11ea-81fb-0e9096dc4b0d.png

lucifer2859 commented 3 years ago

Excuse me, have you finally solved this problem?

lezhang-thu commented 3 years ago

+1 error also for SpaceInvaders + SAC_Discrete. So this now makes things harder to be verified for the results in the SAC_Discrete arXiv preprint paper. (Paper: Soft Actor-Critic for Discrete Action Settings)

sunchipsster1 commented 1 year ago

Hello! I have the same problem AttributeError: 'LazyFrames' object has no attribute 'size'.

Any help greatly appreciated! :)

fry404006308 commented 1 year ago

您好,我是范仁义,您的邮件我已经收到,我会尽快处理,谢谢。