def obj_ratio(dets):
    """Calculate the ratio of one ojbect detected versus anything not one.
    
    Parameters
    ----------
    dets : list of lists
        The list of how many ojbects were detected.
        
    Returns
    -------
    ratio : float
        The ratio of when one object was detected versus something else.
    """
    ones = 0
    twos = 0
    for i in range(len(dets)):
        chunks = dets[i]
        ones += chunks.count(1)
        twos += chunks.count(2)
    ratio = twos/(twos + ones)
    return ratio