Crop size Error in caffe Model

前端 未结 1 1664
花落未央
花落未央 2021-01-23 10:01

Im trying to train a caffe Model.I get this error

I0806 09:41:02.010442  2992 sgd_solver.cpp:105] Iteration 360, lr = 9.76e-  05
F0806 09:41:20.544955  2998 
dat         


        
1条回答
  •  时光说笑
    2021-01-23 10:21

    It seems like one (or more?) images in your input dataset has height = 199. Caffe cannot crop image with height 199 to size 224.

    Error message explained:

    data_transformer.cpp:168] Check failed: height<=datum_height (224 vs. 199)
    

    Looking at the 'data_transformer.cpp' line 168:

    CHECK_LE(height, datum_height);
    

    the data transformer checks that the crop height (height) is less than or equal (LE) to the input datum_height.
    As you can see from the error message, this check failed, meaning input height is larger than the crop height. The condition height=224 <= datum_height=199 does not hold and an error is raised.

    0 讨论(0)
提交回复
热议问题