(self, entry)
Adds empty metadata fields to an roidb entry.
Adds empty metadata fields to an roidb entry.
Adds empty metadata fields to an roidb entry .
def _prep_roidb_entry(self, entry):
        """Adds empty metadata fields to an roidb entry."""
        # Reference back to the parent dataset
        entry['dataset'] = self
        # Make file_name an abs path
        entry['image'] = os.path.join(
                self.image_directory, 
                self.image_prefix + entry['file_name'])

        for k in ['date_captured', 'url', 'license']:
            if k in entry:
                del entry[k]
def _prep_roidb_entry ( self , entry ) : # Reference back to the parent dataset entry [ 'dataset' ] = self # Make file_name an abs path entry [ 'image' ] = os . path . join ( self . image_directory , self . image_prefix + entry [ 'file_name' ] ) for k in [ 'date_captured' , 'url' , 'license' ] : if k in entry : del entry [ k ]