RMPE
RMPE copied to clipboard
2 tests from HardSpatialTransformerLayerTest/1, where TypeParam = caffe::CPUDevice<double>时发生错误
您好,学长:
非常感谢您分享的程序。在Installation步骤中,我按照您所写执行,每当执行make runtest -j8时,总会报这样一个错误:
[----------] 2 tests from HardSpatialTransformerLayerTest/1, where TypeParam = caffe::CPUDevice
[ RUN ] HardSpatialTransformerLayerTest/1.TestGradient
Spatial Transformer Layer:: LayerSetUp: Getting output_H_ and output_W_
Spatial Transformer Layer:: LayerSetUp: output_H_ = 7, output_W_ = 7
Spatial Transformer Layer:: LayerSetUp: Getting pre-defined parameters
Spatial Transformer Layer:: LayerSetUp: Initializing the matrix for output grid
Spatial Transformer Layer:: LayerSetUp: Initializing the matrix for input grid
Spatial Transformer Layer:: LayerSetUp: Initialization finished.
F1217 14:07:56.563449 21562 st_layer.cpp:263] Check failed: false Don't use the CPU implementation! If you really want to, delete the CHECK in st_layer.cpp file. Line number: 242-243. De_transform is not supported.
*** Check failure stack trace: ***
@ 0x7f7d5fb6de6d (unknown)
@ 0x7f7d5fb6fced (unknown)
@ 0x7f7d5fb6da5c (unknown)
@ 0x7f7d5fb7063e (unknown)
@ 0x7f7d5b6e1119 caffe::SpatialTransformerLayer<>::Forward_cpu()
@ 0x48402a caffe::Layer<>::Forward()
@ 0x4cfe3b caffe::GradientChecker<>::CheckGradientSingle()
@ 0x4d0a7b caffe::GradientChecker<>::CheckGradientExhaustive()
@ 0x95f672 caffe::HardSpatialTransformerLayerTest_TestGradient_Test<>::TestBody()
@ 0x9b2ce3 testing::internal::HandleExceptionsInMethodIfSupported<>()
@ 0x9aaae7 testing::Test::Run()
@ 0x9aab8e testing::TestInfo::Run()
@ 0x9aac95 testing::TestCase::Run()
@ 0x9acf28 testing::internal::UnitTestImpl::RunAllTests()
@ 0x9ad1b7 testing::UnitTest::Run()
@ 0x475aaf main
@ 0x7f7d5a884b15 __libc_start_main
@ 0x47e909 (unknown)
make: *** [runtest] Aborted (core dumped)
我在Makefile.config中仅修改了BLAS := mkl 和 WITH_PYTHON_LAYER := 1。 另外在make runtest开始时会出现找不到fish-bike.jpg的错误信息,我只能从我们服务器的caffe/examples/images中复制这张图片到RMPE/examples/images中。 是不是我某些地方做的不太对?希望您能给予帮助。非常感谢!!
siyilingting
Hi @siyilingting
Yes, as the info said: "Check failed: false Don't use the CPU implementation! If you really want to, delete the CHECK in st_layer.cpp file. Line number: 242-243. De_transform is not supported."
The STN layer doesn't support CPU at present, so you can try to make it with GPU.
BTW, usually I don't run 'make runtest', so very THANK YOU for telling me the issue about fish-bike,jpg
Thank you for your advice and I will try it again, ^_^
Hello, @Fang-Haoshu There are two problems that puzzles me.
- When I run the command
./data/MPII_COCO14/create_data.sh
in the Train/Eval, I find the code searches datas in "/RMPE/data/MPII_COCO14/JPEGImages" instead of "/data/MPII_COCO14/images" . After changing the name, the code runs successfully. - But next when I run
python examples/rmpe/ssd_pascal_MPII_COCO14VGG.py
, it showed me these: F0112 19:03:33.095942 10139 io.cpp:63] Check failed: fd != -1 (-1 vs. -1) File not found: models/VGG_SSD/VGG_ILSVRC_16_layers_fc_reduced.caffemodel *** Check failure stack trace: *** @ 0x7f1b98426e6d (unknown) @ 0x7f1b98428ced (unknown) @ 0x7f1b98426a5c (unknown) @ 0x7f1b9842963e (unknown) @ 0x7f1b9de1e2d3 caffe::ReadProtoFromBinaryFile() @ 0x7f1b9de49134 caffe::ReadNetParamsFromBinaryFileOrDie() @ 0x7f1b9ddc30d7 caffe::Net<>::CopyTrainedLayersFromBinaryProto() @ 0x7f1b9ddc3146 caffe::Net<>::CopyTrainedLayersFrom() @ 0x408d45 CopyLayers() @ 0x40964c train() @ 0x406b9c main @ 0x7f1b901b9b15 __libc_start_main @ 0x4074a5 (unknown)
And I didn't find the file " VGG_ILSVRC_16_layers_fc_reduced.caffemodel " on my computer. Could you give me some advice? Thank you very much!
Hi, thanks for your report!
For training human detector, you need to download the models & get more details at SSD's official repo:https://github.com/weiliu89/caffe/tree/ssd
Best
Hi, thank you for your advice!
But there is another problem. When I run the command ./data/MPII_COCO14/create_data.sh
, it tells me that data_transformer.cpp:444] Check failed: channels == img_channels (3 vs. 1)
. So I have found the images with one channel and delete them in /home/wbr/RMPE/data/MPII_COCO14/train.txt . Now it seems running correctly and it is training human detector. Is it right to delete data? I really don't understand.
Thank you and looking forward to your responds.
Best wishes !
It's not a big problem.
I will try to figure out why. Before that, you can train with your current setting
Best
should be fixed now
Hi! I am facing the same problem
2 tests from HardSpatialTransformerLayerTest/1, where TypeParam = caffe::CPUDevice