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

Adjustment of the image #4

Open
wangsc97 opened this issue Apr 23, 2024 · 2 comments
Open

Adjustment of the image #4

wangsc97 opened this issue Apr 23, 2024 · 2 comments

Comments

@wangsc97
Copy link

How to adjust the window width and position of the resulting image after training?

@hao1635
Copy link
Owner

hao1635 commented Apr 24, 2024

I use min-max normalization (max=2000HU,min=-1000HU) during training. After training you can use pred_clip=torch.clip(pred*3000-1000,-160,240) to clip the image into the abdominal window of [-160,240]HU.

@wangsc97
Copy link
Author

Thank you, but if I want to use my own dataset like chest, CTA and so on. How do I go about modifying min-max normalization and pred_clip=torch.clip?

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

2 participants