如何在Ubuntu终端中过滤Caffe输出?

时间:2018-12-12 08:33:13

标签: filter terminal output caffe

我在ubuntu终端上运行了caffe培训程序(开源SEC细分:https://github.com/kolesman/SEC),由于未使用某些输出,因此终端输出变得疯狂。我只想要有关损失的输出,而我已经尝试过

$ train --solver solver.prototxt --weights models/vgg16_20M.caffemodel | grep 'loss'

但不起作用。我也尝试过:

$ GLOG_minloglevel=3 caffe train --solver solver.prototxt --weights models/vgg16_20M.caffemode

存在错误“ HDF5-DIAG:在HDF5中检测到错误...”,我认为GLOG_minloglevel不是我想要的。

我知道我可以将所有输出重定向到.txt,例如:

$ command > log.txt 2>&1

但是我不想得到一个充满了无用日志的大.txt。

有什么建议吗?非常感谢。

0 个答案:

没有答案