Patchcore export model very slow #3222
Unanswered
kanoon1991
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
From I training Patchcore model by Anomalib version 2.3.0dev with half precision = PrecisionType.FLOAT16, I found on step export model very slow, How about we can improve export model speed?
GPU model : RTX4090 24GB, PyTorch version: 2.8.0+cu129, CUDA version (PyTorch): 12.9
Training code
from anomalib.data import Folder
from anomalib.models import Patchcore
from anomalib.engine import Engine
from anomalib.deploy import ExportType, CompressionType
from anomalib.pre_processing import PreProcessor
from anomalib import PrecisionType
from torchvision.transforms.v2 import Compose, Resize
import multiprocessing as mp
def main():
train_transform = Compose([
Resize(512),
])
if name == "main":
mp.freeze_support()
main()
Beta Was this translation helpful? Give feedback.
All reactions