on the opposite:
RuntimeWarning: invalid value encountered in scalar divide
boundary_iou = intersection / union
/home/dell/desktop/waterbody/sam_hq/sam-hq-main/train/utils/misc.py:536: RuntimeWarning: invalid value encountered in scalar divide
boundary_iou = intersection / union
[383/384] eta: 0:00:00 val_boundary_iou_0: nan (nan) val_iou_0: nan (nan) time: 0.4104 data: 0.0030 max mem: 18919
Total time: 0:02:38 (0.4117 s / it)
Averaged stats: val_boundary_iou_0: nan (nan) val_iou_0: nan (nan)
i dont know if my train data matters bracause i am trying to finetune SAM to a Binary Classification Task
Validating... valid_dataloader len: 131 [ 0/131] eta: 0:01:00 val_iou_0: 0.4816 (0.4816) val_boundary_iou_0: 0.4124 (0.4124) time: 0.4584 data: 0.1234 max mem: 18932 [130/131] eta: 0:00:00 val_iou_0: 0.0486 (0.1484) val_boundary_iou_0: 0.0486 (0.1415) time: 0.3432 data: 0.0013 max mem: 18932 Total time: 0:00:44 (0.3411 s / it)
How can I solve it?