Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

DQNcar.py MemoryError(Ubuntu18.04) #1525

Closed
yujianyuanhaha opened this issue Nov 10, 2018 · 8 comments
Closed

DQNcar.py MemoryError(Ubuntu18.04) #1525

yujianyuanhaha opened this issue Nov 10, 2018 · 8 comments
Labels

Comments

@yujianyuanhaha
Copy link

OS: Ubuntu18.4
CNTK version 2.5
UE4Editor version: 4.17
Airsim version: 4.18
I finally successfully install the cntk on Ubuntu18.04, and hello_car.py also runs well, while met new issue of MemoryError when call the DQNcar.py, error shown as

/home/jet/anaconda3/envs/py2/lib/python2.7/site-packages/cntk/cntk_py_init.py:47: UserWarning: Unsupported Linux distribution (ubuntu-18.04). CNTK supports Ubuntu 16.04 and above, only.
  warnings.warn('Unsupported Linux distribution (%s-%s). CNTK supports Ubuntu 16.04 and above, only.' % (__my_distro__, __my_distro_ver__))
Connected!
Client Ver:1 (Min Req: 1), Server Ver:1 (Min Req: 1)

Traceback (most recent call last):
  File "DQNcar.py", line 505, in <module>
    agent = DeepQAgent((NumBufferFrames, SizeRows, SizeCols), NumActions, monitor=True)
  File "DQNcar.py", line 270, in __init__
    self._memory = ReplayMemory(memory_size, input_shape[1:], 4)
  File "DQNcar.py", line 35, in __init__
    self._states = np.zeros((size,) + sample_shape, dtype=np.float32)
MemoryError

Anybody got a idea?

@sytelus sytelus added the bug label Nov 16, 2018
@ZhanPython
Copy link

Hi, I meet with the same issue, have you figured it out?

@yujianyuanhaha
Copy link
Author

Hi, I meet with the same issue, have you figured it out?

nope. I later refer to some other open source code in github, tho older library

@ysbsb
Copy link

ysbsb commented May 12, 2019

I have same issue also in DQNdrone.py

@rajat2004
Copy link
Contributor

Is this related to #2226?

@ghost
Copy link

ghost commented Oct 11, 2019

Well how big do you choose your replay buffer to be? I mean I can't fit 1 million samples in there as they did in the paper.

@rajat2004
Copy link
Contributor

I can't say that either :-)
Seems to be trial and error (if this is causing the error)

@zimmy87
Copy link
Contributor

zimmy87 commented Jan 7, 2021

possibly related to #1009

@zimmy87
Copy link
Contributor

zimmy87 commented Jan 15, 2021

Hi, thank you for reporting this issue. This script was recently removed in #3215 and replaced with a new script at \AirSim\PythonClient\reinforcement_learning\dqn_car.py that uses the new OpenAI gym wrapper. I tested the new script locally and it runs for me. Can you retest with the new script and report back if you see any issues?

@zimmy87 zimmy87 closed this as completed Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants