Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why the uncertainty is 1/255? #40

Open
baorina opened this issue Apr 3, 2023 · 0 comments
Open

Why the uncertainty is 1/255? #40

baorina opened this issue Apr 3, 2023 · 0 comments

Comments

@baorina
Copy link

baorina commented Apr 3, 2023

Hi Qihang,

I have a question about uncertainty region computation. Why is pred<[1/255.0] as the uncertain region? How do you choose this value?

def get_unknown_tensor_from_pred(pred, rand_width=30, train_mode=True):
### pred: N, 1 ,H, W
N, C, H, W = pred.shape

pred = pred.data.cpu().numpy()
uncertain_area = np.ones_like(pred, dtype=np.uint8)
uncertain_area[pred<1.0/255.0] = 0
uncertain_area[pred>1-1.0/255.0] = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant