Toma0916 / GlobalWheatDetection

3 stars 0 forks source link

iscrowed落ちてる #98

Closed Toma0916 closed 4 years ago

Toma0916 commented 4 years ago
def get_filtered_bboxes(target, threshold, max_or_min):
    """
    if max: max_or_min = 1
    if min: max_or_min = -1   
    """
    filtered = ((max_or_min * target['area']) < (max_or_min * threshold)).numpy()
    target_filtered = {'boxes': target['boxes'][filtered], 
                       'labels': target['labels'][filtered],
                       'area': target['area'][filtered],
                       'image_id': target['image_id']}
    return target_filtered

今のブランチで直します

kminoda commented 4 years ago

ははん あざす

kminoda commented 4 years ago

てかiscrowdってなんなん?

Toma0916 commented 4 years ago

ラベルが密集してるかみたいなフラグ 一応全部0で埋めてるはず デフォルトの挙動も0埋めかもだけど