def mask_to_output_target(mask): target = np.full_like(mask, CONFIG.model.v_false, dtype=np.float32) target[mask] = CONFIG.model.v_true return target