How to create LMDB files for semantic segmentation?

688 views Asked by At

I have downloaded PASCAL trainval.tar.gz and 33_context_labels and saved into two folders for running semantic segmentation. The trainval folder includes images with .mat format and ground truth images in 33_context_labels folder are in .png format.

  • How can I divide the training data (trainval folder) and corresponding label images (33_context_labels folder) into 2 sets: One for training (5/6 of images) and the other for validation (1/6 of images)?
  • How can I create LMDB files for the training and validation in 2 LMDB databases? (train_lmdb for training the model and validation_lmbd for model evaluation)

Your help is appreciated.

Thanks

0

There are 0 answers