Comments (2)
from jetson-reinforcement.
I make the code on my TX2 , and Verifying PyTorch like this:
import torch #####not pytorch
`nvidia@tegra-ubuntu:~$ python
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import torch #####not pytorch
print(torch.version)
0.3.0b0+af3964a
print('CUDA available: ' + str(torch.cuda.is_available()))
CUDA available: True
a = torch.cuda.FloatTensor(2).zero_()
print('Tensor a = ' + str(a))
Tensor a =
0
0`
the demos below work well.
python gym-DQN.py
python gym-RL.py --env=LunarLander-v2 --render
./fruit
./gazebo-arm.sh
$ ./gazebo-rover.sh
but
$ cd jetson-reinforcement/python/A3G $ python main.py --env BipedalWalkerHardcore-v2 --workers 8 --gpu-ids 0 --amsgrad True --model CONV --stack-frames 4
I get some thing like
nvidia@tegra-ubuntu:~$ cd jetson-reinforcement/python/A3Gnvidia@tegra-ubuntu:~/jetson-reinforcement/python/A3G$ python main.py --env BipedalWalkerHardcore-v2 --workers 8 --gpu-ids 0 --amsgrad True --model CONV --stack-frames 4 /usr/local/lib/python2.7/dist-packages/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown. warnings.warn(warning, RequestsDependencyWarning) 2018-08-31 21:29:51,935 : load: True 2018-08-31 21:29:51,937 : tau: 1.0 2018-08-31 21:29:51,937 : stack_frames: 4 2018-08-31 21:29:51,937 : optimizer: Adam 2018-08-31 21:29:51,937 : amsgrad: True 2018-08-31 21:29:51,937 : max_episode_length: 100 2018-08-31 21:29:51,938 : workers: 8 2018-08-31 21:29:51,938 : save_model_dir: trained_models/ 2018-08-31 21:29:51,938 : num_steps: 20 2018-08-31 21:29:51,938 : save_max: True 2018-08-31 21:29:51,938 : seed: 1 2018-08-31 21:29:51,938 : lr: 0.0001 2018-08-31 21:29:51,939 : log_dir: logs/ 2018-08-31 21:29:51,939 : env: BipedalWalkerHardcore-v2 2018-08-31 21:29:51,939 : shared_optimizer: False 2018-08-31 21:29:51,939 : load_model_dir: trained_models/ 2018-08-31 21:29:51,940 : model: CONV 2018-08-31 21:29:51,940 : gpu_ids: [0] 2018-08-31 21:29:51,940 : gamma: 0.99 Process Process-4: Process Process-3: Traceback (most recent call last): Traceback (most recent call last): File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() self.run() File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) self._target(*self._args, **self._kwargs) File "/home/nvidia/jetson-reinforcement/python/A3G/train.py", line 64, in train File "/home/nvidia/jetson-reinforcement/python/A3G/train.py", line 64, in train player.env.render() player.env.render() File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 153, in render File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 153, in render return self._render(mode=mode, close=close) return self._render(mode=mode, close=close) File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 285, in _render File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 285, in _render return self.env.render(mode, close) return self.env.render(mode, close) File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 153, in render File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 153, in render return self._render(mode=mode, close=close) return self._render(mode=mode, close=close) File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 285, in _render File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 285, in _render return self.env.render(mode, close) return self.env.render(mode, close) File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 153, in render File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 153, in render return self._render(mode=mode, close=close) return self._render(mode=mode, close=close) File "/usr/local/lib/python2.7/dist-packages/gym/envs/box2d/bipedal_walker.py", line 440, in _render File "/usr/local/lib/python2.7/dist-packages/gym/envs/box2d/bipedal_walker.py", line 440, in _render from gym.envs.classic_control import rendering from gym.envs.classic_control import rendering File "/usr/local/lib/python2.7/dist-packages/gym/envs/classic_control/rendering.py", line 23, in <module> File "/usr/local/lib/python2.7/dist-packages/gym/envs/classic_control/rendering.py", line 23, in <module> from pyglet.gl import * from pyglet.gl import * File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/__init__.py", line 100, in <module> File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/__init__.py", line 100, in <module> from pyglet.gl.lib import GLException from pyglet.gl.lib import GLException File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/lib.py", line 143, in <module> File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/lib.py", line 143, in <module> from pyglet.gl.lib_glx import link_GL, link_GLU, link_GLX from pyglet.gl.lib_glx import link_GL, link_GLU, link_GLX File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/lib_glx.py", line 50, in <module> File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/lib_glx.py", line 50, in <module> gl_lib = pyglet.lib.load_library('GL') gl_lib = pyglet.lib.load_library('GL') File "/usr/local/lib/python2.7/dist-packages/pyglet/lib.py", line 131, in load_library File "/usr/local/lib/python2.7/dist-packages/pyglet/lib.py", line 131, in load_library libname = self.find_library(name) libname = self.find_library(name) File "/usr/local/lib/python2.7/dist-packages/pyglet/lib.py", line 349, in find_library File "/usr/local/lib/python2.7/dist-packages/pyglet/lib.py", line 349, in find_library result = ctypes.util.find_library(path) result = ctypes.util.find_library(path) File "/usr/lib/python2.7/ctypes/util.py", line 285, in find_library File "/usr/lib/python2.7/ctypes/util.py", line 285, in find_library return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name)) return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name)) File "/usr/lib/python2.7/ctypes/util.py", line 103, in _findLib_gcc File "/usr/lib/python2.7/ctypes/util.py", line 103, in _findLib_gcc stdout=subprocess.PIPE) stdout=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 711, in __init__ File "/usr/lib/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1235, in _execute_child errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1235, in _execute_child self.pid = os.fork() self.pid = os.fork() OSError: [Errno 12] Cannot allocate memory OSError: [Errno 12] Cannot allocate memory nvidia@tegra-ubuntu:~/jetson-reinforcement/python/A3G$
Are there anything I miss ?
from jetson-reinforcement.
Related Issues (20)
- Error running the Gazebo Arm example HOT 2
- How to install conda in TX2?
- Only for TX2? Can i install on TK1?
- CUDA too many resources
- jetson-reinforcement/build/pytorch/torch/_thnn/utils.py:1: RuntimeWarning: Parent module 'torch._thnn' not found while handling absolute import
- problem building pytorch with jetson tx2 HOT 7
- Patches needed to make this work on L4T 4.4.38-tegra HOT 1
- I need pytorch == 0.3.1
- xavier support? HOT 5
- opencv luarocks install camera
- CMakePreBuild.sh
- run ./gazebo-arm.sh
- Error with Jetson Nano HOT 1
- Error Jetson nano to launch gym-DQN.py
- Issue compiling in Jetson TX2
- Error running catch executable
- torch7 move to ATen? HOT 2
- Building from Source fails HOT 1
- Makefile:83: recipe for target 'all' failed
- Supported platform HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jetson-reinforcement.