home/exp1000/acquire_and_label_images.py
def init_clustering_props(self):
        """Fetch configuration parameters for image clustering with K-Means unsupervised learning"""

        # Flag to enable or disable clustering with K-Means.
        self.do_clustering = self.config.getboolean('clustering', 'cluster')

        # To which labeled image should the clustering apply to.
        self.cluster_for_labels = json.loads(self.config.get('clustering', 'cluster_for_labels'))

        # The K value for the K-Means algorithm.
        self.cluster_k = self.config.getint('clustering', 'cluster_k')

        # How many training images need to be collected before training the clustering model.
        self.cluster_collect_threshold = self.config.getint('clustering', 'cluster_collect_threshold')

        # The image types on which to apply clustering.
        self.cluster_img_types = json.loads(self.config.get('clustering', 'cluster_img_types'))
Fetch configuration parameters for image clustering with K-Means unsupervised learning
Fetch configuration parameters for image clustering with K-Means unsupervised learning
Fetch configuration parameters for image clustering with K - Means unsupervised learning
def init_clustering_props(self):
        self.do_clustering = self.config.getboolean('clustering', 'cluster')
        self.cluster_for_labels = json.loads(self.config.get('clustering', 'cluster_for_labels'))
        self.cluster_k = self.config.getint('clustering', 'cluster_k')
        self.cluster_collect_threshold = self.config.getint('clustering', 'cluster_collect_threshold')
        self.cluster_img_types = json.loads(self.config.get('clustering', 'cluster_img_types'))
def init_clustering_props ( self ) : self . do_clustering = self . config . getboolean ( 'clustering' , 'cluster' ) self . cluster_for_labels = json . loads ( self . config . get ( 'clustering' , 'cluster_for_labels' ) ) self . cluster_k = self . config . getint ( 'clustering' , 'cluster_k' ) self . cluster_collect_threshold = self . config . getint ( 'clustering' , 'cluster_collect_threshold' ) self . cluster_img_types = json . loads ( self . config . get ( 'clustering' , 'cluster_img_types' ) )
Fetch configuration parameters for image clustering with K-Means unsupervised learning
Fetch configuration parameters for image clustering with K - Means unsupervised learning
"""Fetch configuration parameters for image clustering with K-Means unsupervised learning""" # Flag to enable or disable clustering with K-Means. # To which labeled image should the clustering apply to. # The K value for the K-Means algorithm. # How many training images need to be collected before training the clustering model. # The image types on which to apply clustering.
self