Skip to content
Discussion options

You must be logged in to vote

@udasinnayan, apologies for my late reply to this. To change the batch size of validation, test and predict dataloaders, you need to configure eval_batch_size parameter in the config file.
https://github.com/openvinotoolkit/anomalib/blob/cec86bfb1174c7c1cedd39e8b900384e41553b41/src/anomalib/models/patchcore/config.yaml#L8

Regarding the limit_<split>_batches params in Trainer, they are more for debugging purposes, which subsamples the corresponding dataloader. For more information, you could refer to this link:
https://lightning.ai/docs/pytorch/stable/common/trainer.html#limit-train-batches

Replies: 2 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
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 #1077 on August 09, 2023 10:33.