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

TRAINING... #173

Open
SaiSurya9999 opened this issue Mar 21, 2019 · 28 comments
Open

TRAINING... #173

SaiSurya9999 opened this issue Mar 21, 2019 · 28 comments

Comments

@SaiSurya9999
Copy link

WhatsApp Image 2019-03-21 at 6 07 26 PM
-- I have few doubts in training all set hardware is assembled and at last came to the training phase.
-- I have uploaded an image where you can see my training track.
-- Should we do the total training session in one execution of collect_training.py..??
-- For each execution there is an npz file created if we use one npz file the previous npz file which we trained is dumped..??
-- Could you give me your 300 images npz file or collection of those so that i can use them and train my model fast with more data.
-- When i place my npz file in model_test pynb file then i get some size error i have uploaded that below.
WhatsApp Image 2019-03-21 at 6 40 25 PM

@hamuchiwa
Copy link
Owner

@SaiSurya9999 Make sure to slow down the car before collecting data, if it runs too fast, the video streaming couldn't keep up.
You can collect multiple times, in training it will loads all files in training_data folder.
This is an old project, I don't even have the car anymore.
Check the input size, in notebook it's 240320, your image may be 120320.

@SaiSurya9999
Copy link
Author

Screenshot_2019-3-24 20 36 29
How to increase the validation accuracy..??
I have uploaded the image of my track where i have drove it from both sides many times approx 350 frames were recorded..But there is no increase in validation accuracy of training..
It is biased to forward please help me @hamuchiwa
WhatsApp Image 2019-03-24 at 8 40 45 PM

@SaiSurya9999
Copy link
Author

SaiSurya9999 commented Mar 24, 2019

I have slowed the vehicle so no problem about speed or stream rate cope up..
Please do help me in time @hamuchiwa i have to complete this project by the end of this month..
Should we delete npz files after training the model i mean they are being stored in folder even after training. so next session of training file will be created and when we train the older files will be combined and trained again...!!

@hamuchiwa
Copy link
Owner

@SaiSurya9999 You can collect multiple times and then train together. If you are satisfied what you have collected, yes, then you need to delete that file before training again.

@Siraj95Abudaber
Copy link

Siraj95Abudaber commented Mar 26, 2019

Hi
I have the same problem i can't increase the accuracy of my training i tried a lot but i can't get above 70%
could you please upload your .npz so i can try it.
Thanx @hamuchiwa

@hamuchiwa
Copy link
Owner

@Sirajabudabe Since it's duplicated with another thread of yours, I'll close the other one. Can you upload your data?

@SaiSurya9999
Copy link
Author

SaiSurya9999 commented Mar 27, 2019

How to reset the neural network model as a baby to train it again with nice balanced data..??
Thank you @hamuchiwa..!!

@hamuchiwa
Copy link
Owner

@SaiSurya9999 All model related stuff is in model.py, you can create your own architecture there. Every time you run model_training.py, it will overwrite the old one with the same file name nn_model.xml.

@SaiSurya9999
Copy link
Author

SaiSurya9999 commented Mar 28, 2019

@hamuchiwa What is your training accuracy when you successfully made the car play with corners..??
(I mean car taking successful turns at right point.)

@Siraj95Abudaber
Copy link

Siraj95Abudaber commented Mar 28, 2019

@hamuchiwa https://drive.google.com/drive/folders/1D2WbSvCy1LnNEoIAA69qk_IvJFVrXvgO
or if you can send me your E-mail!

@hamuchiwa
Copy link
Owner

@Sirajabudabe Can you remove the permission, I'll let you know after downloading, then you can delete the file.

@Siraj95Abudaber
Copy link

Siraj95Abudaber commented Mar 31, 2019

https://drive.google.com/file/d/1kcK2YEr8PdTN50MhcPSfWqxI0GHSEC-a/view?usp=sharing
could you please run it on your neural network and tell me what you got @hamuchiwa

@hamuchiwa
Copy link
Owner

@Sirajabudabe I have uploaded a jupyter notebook using keras. After a quick run, as you can see from the plots, the model is overfitting, I'll leave it to you for tuning. Good luck!
Untitled.ipynb.zip

@Siraj95Abudaber
Copy link

@hamuchiwa sorry but am not really familiar to deep learning and machine learning techniques , how can i run this model
is the problem in cv2 neural network ?
sorry again for my many questions

@PuriHa
Copy link

PuriHa commented Apr 2, 2019

Then file Untitled.ipynb.zip, how does it apply to training?

@hamuchiwa
Copy link
Owner

@Sirajabudabe @PuriHa It's in jupyter notebook format, unzip it, then open it in jupyter. To open it, start a command line window, then do jupyter notebook. Once the browser is open, navigate to the file. For more details about jupyter, you can refer to the doc or search some tutorials.

@PuriHa
Copy link

PuriHa commented Apr 3, 2019

@hamuchiwa And what should I do with the file Untitled.ipynb,zip? I should try to run the code in the file? I don't know, how does it apply to training? How can I run the code in a file jupyter notebook? And what are the steps? Why didn't the code be put in the Github? Provide clear codes and procedures.
thank you for answers @hamuchiwa

@rahulkvr
Copy link

rahulkvr commented Apr 9, 2019

@hamuchiwa the Untitled.ipynb.zip gives trained model as model_test.h5.
In the rc_driver_nn_only.ipynb the trained model named nn_model.xml is used. What are the changes required in rc_driver_nn_only.ipynb for taking model_test.h5. file.

@Siraj95Abudaber
Copy link

@hamuchiwa My question is the same as @rahulkvr how to use the Untiteld.ipynb file in rc_driver_nn_only ???

@hamuchiwa
Copy link
Owner

@Sirajabudabe I think I have included the code on how to load model and make predictions in the notebook. Since the model is in Keras not in OpenCV, so you need to modify the code of loading and predicting in rc_driver_nn_only.py.

@rahulkvr
Copy link

@hamuchiwa Sir can you please share the modified jupyter notebook file with code for loading and predicting using Keras.

@hamuchiwa
Copy link
Owner

@rahulkvr It's in the notebook.

@rahulkvr
Copy link

@hamuchiwa I want to run the car using the saved model of keras. But in the rc_driver_nn_only.py it is not possible. Can you modify that particular python code and upload here.

@Siraj95Abudaber
Copy link

@SaiSurya9999 could you please upload your training model, or the parameters of neural network (hidden layers iterations ....etc) thanks in advance @hamuchiwa

@Razor456
Copy link

hello
we need help guys @hamuchiwa
Our rc car is just turning around after doing the training ! we got 59% accuracy after the training !

One more porblem we've had is our rc car speed. how did you slow down your rc car's speed ?

Best regards

@Siraj95Abudaber
Copy link

Dear @SaiSurya9999 could you please contact me on e-mail : [email protected]

@9salman7
Copy link

9salman7 commented Mar 2, 2020

@rahulkvr did you manage to solve the issue?

@rahulkvr
Copy link

rahulkvr commented Mar 3, 2020

@rahulkvr did you manage to solve the issue?

No, I couldn't resolve it.

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

No branches or pull requests

7 participants