Deep-Reinforcement-Learning-Algorithms-with-PyTorch icon indicating copy to clipboard operation
Deep-Reinforcement-Learning-Algorithms-with-PyTorch copied to clipboard

SpaceInvaders(SAC_Discrete) : Error

Open FarhaParveen919 opened this issue 4 years ago • 4 comments

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

FarhaParveen919 avatar Apr 29 '20 17:04 FarhaParveen919

Excuse me, have you finally solved this problem?

lucifer2859 avatar Dec 16 '20 02:12 lucifer2859

+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)

lezhang-thu avatar Apr 01 '21 01:04 lezhang-thu

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

Any help greatly appreciated! :)

sunchipsster1 avatar Apr 17 '23 00:04 sunchipsster1

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

fry404006308 avatar Apr 17 '23 00:04 fry404006308