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

about the code in p_sample_loop_known #54

Open
jaceqin opened this issue Mar 14, 2023 · 2 comments
Open

about the code in p_sample_loop_known #54

jaceqin opened this issue Mar 14, 2023 · 2 comments

Comments

@jaceqin
Copy link

jaceqin commented Mar 14, 2023

if dice_score(final["sample"][:,-1,:,:].unsqueeze(1), final["cal"]) < 0.65:
cal_out = torch.clamp(final["cal"] + 0.25 * final["sample"][:,-1,:,:].unsqueeze(1),
else:
cal_out = torch.clamp(final["cal"] * 0.5 + 0.5 * final["sample"][:,-1,:,:].unsqueeze(1), 0, 1)

What is the main purpose of this code?

@xupinggl
Copy link

xupinggl commented Jun 1, 2023

same question

@Devin-Pi
Copy link

Devin-Pi commented Oct 2, 2023

same question.
What's more important, as show below, why the cal_out can represent the final segmentation result?
co = th.tensor(cal_out)
print('the shape of sample :', sample.shape, sample[:, -1, :, :].shape)
if args.version == 'new':
enslist.append(sample[:,-1,:,:])
else:
enslist.append(co)

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

3 participants