Tracking/dlc_manager.py
def delete_labeled_outlier_frames(self):
            '''
            Deletes the img.png files that are called 'labeled'P
            '''
            # go through folders containing training images
            training_images_folder = os.path.join(os.path.dirname(self.dlc_paths['cfg_path' 'labeled-data']))
            for i, folder in enumerate(os.listdir(training_images_folder)):
                if folder.find('labeled') < 0:
                    # for the unlabeled folders, delete the png images that are labeled
                    trial_images_folder = os.path.join(training_images_folder, folder)
                    for image in os.listdir(trial_images_folder):
                        if image.find('labeled.png')>=0:
                            os.remove(os.path.join(trial_images_folder, image))

            Deletes the img.png files that are called 'labeled'P
            
Deletes the img.png files that are called 'labeled'P
Deletes the img . png files that are called ' labeled ' P
def delete_labeled_outlier_frames(self):
            training_images_folder = os.path.join(os.path.dirname(self.dlc_paths['cfg_path' 'labeled-data']))
            for i, folder in enumerate(os.listdir(training_images_folder)):
                if folder.find('labeled') < 0:
                    trial_images_folder = os.path.join(training_images_folder, folder)
                    for image in os.listdir(trial_images_folder):
                        if image.find('labeled.png')>=0:
                            os.remove(os.path.join(trial_images_folder, image))
def delete_labeled_outlier_frames ( self ) : training_images_folder = os . path . join ( os . path . dirname ( self . dlc_paths [ 'cfg_path' 'labeled-data' ] ) ) for i , folder in enumerate ( os . listdir ( training_images_folder ) ) : if folder . find ( 'labeled' ) < 0 : trial_images_folder = os . path . join ( training_images_folder , folder ) for image in os . listdir ( trial_images_folder ) : if image . find ( 'labeled.png' ) >= 0 : os . remove ( os . path . join ( trial_images_folder , image ) )
Deletes the img.png files that are called 'labeled'P
Deletes the img . png files that are called ' labeled ' P
'''
            Deletes the img.png files that are called 'labeled'P
            ''' # go through folders containing training images # for the unlabeled folders, delete the png images that are labeled
self