(self, split, split_class_names)
Parse the data of the given split.

    Specifically, update self.class_names, self.images_per_class, and
    self.classes_per_split with the information for the given split, and
    create and write records of the classes of the given split.

    Args:
      split: an instance of learning_spec.Split
      split_class_names: the list of names of classes belonging to split
Parse the data of the given split.
Parse the data of the given split .
def parse_split_data(self, split, split_class_names):
    """Parse the data of the given split.

    Specifically, update self.class_names, self.images_per_class, and
    self.classes_per_split with the information for the given split, and
    create and write records of the classes of the given split.

    Args:
      split: an instance of learning_spec.Split
      split_class_names: the list of names of classes belonging to split
    """
    for class_name in split_class_names:
      self.classes_per_split[split] += 1
      class_label = len(self.class_names)
      class_records_path = os.path.join(
          self.records_path, self.dataset_spec.file_pattern.format(class_label))

      # The names of the files in self.data_root for Quickdraw are of the form
      # class_name.npy, for example airplane.npy.
      class_npy_fname = class_name + '.npy'
      self.class_names[class_label] = class_name
      class_path = os.path.join(self.data_root, class_npy_fname)

      # Create and write the tf.Record of the examples of this class.
      num_imgs = write_tfrecord_from_npy_single_channel(class_path, class_label,
                                                        class_records_path)
      self.images_per_class[class_label] = num_imgs
def parse_split_data ( self , split , split_class_names ) : for class_name in split_class_names : self . classes_per_split [ split ] += 1 class_label = len ( self . class_names ) class_records_path = os . path . join ( self . records_path , self . dataset_spec . file_pattern . format ( class_label ) ) # The names of the files in self.data_root for Quickdraw are of the form # class_name.npy, for example airplane.npy. class_npy_fname = class_name + '.npy' self . class_names [ class_label ] = class_name class_path = os . path . join ( self . data_root , class_npy_fname ) # Create and write the tf.Record of the examples of this class. num_imgs = write_tfrecord_from_npy_single_channel ( class_path , class_label , class_records_path ) self . images_per_class [ class_label ] = num_imgs