在不同数据集的DIGITS中使用预训练模型出错.如何根据新的数据集修改图层



我尝试使用预训练模型(VGG 16)到DIGITS,但我得到了这个错误。

ERROR: Check failed: ERROR == cudassuccess (2 vs. 0) out of memory

conv2_2 does not need backward computation.
relu2_1 does not need backward computation.
conv2_1 does not need backward computation.
pool1 does not need backward computation.
relu1_2 does not need backward computation.
conv1_2 does not need backward computation.
relu1_1 does not need backward computation.
conv1_1 does not need backward computation.
data does not need backward computation.
This network produces output label
This network produces output softmax
Network initialization done.
Solver scaffolding done.
Finetuning from /home/digits/digits/jobs/20161020-095911-9d01/model.caffemodel
Attempting to upgrade input file specified using deprecated V1LayerParameter: /home/digits/digits/jobs/20161020-095911-9d01/model.caffemodel
Successfully upgraded file specified using deprecated V1LayerParameter
Attempting to upgrade input file specified using deprecated input fields: /home/digits/digits/jobs/20161020-095911-9d01/model.caffemodel
Successfully upgraded file specified using deprecated input fields.
Note that future Caffe releases will only support input layers and not input fields.
Check failed: error == cudaSuccess (2 vs. 0)  out of memory

我成功地将deploy.prototxt, VGG_ILSVRC_16_layers.caffemodelsynset_words.txt上传到DIGITS中,并使用我的数据集进行测试,该数据集有两个类。

有时digits-server无法清除内存。如果您使用的是ubuntu,请尝试使用以下命令:

sudo restart nvidia-digits-server

如果这不起作用并且你再次面对相同的情况,你需要减少batch_size

最新更新