Skip to content

Make visualization configurable #1917

@jschneider

Description

@jschneider

Hey,

we are using this code, which works fine:

dataset = PredictDataset(image_path)
dataloader = DataLoader(dataset, num_workers=15)

model = get_model("Patchcore")

output = engine.predict(
  model=model,
  ckpt_path=model_path,
  dataloaders=[dataloader],
)

The output contains everything I expect, everything is fine.

But:
I have a lot of pictures, I want to analyze - and performance matters:

  • Therefore, it would be great if I was able to load the model only once and use it for multiple images.
  • It would be great to avoid generating the debug picture (containing the heat map, mask etc).

I am sure I am missing a simple way to achieve this. Any help appreciated ;-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions