tensorflow-yolo icon indicating copy to clipboard operation
tensorflow-yolo copied to clipboard

i want to modify your code for predict one_class target

Open joashchn opened this issue 8 years ago • 3 comments

hi, i want to modify your code for predict one_class target,for example,predict cats,how should i change the code?i did these changed,but it seems wrong 1、modified train.cfg,num_classes=1 df30e6fa-8a3f-4ed7-b2c9-237c2122cb54

2、modified demo.py,i dont understand these code,I think it's probably wrong here 51ead986-5bce-4b89-9b7c-2a9d8f0c722d

joashchn avatar May 11 '17 04:05 joashchn

@joashchn I want to do something like yours, do you solve the problem?

jinian2614 avatar Jun 04 '17 02:06 jinian2614

If you want the network to predict only one class (true / false), you should re-train it for that class only. I you want to use it as it is but detect only one class then you should set an if statement to the class_num variable.

kmonachopoulos avatar Nov 13 '17 15:11 kmonachopoulos

请问你解决了吗,怎么实现的啊,求帮忙,万分感谢

ss199302 avatar Nov 24 '17 03:11 ss199302