(self)
Set flag according to image aspect ratio.

        Images with aspect ratio greater than 1 will be set as group 1,
        otherwise group 0.
Set flag according to image aspect ratio.
Set flag according to image aspect ratio .
def _set_group_flag(self):
        """Set flag according to image aspect ratio.

        Images with aspect ratio greater than 1 will be set as group 1,
        otherwise group 0.
        """
        self.flag = np.zeros(len(self), dtype=np.uint8)
        for i in range(len(self)):
            img_info = self.img_infos[i]
            if img_info['width'] / img_info['height'] > 1:
                self.flag[i] = 1
def _set_group_flag ( self ) : self . flag = np . zeros ( len ( self ) , dtype = np . uint8 ) for i in range ( len ( self ) ) : img_info = self . img_infos [ i ] if img_info [ 'width' ] / img_info [ 'height' ] > 1 : self . flag [ i ] = 1