hamuchiwa / AutoRCCar

OpenCV Python Neural Network Autonomous RC Car
BSD 2-Clause "Simplified" License
3.34k stars 1.47k forks source link

TURN RIGHT #162

Open hobnob453 opened 5 years ago

hobnob453 commented 5 years ago

I have followed the instructions as part of a college project, after managing to set up all of the python code, i have trained the car with 6 .npz files which modify the nm_model.xml, however when i run the main program (rc_driver) along with stream and ultrasonic files on the PI, the car just wants to turn right all of the time, i will continue to add training data but could do with some guidance as to where i could be going wrong? Thanks,

kxrf97 commented 5 years ago

i also face the same problem.......

kxrf97 commented 5 years ago

did you manage to tackle it?>

hobnob453 commented 5 years ago

Having another go tonight, just gonna train it some more, glad its not just me doing something stupid, how much ‘collect_training’ have you done?

On 6 Mar 2019, at 16:22, kxrf97 notifications@github.com wrote:

did you manage to tackle it?>

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

sundar19 commented 5 years ago

I think something wrong with your wheel alignment maybe and check in the Python shell for forward commands and inspite of forward commands sent your car turns right then it's wheel alignment problem!

kxrf97 commented 5 years ago

I collect around 300 images, and my accuracy is around 60+ after training.... But my car just keep going randomly

kxrf97 commented 5 years ago

@sundar19 Wheel alignment are having no problem, the command prompt keep showing right , should not be the alignment problem. Did you manage to finish this project.

hobnob453 commented 5 years ago

Yes my shell is sending right commands, only right commands

Sent from my iPhone X

On 7 Mar 2019, at 06:23, kxrf97 notifications@github.com wrote:

@sundar19 Wheel alignment are having no problem, the command prompt keep showing right , should not be the alignment problem. Did you manage to finish this project.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

sundar19 commented 5 years ago

@kxrf97 I used Cascade classifier of left direction sign to finish my project . The neural network you use will be efficient only when the streaming rate is good. Switch off the car and move the car by hand whether the camera lags,if that's the case Cascade classifier is the only solution

kxrf97 commented 5 years ago

Can you send me any tutorial about that? How you use cascade classifier to finish the project. My streaming rate is abit laggy... I guess no smooth as i think...

kxrf97 commented 5 years ago

Normally cascade classifier is use for object detection. How can you apply on the track

hobnob453 commented 5 years ago

Yes i would love to know how you changed the classifier, again its not the smoothest but the connection should be fast enough.

Sent from my iPhone X

On 8 Mar 2019, at 05:58, kxrf97 notifications@github.com wrote:

Normally cascade classifier is use for object detection. How can you apply om the track

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

sundar19 commented 5 years ago

https://github.com/ryangmolina/rpi-car-arrow-detection-using-cascade-classifier?files=1

Take Cascade classifier for left or right sign from this link and include your right or left turn functions in rc_driver_helper.py

somalwar commented 5 years ago

Yes I am facing the same issue, it always wants to make a 'right' turn. However on a different training set, it always made a 'forward' prediction. And on yet another one, where I trained it to only go 'forward' or 'left', it did output 'forward' and 'left' but the predictions were not correct at all. Not sure if its a training problem or something else.

VishalWrench commented 5 years ago

@somalwar have u solved that problem

somalwar commented 5 years ago

@VishalWrench No I haven't. I plan to use Tensorflow in the future, maybe that will give better results.

VishalWrench commented 5 years ago

@somalwar thanks for replying yeah i am also trying to implement this in keras

jhadkaterji commented 5 years ago

@somalwar @VishalWrench Did either of you guys end up figuring out how to get the car to stop just going right all the time? was it an issue with the training?

jhadkaterji commented 5 years ago

@somalwar @VishalWrench Did either of you guys end up figuring out how to get the car to stop just going right all the time? was it an issue with the training?

Im having the same issue and cant figure out whats wrong