AttributeError: 'Resize' object has no attribute 'transforms'. Did you mean: '_transform'? #2242
-
I get this error when I insert a Resize transformation in the datamodule. The model is EfficientAD. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
Please show your code :) |
Beta Was this translation helpful? Give feedback.
-
from anomalib.data import Folder datamodule = Folder( datamodule.setup() logger = AnomalibTensorBoardLogger("tb_logs", name="efficientAD") engine = Engine(max_epochs=epochs, task=TaskType.CLASSIFICATION, checkpoint_path=None |
Beta Was this translation helpful? Give feedback.
-
The error is thrown from the EfficientAD model code |
Beta Was this translation helpful? Give feedback.
-
The reason I do the resize is because I want higher res than (256,256) |
Beta Was this translation helpful? Give feedback.
-
Here is how you define custom data transforms: https://anomalib.readthedocs.io/en/latest/markdown/guides/how_to/data/transforms.html#using-custom-transforms-for-training-and-evaluation |
Beta Was this translation helpful? Give feedback.
-
Good to see this is sorted, closing the discussion. Thanks! |
Beta Was this translation helpful? Give feedback.
no, it looks like you are not using a
Compose
object.