Replies: 3 comments
-
|
Thanks for submitting this issue! It has been added to our triage queue. A maintainer will review it shortly. |
Beta Was this translation helpful? Give feedback.
-
from anomalib.data import UCSDped
from anomalib.models import Fuvas
from anomalib.engine import Engine
from torchvision.transforms import v2
# Load the ucsdped dataset, model and engine.
datamodule = UCSDped(
root="./datasets/ucsdped",
)
model = Fuvas(visualizer=False)
engine = Engine()
# Train the model
engine.fit(model=model, datamodule=datamodule)
engine.test(model=model, datamodule=datamodule)even with the default one, it wouldn't get the score as https://github.com/open-edge-platform/anomalib/tree/668760cd3c35f8bda040af5d23a7e1dbea05dc50/src/anomalib/models/video/fuvas The best score that I can get is image_AUROC/pixel_AUROC = 0.93 / 0.94. # Load the ucsdped dataset, model and engine.
datamodule = UCSDped(
root="./datasets/ucsdped",
)
model = Fuvas(visualizer=False,
backbone="swin3d_b",
pooling_kernel_size=2,
spatial_pool=False,
layer="features.5",
pre_processor=False
)
engine = Engine()
# Train the model
engine.fit(model=model, datamodule=datamodule)
engine.test(model=model, datamodule=datamodule)
|
Beta Was this translation helpful? Give feedback.
-
|
I found out the reason for this. the default size of preprocess is (256,256), I need to update the preprocess of the model augmentations = v2.Compose(
[
v2.Resize((448,512), interpolation=v2.InterpolationMode.BILINEAR, antialias=True),
v2.Normalize(
mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]
),
]
)
# Load the ucsdped dataset, model and engine.
datamodule = UCSDped(
root="./datasets/ucsdped",
# augmentations=augmentations, # doesnt work
)
model = Fuvas(visualizer=False,
)
model.pre_processor.transform = augmentations # update this
engine = Engine()
# Train the model
engine.fit(model=model, datamodule=datamodule)
engine.test(model=model, datamodule=datamodule)
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Your Question
May I know how can I reproduce the result of FUVAS on ped2?
AUC pAUC
95.5 97.6
With the above code, I can only get the following result. (0.77 instead of 0.95)
┃ Test metric ┃ DataLoader 0 ┃
┡━━━━━━━━━━|━━━━━━━━━━━━ |
│ image_AUROC │ 0.773730993270874 │
│ image_F1Score │ 0.9030470848083496 │
│ pixel_AUROC │ 0.971834659576416 │
│ pixel_F1Score │ 0.40962979197502136 │
Forum Check
Beta Was this translation helpful? Give feedback.
All reactions