Skip to content

How to save segmentation images #15

@kodai2003

Description

@kodai2003

Thank you for sharing your code and your great work.
As I am trying to reproduce your work, I have a question regarding saving segmentation images.

Whenever I try to save segmentation images by setting "--save_segmentation_images", I get the below error. (Without this setting, it runs fine)

By the way, I am only using MVTec 'bottle' for my dataset. Can you help with this error?


Traceback (most recent call last):
File "bin/run_patchcore.py", line 435, in
main()
File "../patchcore/lib/python3.8/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "../patchcore/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "../patchcore/lib/python3.8/site-packages/click/core.py", line 1689, in invoke
return _process_result(rv)
File "../patchcore/lib/python3.8/site-packages/click/core.py", line 1626, in _process_result
value = ctx.invoke(self._result_callback, value, **ctx.params)
File "../patchcore/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "bin/run_patchcore.py", line 166, in run
patchcore.utils.plot_segmentation_images(
File "../patchcore-inspection/src/patchcore/utils.py", line 51, in plot_segmentation_images
image = image_transform(image)
File "bin/run_patchcore.py", line 149, in image_transform
dataloaders["testing"].dataset.transform_std
AttributeError: 'MVTecDataset' object has no attribute 'transform_std'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions