Question 1: Short answer
mediumAI-checkedSegmentationU-Net weights its pixel-wise cross-entropy with , where and are the distances to the borders of the nearest and the second nearest cell, and pixels. A background pixel between two touching cells has , and . What is ?