mattbui / dd_qnet Goto Github PK
View Code? Open in Web Editor NEWA Double Dueling Deep Q learning model for turtle bot to navigate in custom gym-gazebo maze
A Double Dueling Deep Q learning model for turtle bot to navigate in custom gym-gazebo maze
Hi, when I train the laser model by running gazebo_turtlebot_maze_color_laser_only.py, I have an error.
In utils.py, "parser.add_argument("--num_pretrain_step", type=int, default=10000)". This definition shows that the first 10,000 steps are all randomly selecting actions. When it exceeds 10,000, it starts to select actions from the network.
But after the steps exceed 10000, I encountered the following error in terminal:
`Done epoch in 10 steps, 10 random steps, Total reward: -191, Total step: 4981, Average loss: 0.0
Setting target 1th
Traceback (most recent call last):
File "laser_learn.py", line 48, in
action = qnet.get_actions(state.reshape(1, -1))[0]
File "/home/nuc/gym-gazebo/dd_qnet/src/laser_model.py", line 55, in get_actions
qvalues = self.get_qvalues(states)
File "/home/nuc/gym-gazebo/dd_qnet/src/laser_model.py", line 47, in get_qvalues
predicted = self.model.predict(states)
File "/home/nuc/.local/lib/python3.5/site-packages/keras/engine/training.py", line 1152, in predict
x, _, _ = self._standardize_user_data(x)
File "/home/nuc/.local/lib/python3.5/site-packages/keras/engine/training.py", line 754, in _standardize_user_data
exception_prefix='input')
File "/home/nuc/.local/lib/python3.5/site-packages/keras/engine/training_utils.py", line 136, in standardize_input_data
str(data_shape))
ValueError: Error when checking input: expected input_1 to have shape (100,) but got array with shape (1,)`
Looking forward to your reply, thank you.
hello, May I ask, can pre-trained models be provided? The link you gave is invalid.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.