mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Set DEFAULT_PIN_LABELS to None
This commit is contained in:
@@ -5,7 +5,7 @@ DEFAULT_DELTA_FRAC = None
|
||||
|
||||
DEFAULT_METRIC = "mae"
|
||||
DEFAULT_EPS = 0.01
|
||||
DEFAULT_PIN_LABELS = ""
|
||||
DEFAULT_PIN_LABELS = None
|
||||
|
||||
|
||||
def is_dict(item):
|
||||
|
||||
@@ -519,8 +519,11 @@ def intersection_over_union(
|
||||
return min(_multiobject_intersection_over_union(mask1, mask2, pin_labels))
|
||||
|
||||
|
||||
def _parse_label_list(label_list_str: str) -> List[int]:
|
||||
return [int(label.strip()) for label in label_list_str.split(",") if len(label_list_str) > 0]
|
||||
def _parse_label_list(label_list_str: Optional[str]) -> List[int]:
|
||||
if label_list_str is None:
|
||||
return []
|
||||
else:
|
||||
return [int(label.strip()) for label in label_list_str.split(",") if len(label_list_str) > 0]
|
||||
|
||||
|
||||
def get_image_metric(
|
||||
|
||||
Reference in New Issue
Block a user