Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Necessary to indicate the right heat map in the good data #91

Open
dhkdnduq opened this issue Dec 27, 2023 · 2 comments
Open

Necessary to indicate the right heat map in the good data #91

dhkdnduq opened this issue Dec 27, 2023 · 2 comments

Comments

@dhkdnduq
Copy link

dhkdnduq commented Dec 27, 2023

utils.py
def plot_segmentation_images
...
axes[0].imshow(image.transpose(1, 2, 0))
axes[1].imshow(mask.transpose(1, 2, 0))
axes[2].imshow(segmentation,vmin=0, vmax=1)
...

From
000
To
000

@wyweather
Copy link

I want to have a prediction result picture. But I don't know how to adjust the code to get the plot _segmentation_images. Please help me. Thank you.

@georgestanley
Copy link

@wyweather ; you need to add --save_segmentation_images command to your run command.

E.g

python bin/run_patchcore.py --gpu 0 --seed 0 --save_segmentation_images \
--log_group mvtec-1 --log_project mvtec_Results results \
patch_core -b wideresnet50 -le layer2 -le layer3 --faiss_on_gpu \
--pretrain_embed_dimension 1024  --target_embed_dimension 1024 --anomaly_scorer_num_nn 1 --patchsize 3 \
sampler -p 0.1 approx_greedy_coreset dataset --resize 250 --imagesize 250 "${dataset_flags[@]}" mvtec $datapath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants