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

PLEASE HELP - TRAINING ISSUE #187

Open
jhadkaterji opened this issue Apr 1, 2019 · 43 comments
Open

PLEASE HELP - TRAINING ISSUE #187

jhadkaterji opened this issue Apr 1, 2019 · 43 comments

Comments

@jhadkaterji
Copy link

I am trying to follow this for a project and am having a serious issue.

I run the training model process and guide through the track several times. Then, when it comes time to have the car drive itself, it only wants to go right. It will just go right forever.

I saw somebody else have this problem but no solution presented. Please help!!

@Devanshice020
Copy link

have you trained the car only for right?

@jhadkaterji
Copy link
Author

@Devanshice020

No I have not. I have ran the training with a track the looks like this:(attached images).

IMG_5788
IMG_5787

The way I trained it is by running the data collection, and driving my car through it with the keyboard -
(mostly driving it forward for a while until i hit the turn where i start to drive it right). Then i take that saved npz file and run the model and it creates it giving me an accuracy percentage.

Whenever I do this and have the car try to run on its own, it just goes right forever. No matter what the camera sees.

I even tried using data from a very recent thread:
( https://drive.google.com/file/d/1kcK2YEr8PdTN50MhcPSfWqxI0GHSEC-a/view )

And still the car was not doing the right thing. I have no idea what the issue could be. Please help!

@Devanshice020
Copy link

how many frames have you collected?

@jhadkaterji
Copy link
Author

@Devanshice020 I collected around 300 frames and also tried with somebody else's data (354 frames) and the car still would only go right, in a donut.

@Devanshice020
Copy link

first only collect and train for forward if it works then start training for right, left.

@jhadkaterji
Copy link
Author

@Devanshice020 I have done this. When I trained the car to only go forward, it would go forward. Then, as I changed the track, I noticed that as soon as there was a single frame that involved right, it would go only right

@Devanshice020
Copy link

try for atleast 1000 frames for each collection for different paths than it will work properly.

@Siraj95Abudaber
Copy link

@jhadkaterji i have the same problem !!!! how much is your training accuracy ?
@Devanshice020 could you explain how ? and what is the problem exactly ??

@PuriHa
Copy link

PuriHa commented Apr 2, 2019

I encountered the same problem as you. And I take the time to fix the problem for almost a month And finally it can’t be. I am frustrated.

@jhadkaterji
Copy link
Author

@Devanshice020 @PuriHa @Sirajabudabe It is so frustrating! I just want to know what I am doing wrong! I have come so far. Somebody, anybody please help us!

@Siraj95Abudaber
Copy link

@hamuchiwa any ideas what is the problem ??

@Siraj95Abudaber
Copy link

@PuriHa how did you solve it ??

@PuriHa
Copy link

PuriHa commented Apr 3, 2019

I don’t know. My problem is The rc car doesn’t follow the track. unstable, Which I don’t understand why.
Please help me @hamuchiwa It’s my a Bachelor's degree project. And I only have 2 weeks left.

@Devanshice020
Copy link

@PuriHa What is your training and validation accuracy?

@hamuchiwa
Copy link
Owner

@Sirajabudabe @PuriHa If the opencv model doesn't work for you, try to create a CNN in Tensorflow/Keras. I have included an example in #173 in case you haven't tried yet.

@jhadkaterji
Copy link
Author

@hamuchiwa I have went to your post and can not see that that CNN in tensor flow. Are you sure you linked the correct post?

@hamuchiwa
Copy link
Owner

@MyFirstRoboticProject
Copy link

Make the track as narrow as possible and make your corners more extreme (at an angle more than 75 degrees)

@Devanshice020
Copy link

Have you trained the car successfully @MyFirstRoboticProject

@jhadkaterji
Copy link
Author

jhadkaterji commented Apr 5, 2019 via email

@MyFirstRoboticProject
Copy link

I trained my car to 93% validation accuracy. But due to 3 sec lag in video it doesn't turn right or left when it needs to. When I disable the controller and move it manually towards the corner and stop there it then changes from forward to right, so my training is correct. The issue is the camera delay. If that is fixed my project is complete.

@MyFirstRoboticProject
Copy link

And yeah you don't need 1000 samples or otherwise the system will get overtrained. About 200 samples was enough for me, but those samples must be carefully taken and balanced (about equal number of forward, right and left direction frames).

@Devanshice020
Copy link

have you changed anything in this code? @MyFirstRoboticProject

@MyFirstRoboticProject
Copy link

Nothing really

@Devanshice020
Copy link

have you followed any edge detection algorithm? @MyFirstRoboticProject

@Devanshice020
Copy link

Ohk, thank you @MyFirstRoboticProject

@Devanshice020
Copy link

How did you captured the image? can you please provide any picture of your track for left turn, right turn.
i think the problem is with the camera angle but i am pretty sure that i had tilted the camera to make easy for the camera to view just the tracks but still i ask you how did you kept the camera and pls provide some sample data of yours i mean the images that are captured. @MyFirstRoboticProject

thanks in advance.

@MyFirstRoboticProject
Copy link

Don't tilt the camera to just view the tracks! I think you should read zheng wang's blog again. The upper half of the image frame is not considered in training only the lower half, so you can keep your camera almost vertical

@Siraj95Abudaber
Copy link

@MyFirstRoboticProject could you please upload your training_data file , I tried everything and the accuracy wont go above 70% !!

@Siraj95Abudaber
Copy link

@jhadkaterji Did you find solution to this problem ??

@Siraj95Abudaber
Copy link

@MyFirstRoboticProject can you please contact me on my e-mail : [email protected]

@sham1406
Copy link

I am trying to follow this for a project and am having a serious issue.

I run the training model process and guide through the track several times. Then, when it comes time to have the car drive itself, it only wants to go right. It will just go right forever.

I saw somebody else have this problem but no solution presented. Please help!!

I am trying to follow this for a project and am having a serious issue.

I run the training model process and guide through the track several times. Then, when it comes time to have the car drive itself, it only wants to go right. It will just go right forever.

I saw somebody else have this problem but no solution presented. Please help!!

This must be very easy. Just follow simple rules provided at Gardenation. it will help you

@sham1406
Copy link

hello there if you want information regarding the issue. Do checkout Gardenation

@AishaMushtaq0
Copy link

If you're seeking information about the issue, feel free to ask.

@AishaMushtaq0
Copy link

Avoid tilting the camera solely to capture the tracks! I recommend revisiting Zheng Wang's blog. In training, only the lower half of the image frame is considered, so it's best to keep your camera almost vertical.

@AishaMushtaq0
Copy link

have you trained the car only for right?

Amazing

@AishaMushtaq0
Copy link

Got it, keep the camera almost vertical to capture the lower half of the image frame, as only that part is considered in training. I'll review Zheng Wang's blog for further guidance.

@akbaraliseo
Copy link

Every thing working well you need to only turn your camera

@AishaMushtaq0
Copy link

Keep the camera straight; focus on the lower half for training. Check Zheng Wang's blog for details.

@AishaMushtaq0
Copy link

Você está certo em verificar com antecedência! Caspio normalmente lida muito bem com a importação de bancos de dados do Access, mas há algumas considerações com caracteres especiais como '-' e '()' em nomes de campos. A Caspio pode ajustá-los durante a importação, por isso é aconselhável antecipar algumas mudanças. Quanto aos campos com o tipo de dados 'Objeto OLE', o Caspio geralmente os converte em tipos de dados adequados para sua plataforma, geralmente em Binary Large Objects (BLOBs) ou similares. É importante notar que durante a importação, pode ser necessário mapear ou ajustar algumas configurações de campo para garantir a compatibilidade, mas no geral, a funcionalidade de importação do Caspio foi projetada para agilizar o processo. Em caso de dúvida, uma importação experimental com um subconjunto dos seus dados pode fornecer informações valiosas antes de se comprometer com uma importação completa. Whatsapp GB Atuailzado

@akbaraliseo
Copy link

good

@akbaraliseo
Copy link

The Duplicate FESCO Bill service allows Faisalabad Electric Supply Company (FESCO) customers to easily obtain a copy of their electricity bill online. By entering their reference number on the FESCO website, users can quickly access and download a duplicate bill if the original is lost or misplaced. This convenient feature ensures that customers can manage their billing information without delay, providing a seamless solution for keeping track of their electricity expenses and ensuring timely payments.

@AishaMushtaq0
Copy link

Snaptube para iPhone: Descargar música gratis

Para disfrutar de todas las capacidades de Snaptube APK de forma gratuita, simplemente descarga la aplicación original. Sigue las instrucciones intuitivas y, en poco tiempo, tendrás acceso a una amplia gama de videos y música, listos para explorar al alcance de tu mano. Con Snaptube, el mundo del entretenimiento en línea se vuelve aún más accesible y divertido.

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

10 participants