Skip to content
Discussion options

You must be logged in to vote

Hi @Sudayberry, can't reproduce the error.

from monai.transforms import AdjustContrastd

x = torch.rand([5, 1, 64, 64, 64])
data = {"t2": x}

out = AdjustContrastd(keys=("t2"), gamma=0.5,invert_image=False, retain_stats=False)(data)
print(out["t2"].shape)

BTW, it's retain_stats instead of retain_status.

Convert to discussion for now, feel free to create another issue. Thanks!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wyli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6733 on July 18, 2023 03:38.