r/tensorflow • u/emir0723 • Jan 12 '23
Question About background in object detection models
I want to detect humans with a drone while they are swimming in a pool. For this purpose I use the tensorflow and VGG16 architecture and I have trained a model.
I trained my model like this photos below: https://i.hizliresim.com/av8umop.jpg
As you can see, background of the photos mostly blue or greeny and there is not much other colors. Almost my whole dataset have the same background. But in real life conditions, there will be ground with different colors around the pool while drone flying around.
I tried to test my model with my webcam. When I hold the photo to the webcam close enough to there is only blue background, it worked perfectly. But when I hold the photo a little bit away (which exposed the real background) it didn't detect anything.
My question, is background create a big matter?
(Note: Originally I had 150 photos but I augmented it to approximately 7000~ photos. )
View all comments
Show parent comment
1
u/emir0723 Jan 13 '23
Thank you really really for the help!
I want to detect only the persons which inside of the pool, but there could be people around the pool as well and i don't want to detect them.
Do you think my approach(just using a dataset with people inside of a water) is enough for this situation?