(
    stage: int,
    fmap_base: int = 16 << 10,
    fmap_decay: float = 1.0,
    fmap_min: int = 1,
    fmap_max: int = 512,
)
return int(
        np.clip(
            int(fmap_base / (2.0 ** (stage * fmap_decay))),
            fmap_min,
            fmap_max,
        ).item()
    )
computes the number of fmaps present in each stage
    Args:
        stage: stage level
        fmap_base: base number of fmaps
        fmap_decay: decay rate for the fmaps in the network
        fmap_min: minimum number of fmaps
        fmap_max: maximum number of fmaps

    Returns: number of fmaps that should be present there
computes the number of fmaps present in each stage
    Args:
        stage: stage level
        fmap_base: base number of fmaps
        fmap_decay: decay rate for the fmaps in the network
        fmap_min: minimum number of fmaps
        fmap_max: maximum number of fmaps
computes the number of fmaps present in each stage Args : stage : stage level fmap_base : base number of fmaps fmap_decay : decay rate for the fmaps in the network fmap_min : minimum number of fmaps fmap_max : maximum number of fmaps
def nf(
    stage: int,
    fmap_base: int = 16 << 10,
    fmap_decay: float = 1.0,
    fmap_min: int = 1,
    fmap_max: int = 512,
) -> int:
    """
    computes the number of fmaps present in each stage
    Args:
        stage: stage level
        fmap_base: base number of fmaps
        fmap_decay: decay rate for the fmaps in the network
        fmap_min: minimum number of fmaps
        fmap_max: maximum number of fmaps

    Returns: number of fmaps that should be present there
    """
    return int(
        np.clip(
            int(fmap_base / (2.0 ** (stage * fmap_decay))),
            fmap_min,
            fmap_max,
        ).item()
    )
def nf ( stage : int , fmap_base : int = 16 << 10 , fmap_decay : float = 1.0 , fmap_min : int = 1 , fmap_max : int = 512 , ) -> int : return int ( np . clip ( int ( fmap_base / ( 2.0 ** ( stage * fmap_decay ) ) ) , fmap_min , fmap_max , ) . item ( ) )