trainer.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:textboxes 作者: shinjayne 项目源码 文件源码
def evaluate_images():
    tb = TB()

    cv2.namedWindow("outputs", cv2.WINDOW_NORMAL)
    test_loader = sLoader.SVT('./svt1/train.xml', './svt1/test.xml')

    while True:
        imgs, anns = test_loader.nextBatch(3,'test')
        pred_labels_f, pred_locs_f, step = tb.sess.run([tb.pred_labels, tb.pred_locs, tb.global_step],
                                                        feed_dict={tb.imgs_ph: imgs, tb.bn: False})
        boxes_, confidences_ = matcher.format_output(pred_labels_f[0], pred_locs_f[0])
        draw_outputs(imgs[0], boxes_, confidences_, wait=0)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号