darkflow icon indicating copy to clipboard operation
darkflow copied to clipboard

After yolo training tfnet give empty result.

Open KumarPardeep1 opened this issue 5 years ago • 6 comments

After training results = tfnet.return_predict(frame) give me empty array here is some sort of code.

import cv2 from darkflow.net.build import TFNet import zipfile import numpy as np import time

options = { 'model': 'cfg/tiny-yolo-voc-1c.cfg', 'load': 3000, 'threshold': 0.1, 'gpu': 0.8 } tfnet = TFNet(options) results = tfnet.return_predict(frame)

KumarPardeep1 avatar Apr 10 '19 07:04 KumarPardeep1

You can try saving checkpoint as. pb and. meta files.Then modify your options options = { 'pbLoad': 'metaLoad': }

S0soo avatar Apr 10 '19 09:04 S0soo

@KumarPardeep1 While printing results. (print(results) I am also getting empty result( [] ). Did you got any solution?

rahuledavalath avatar May 23 '19 22:05 rahuledavalath

@rahuledavalath Are you have bounding box on your test image? If not ,,,I mean the train maybe has problem.

HSHunterR avatar May 28 '19 12:05 HSHunterR

the same problem...

ludwikbukowski avatar Jun 20 '20 23:06 ludwikbukowski

Guys any solutions to this? I am also getting the empty array.

hashbanger avatar Sep 17 '20 14:09 hashbanger

Same. when I am training the model I am getting this warning "/content/drive/MyDrive/darkflow2/darkflow/darkflow/net/ops/convolution.py:79: RuntimeWarning: invalid value encountered in sqrt temp /= (np.sqrt(layer.w['moving_variance']) + 1e-5"

Does that mean anything? In my case generated .pb file is blank

Hritik-choukikar avatar Jul 07 '22 08:07 Hritik-choukikar