0

Is shuffling done by setting the flag --shuffle as below as found in create_imagenet.sh ? :

GLOG_logtostderr=1 $TOOLS/convert_imageset \
   --resize_height=$RESIZE_HEIGHT \
   --resize_width=$RESIZE_WIDTH \
   --shuffle \

I mean I don't need to shuffle it manually afterwards, if the flag does it already. What about the label, is it shuffled automatically in the generated lmdb file?

Shai
  • 111,146
  • 38
  • 238
  • 371
alfa_80
  • 427
  • 1
  • 5
  • 21

1 Answers1

1

Using convert_imageset tool creates a copy of your training/validation data in a binary database file (either in or format). The data encoded in the dataset includes pairs of example and its corresponding label.
Therefore, when shuffle-ing the dataset the labels are shuffled with the data to maintain the correspondence between data and its ground-truth label.
There is no need to shuffle the data again during training.

Community
  • 1
  • 1
Shai
  • 111,146
  • 38
  • 238
  • 371