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

memory usage #20

Open
lfz opened this issue Nov 10, 2023 · 0 comments
Open

memory usage #20

lfz opened this issue Nov 10, 2023 · 0 comments

Comments

@lfz
Copy link

lfz commented Nov 10, 2023

pred_volume = torch.repeat_interleave(torch.zeros_like(inputs_l), num_classes + 1, dim=1).float()

this line use too much memory when image is big

image

image

the definition of variable "pred_volume“ varies in different functions. it is 104 channel prob logits at beginning, but changed to 1 channel segmentation finally. To reduce memory use, it should be claimed as 1 channel segmentation map

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