zhufengx / SRN_multilabel

143 stars 39 forks source link

How to Create LMDB for Labels #4

Closed joshua19881228 closed 7 years ago

joshua19881228 commented 7 years ago

hi, Feng Zhu,

Thanks for your excellent work.

Could you explain how do you convert the label file to lmdb? In my understanding, you converted it line by line.

Best, Zhixuan Li

zhufengx commented 7 years ago

@joshua19881228 Yes, you are right. I converted labels to lmdb line by line, and each label vector is resized to a num_classes11 array before converted to a datum in the lmdb file.

joshua19881228 commented 7 years ago

@zhufengx Thanks for your explanation. And to make it clear for others, "num_classes11" would be "num_classes x 1 x 1"