TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10 icon indicating copy to clipboard operation
TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10 copied to clipboard

Tensorflow model detecting wrong objects?

Open msarfrazcss opened this issue 7 years ago • 12 comments
trafficstars

Hi, i am new to tensorflow object detection API, i trained a model with 900 images of shoes, i put 20%(180 images) into test forlder and 80%(720 images into train folder), but after training my trained model detecting other objects with shoes, below is the screen shot, anyone can help me please, where i am wrong....

I am training this model on MAC Machine, and using faster_rcnn_inception_v2_coco_2018_01_28 model to train my model, I follow below(Your) link to train my model:

https://github.com/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10/tree/d1c5b59803543e48362c27c48d704d4b0d92d135

and one more question when i run python on this model on terminal webcam becomes very slow why? (I have no graphics card in my MAC Machine)

Thanks in advance...

screen shot 2018-10-24 at 10 18 35 am screen shot 2018-10-24 at 10 30 58 am

msarfrazcss avatar Oct 24 '18 05:10 msarfrazcss

I would be also interested in getting to know what might be causing this issue. I had similar problem. I tried to recognise between different types of Gatorade isotonic drinks (6 classes in total), but my model ended up recognising most of bottles as "blue gatorade" with very high confidence, with few cases of "yellow gatorade" (all were incorect) (while the remainign categories were: orange, red, green and bright yellow)

janekzimoch avatar Nov 13 '18 00:11 janekzimoch

A bit irrelevant, how you configured Python path on mac i try to configure python path on mac and its not working, share it with me. For your question may be something is wrong with your data labelling, you can check that

tanvirahmd1 avatar Nov 21 '18 08:11 tanvirahmd1

I set python path by this command:

export PYTHONPATH=/Users/cssjockey-13/tensorflow1/models:/Users/cssjockey-13/tensorflow1/models/research:/Users/cssjockey-13/tensorflow1/models/research/slim

It is working for me.

msarfrazcss avatar Nov 21 '18 09:11 msarfrazcss

well thanks, i had used many ways but nothing is worked for me on mac, let me try this as well

tanvirahmd1 avatar Nov 25 '18 09:11 tanvirahmd1

i have trained the algorithm in windows and still the same problem is coming up. I am also searching for the reason for this

lithin-chandran avatar Nov 26 '18 13:11 lithin-chandran

Hello these are due to false positive detections, while training your models have you added background images to your training dataset? by doing so you can reduce your false detections.

BalajiB3663 avatar Jan 05 '19 08:01 BalajiB3663

Hello these are due to false positive detections, while training your models have you added background images to your training dataset? by doing so you can reduce your false detections.

How can we add background images? Here i have only test and train folder, there is no option to add background images, can you tell me please?

msarfrazcss avatar Jan 07 '19 04:01 msarfrazcss

Refer this link Re: [tensorflow/models] SSD resnet50 fpn model not detecting at all. (#5954)

On Mon 7 Jan, 2019, 10:10 msarfrazcss <[email protected] wrote:

Hello these are due to false positive detections, while training your models have you added background images to your training dataset? by doing so you can reduce your false detections.

How can we add background images? Here i have only test and train folder, there is no option to add background images, can you tell me please?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10/issues/175#issuecomment-451820227, or mute the thread https://github.com/notifications/unsubscribe-auth/Abt0-NxOFPzGk50WUdz_vQjZOYC8JL3dks5vAs_VgaJpZM4X3LVa .

BalajiB3663 avatar Jan 07 '19 04:01 BalajiB3663

Hello @msarfrazcss , i have the same problem with yours. Did you solved your problem? If you solved it, how did you solved it? Can you please explain to me?

mehmetsoylu avatar Apr 18 '20 23:04 mehmetsoylu

i also need the solution

ihtisham1211 avatar May 03 '20 16:05 ihtisham1211

i got the same problem

ttducqt avatar Jun 27 '20 10:06 ttducqt

I'm facing the same issue too.. Did anyone figure this out?

amyadamslou avatar Oct 07 '21 12:10 amyadamslou