Skip to content

[Bug]: torch.cuda.OutOfMemoryError: CUDA out of memory - PatchCore #2033

Answered by blaz-r
udarnicus asked this question in Q&A
Discussion options

You must be logged in to vote

PatchCore is a very memory-hungry model so you'll maybe need to reduce the image size or the number of training samples.

Also unrelated to this problem: PatchCore is not trained for multiple epochs, so set the epochs to 1 when using it.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by samet-akcay
Comment options

You must be logged in to vote
0 replies
Comment options

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

This discussion was converted from issue #2016 on April 28, 2024 20:17.