Comments (7)
This is the exact error message:
Epoch: 0, Step: 60, Loss: 6.16457
Traceback (most recent call last):
File "train.py", line 40, in
xs, ys = driving_data.LoadTrainBatch(batch_size)
File "/media/alex/61170219-f8e4-49b1-bb7b-32dd8ba2b6f6/cnn/steering_wheel/Autopilot-TensorFlow/driving_data.py", line 44, in LoadTrainBatch
x_out.append(scipy.misc.imresize(scipy.misc.imread(train_xs[(train_batch_pointer + i) % num_train_images])[-150:], [66, 200]) / 255.0)
IndexError: too many indices for array
from autopilot-tensorflow.
How are you appending the data? Are you making sure to update the .txt file with the new images you added?
from autopilot-tensorflow.
Yes. I updated the files data.txt where the driving_data.py are referencing it.
In fact, I trained it and tested it ok, when the data set is samll (22000 images and angles).
Is there anything to take into account if I want to train with many more images, lets say 500000 or one million. Modifying epochs, batch sizes or any other constant in any script?.
Thanks
from autopilot-tensorflow.
There shouldn't be anything you need to do. For debugging, you can try the following: print(driving_data.num_images) and see what it outputs.
from autopilot-tensorflow.
It is solved now. It turns that some data within my dataset was corrupt, a special character probably. I could not get the exact line failing, as I am talking tens of thousands of lines, so I remove some chunks of data with the corrupted lines and it worked.
So I take then that no manipulation or changes to the model needs to be done to train one million of lines or thousands.
thanks
from autopilot-tensorflow.
It is solved now. It turns that some data within my dataset was corrupt, a special character probably. I could not get the exact line failing, as I am talking tens of thousands of lines, so I remove some chunks of data with the corrupted lines and it worked.
So I take then that no manipulation or changes to the model needs to be done to train one million of lines or thousands.
thanks
Hey Alex,
I am having the same problem and wanted to ask for some clarification- are you saying that some of your image files were corrupt, or that with your .txt file some lines were corrupt?
I've run train.py four separate times and it has failed with this error after 120, 220, 180, then 40 in epoch 0, so I'm trying to think what would cause the inconsistency.
Thanks!
from autopilot-tensorflow.
Dear coral-agc,
I meant to say the corruption was in my .txt files, where I discover lines with no values, or strange values and characters (result of how I created those .txt files with a serial to usb connection) via an arduino. My image files were ok.
I hope that help.
Regards.
from autopilot-tensorflow.
Related Issues (20)
- How to resume a training. HELP after electrical power down, the PC went down too !! HOT 1
- When running run_dataset.py
- Reporting MSE Loss value
- Pointer Update HOT 1
- No such file or directory: 'driving_dataset/data.txt' HOT 1
- The angle representation
- I can't find the paper "End-to-End Learning Driver Policy using Moments Deep Neural Network"
- Missing images in data.txt HOT 1
- Getting same steering angle for "run.mp4" HOT 8
- Upgrade HOT 1
- tun.py scipy error HOT 1
- value nan in loss HOT 1
- issue of steering angle
- TypeError: src data type = 17 is not supported HOT 2
- in tensorboard we can find only loss graph how to find accruacy graph also
- NotFoundError: Key Variable not found in checkpoint
- Hi, where can I find the code for this paper?
- 'NoneType' object is not subscriptable HOT 1
- Acceleration information
- Import "tensorflow.compat.v1" could not be resolved
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 autopilot-tensorflow.