AutoRCCar icon indicating copy to clipboard operation
AutoRCCar copied to clipboard

TRAINING...

Open SaiSurya9999 opened this issue 5 years ago • 28 comments

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

SaiSurya9999 avatar Mar 21 '19 13:03 SaiSurya9999

@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.

hamuchiwa avatar Mar 22 '19 18:03 hamuchiwa

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 avatar Mar 24 '19 15:03 SaiSurya9999

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...!!

SaiSurya9999 avatar Mar 24 '19 15:03 SaiSurya9999

@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.

hamuchiwa avatar Mar 25 '19 13:03 hamuchiwa

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

Siraj95Abudaber avatar Mar 26 '19 17:03 Siraj95Abudaber

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

hamuchiwa avatar Mar 27 '19 14:03 hamuchiwa

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

SaiSurya9999 avatar Mar 27 '19 16:03 SaiSurya9999

@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.

hamuchiwa avatar Mar 27 '19 20:03 hamuchiwa

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

SaiSurya9999 avatar Mar 28 '19 02:03 SaiSurya9999

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

Siraj95Abudaber avatar Mar 28 '19 09:03 Siraj95Abudaber

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

hamuchiwa avatar Mar 29 '19 14:03 hamuchiwa

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

Siraj95Abudaber avatar Mar 31 '19 08:03 Siraj95Abudaber

@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

hamuchiwa avatar Apr 01 '19 15:04 hamuchiwa

@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

Siraj95Abudaber avatar Apr 02 '19 15:04 Siraj95Abudaber

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

PuriHa avatar Apr 02 '19 19:04 PuriHa

@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.

hamuchiwa avatar Apr 02 '19 20:04 hamuchiwa

@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

PuriHa avatar Apr 03 '19 18:04 PuriHa

@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.

rahulkvr avatar Apr 09 '19 19:04 rahulkvr

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

Siraj95Abudaber avatar Apr 10 '19 16:04 Siraj95Abudaber

@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.

hamuchiwa avatar Apr 10 '19 17:04 hamuchiwa

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

rahulkvr avatar Apr 10 '19 18:04 rahulkvr

@rahulkvr It's in the notebook.

hamuchiwa avatar Apr 10 '19 20:04 hamuchiwa

@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.

rahulkvr avatar Apr 11 '19 15:04 rahulkvr

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

Siraj95Abudaber avatar Apr 21 '19 09:04 Siraj95Abudaber

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

Razor456 avatar May 14 '19 10:05 Razor456

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

Siraj95Abudaber avatar Sep 05 '19 10:09 Siraj95Abudaber

@rahulkvr did you manage to solve the issue?

9salman7 avatar Mar 02 '20 16:03 9salman7

@rahulkvr did you manage to solve the issue?

No, I couldn't resolve it.

rahulkvr avatar Mar 03 '20 02:03 rahulkvr