Replies: 1 comment 8 replies
-
The image = Image.open(path).convert("RGB") anomalib/src/anomalib/data/utils/image.py Line 300 in 3e2906a Can you show me your full code for running a model on your custom data? Is there an error? Something like this: from anomalib.data import Folder
from anomalib.engine import Engine
from anomalib.models import Padim
model = Padim()
datamodule = Folder( #<------- replace with your data here
name="custom_folder",
root="./datasets/custom",
normal_dir="good",
abnormal_dir="defect"
)
engine = Engine()
engine.fit(
model=model,
datamodule=datamodule,
) |
Beta Was this translation helpful? Give feedback.
8 replies
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.
-
i am trying to convert GrayScale image to RGB for EfficientAD model learning but it is not working
i have tried following things but none of them working . during model learning it gives error . could you please suggest proper conversion for GrayScale images for use with Anomalib
from anomalib.data.utils.image import read_image, save_image
import numpy as np
Beta Was this translation helpful? Give feedback.
All reactions