thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.08k forks source link

TypeError: cannot perform reduce with flexible type #970

Open LisaChe23 opened 5 years ago

LisaChe23 commented 5 years ago

Hi Everyone. So I'm trying to follow the code (https://github.com/thtrieu/darkflow) and I got up to the point where "Reference the tiny-yolo-voc-3c.cfg model when you train. flow --model cfg/tiny-yolo-voc-3c.cfg --load bin/tiny-yolo-voc.weights --train --annotation train/Annotations --dataset train/Images"

My code is "python flow --model cfg/tiny-yolo-vocC.cfg --load bin/tiny-yolo-voc.weights --train --annotation train/Annotations --dataset train/Images"

But then it gives me an error "TypeError: cannot perform reduce with flexible type"

The things I change were changing tiny-yolo-voc's class to 4 and the filter to 45 (following the formula). But I'm not sure how to fix this error? Or even where the error is coming from.

Thanks in advance!

SubhashPavan commented 5 years ago

@LisaChe23 Even I got the same error, were you able to fix it ?