weiliu89 / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
4.76k stars 1.68k forks source link

lmdb #100

Open 2016xjtuzyt opened 7 years ago

2016xjtuzyt commented 7 years ago

hi, i have run the file creat_data.sh, but i don't know what's the meaning of seting width or height. as follows: min_dim=0 max_dim=0 width=0 height=0

thanks for your answer.

weiliu89 commented 7 years ago

It means it will read the original image (aka no resize).

2016xjtuzyt commented 7 years ago

ok, thanks

RyanCV commented 7 years ago

@weiliu89 if I want to resize to 32*32, should I set width=32, and height=32? thanks

weiliu89 commented 7 years ago

@RyanCV I would suggest you save the original image, and then do all the augmentation and resize on the fly (during training).

RyanCV commented 7 years ago

@weiliu89 Hi, thanks for your response. I also used your create_list.sh and create_data.sh in SSD to get lmdb data. However, after I got lmdb data (which are data.mdb and lock.mdb,), at the beginning of training, it gives me the following error, do you have any suggestion? thanks.

Check failed: datum_channels > 0 (0 vs. 0) 
*** Check failure stack trace: ***
weiliu89 commented 7 years ago

You should go to the function and debug more yourself. The code is mainly written for detection. So it is likely you need to change something in the code.