Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

memory error #2226

Closed
oooohhhhhhh opened this issue Oct 3, 2019 · 2 comments
Closed

memory error #2226

oooohhhhhhh opened this issue Oct 3, 2019 · 2 comments

Comments

@oooohhhhhhh
Copy link

oooohhhhhhh commented Oct 3, 2019

I tried to run DQNdrone.py
(https://github.com/microsoft/AirSim/blob/master/PythonClient/multirotor/DQNdrone.py), and i competed setting the point to fly, but it got error
(MemoryError: Unable to allocate array with shape (500000, 84, 84) and data type float32).
I wonder if you can tell me what mean it is.

appreciate

@rajat2004
Copy link
Contributor

rajat2004 commented Oct 4, 2019

A quick calculation shows it's trying to allocate roughly 13 GB of memory

>>> (1.0 * 500000 * 84 * 84 * 32) / (8 * 1024 * 1024 * 1024)
13.142824172973633

Try modifying the values here - https://github.com/microsoft/AirSim/blob/master/PythonClient/multirotor/DQNdrone.py#L254

I haven't actually ran this till now, so just a suggestion, hope it helps!

@oooohhhhhhh
Copy link
Author

Thank you i will try it later

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants