Open dino-su opened 5 years ago
Same problem here, release v2.1.0 on MacOS
I submitted a PR last week to fix this issue. The update broke the tests which I haven't gotten around to fixing yet, but if you git clone https://github.com/csaroff/VoTT.git
and then npm start
, you should be good to go!
@dino-su It doesn't look like your patch fully resolves this issue. If you check out the classes.json file of the cocossd model, you can see that there are missing classes. This is the expected format of the coco classes. You can check my extremely brief PR for the details of the fix.
The issue was still lurking as I cloned the git just today. I was able to get the labels right by changing the src/providers/activeLearning/objectDetection.ts:225 line to
const classId = classes[indexes[index]]; // - 1;
--> So as the labels were off by one in the index, so I removed the -1 and got this working. Maybe this brakes the generally correct functioning, so this is not a general fully tested fix by any means. The same 'one off label' issue was still reproducible using the Pre-trained COCO as well.
Incorrect labels in Active Learning
The problem seems caused by the label offset in
src/providers/activeLearning/objectDetection.ts
and it can be fixed by apply following patch.Patch file
After patch![3](https://user-images.githubusercontent.com/1509875/58536419-0f14d300-8223-11e9-8a7e-945976cea8b6.png)