def convert_region(self, from_layer, to_layer, region, verbose = False):
        '''region is the slice of the from_layer in the following Python
            index format: (ii_start, ii_end, jj_start, jj_end)
        '''
        
        from_idx = self.names.index(from_layer)
        to_idx = self.names.index(to_layer)
        assert to_idx >= from_idx, 'wrong order of from_layer and to_layer'

        ret = region
        for ii in range(from_idx, to_idx, -1):
            converter = self.converters[ii]
            if verbose:
                print 'pushing', self.names[ii], 'region', ret, 'through converter'
            ret = converter(ret)
        if verbose:
            print 'Final region at ', self.names[to_idx], 'is', ret

        return ret
dataset/ETHPy150Open yosinski/deep-visualization-toolbox/find_maxes/caffe_misc.py/RegionComputer.convert_region/swapped operands of `>=`