Caffe LMDB火车和val.txt [英] Caffe LMDB train and val.txt

查看:70
本文介绍了Caffe LMDB火车和val.txt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在制作lmdb文件的过程中,我们应该制作 train.txt val.txt 文件,我已经制作了一个 train.txt 文件,其中包含图像名称空间及其相应的标签。例如image1.JPG 0。

During the process of making a lmdb file,we are supposed to make a train.txt and val.txt file,i have already made a train.txt file which consists of the image name space its corresponding label.Ex image1.JPG 0.

现在我必须使 val.txt 文件变得困惑,因为我是测试数据,因此我如何给它相应的值我希望能预测到这些。谁能告诉我这个 val.txt 文件是什么以及它应该做什么。

Now that i have to make the val.txt file im confused as to how do i give it its corresponding values since it is my test data and i am hoping to predict those.Can anyone tell me what thisval.txt file is and what is it supposed to be doing.

推荐答案

您正在混淆测试和验证集。验证集是一个您知道标签的集(例如在训练中),但您不对其进行训练。验证集用于确保您不会过度拟合训练数据。

在测试时,您可以为模型提供未标记的数据并为这些样本进行预测。

You are confusing test and validation sets. A validation set is a set where you know the labels (like in training) but you do not train on it. The validation set is used to make sure you are not overfitting the training data.
At test time you may present your model with unlabeled data and make prediction for these samples.

这篇关于Caffe LMDB火车和val.txt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆