darkflow icon indicating copy to clipboard operation
darkflow copied to clipboard

I can't use pb file

Open A-Nariman opened this issue 7 years ago • 5 comments

I trained my model from scratch without pre-trained weights. Using pb file cannot detect the objects even with threshold 0.1 while the checkpoints are fine and the model can detect the objects perfectly.

I read the all of issues about pb file but there was no solution. I would like to know what the problem is? Is it Darknet or Tensorflow? or something else?

I used the following commands:

  1. Training:

flow --model cfg/train.cfg --train --annotation train/xml --dataset train/png

  1. Saving pb file:

flow --model cfg/train.cfg --load -1 --savepb

  1. Testing with checkpoints:

flow --imgdir sample_img/ --model cfg/train.cfg --load -1

  1. Testing with pb file:

flow --pbLoad built_graph/train.pb --metaLoad built_graph/train.meta --imgdir sample_img/

A-Nariman avatar Aug 22 '18 20:08 A-Nariman

solved?

zhangwenwen avatar Aug 25 '18 07:08 zhangwenwen

Yes, I trained my model with a pre-trained weight and worked. Without pre-trained weight does not work!!!

A-Nariman avatar Aug 25 '18 16:08 A-Nariman

I've got the same problem, have you got an idea how to fix this?

braunyyy avatar Nov 19 '18 13:11 braunyyy

Can we not train without any pretrained weights? I've tried to predict some objects after training from the scratch, but I continue to fail detecting. Any suggestion?

jkstyle2 avatar Jan 02 '19 10:01 jkstyle2

Yes, I trained my model with a pre-trained weight and worked. Without pre-trained weight does not work!!!

how to do without pretrained weight?

amankumarjain avatar Feb 19 '19 20:02 amankumarjain