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 over problem #17

Open
benshan123 opened this issue Nov 11, 2024 · 1 comment
Open

memory over problem #17

benshan123 opened this issue Nov 11, 2024 · 1 comment

Comments

@benshan123
Copy link

image
hi, I met memory problem when I run test, the problem is caused by "concatnate" function. could you kindly teacher me how to solve it? thanks!

@lewandofskee
Copy link
Owner

During the inference phase, you can first save the segmentation, mask, and label results of each image into local .npy files. After completing all inferences, read the corresponding .npy files for each category into memory. Calculate the metrics for the current category, then clear the memory and read the .npy files for the next category into memory. Repeat this process until the metrics for all categories are calculated. I hope this is helpful to you.

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