CaffeOnSpark icon indicating copy to clipboard operation
CaffeOnSpark copied to clipboard

DataLayer use data_param instead of memory_data_param

Open ooyanglinoo opened this issue 7 years ago • 2 comments

Can I use data_param instead of memory_data_param to define DataSource in DataLayer? If not, how to apply different size images as training dataset?

ooyanglinoo avatar Dec 29 '17 07:12 ooyanglinoo

You can only use memory_data_param or cos_data_param to specify the input layers.

The data layers have simple resize function, but I don't think it handles encoded images (say JPEG) with variable sizes.

I would pre-processe the images (resize, rotate, etc) before feeding them to Caffe.

junshi15 avatar Dec 29 '17 17:12 junshi15

I want to train a object detection model based on CaffeOnSpark, whose training image size varies, and may not resize easily because tags on images is based on origin image size.

ooyanglinoo avatar Jan 02 '18 02:01 ooyanglinoo