MCPcopy Create free account

hub / github.com/amazon-science/patchcore-inspection / functions

Functions132 in github.com/amazon-science/patchcore-inspection

Functionload
(name)
src/patchcore/backbones.py:50
Methodload
(self, load_folder: str, prepend: str = "")
src/patchcore/common.py:388
Functionmask_transform
(mask)
bin/load_and_evaluate_patchcore.py:134
Functionpatch_core
( backbone_names, layers_to_extract_from, pretrain_embed_dimension, target_embed_dimension,
bin/run_patchcore.py:259
Functionpatch_core_loader
(patch_core_paths, faiss_on_gpu, faiss_num_workers)
bin/load_and_evaluate_patchcore.py:204
Functionplot_segmentation_images
Generate anomaly segmentation images. Args: image_paths: List[str] List of paths to images. segmentations: [List[np.ndarray]] Gen
src/patchcore/utils.py:15
Methodpredict
Predicts anomaly score. Searches for nearest neighbours of test images in all support training images. Args: de
src/patchcore/common.py:332
Functionrun
(methods, results_path, gpu, seed, save_segmentation_images)
bin/load_and_evaluate_patchcore.py:32
Functionrun
( methods, results_path, gpu, seed, log_group, log_project, save_segmentation_imag
bin/run_patchcore.py:35
Methodrun
( self, features: Union[torch.Tensor, np.ndarray] )
src/patchcore/sampler.py:10
Methodrun
( self, features: Union[torch.Tensor, np.ndarray] )
src/patchcore/sampler.py:23
Functionsampler
(name, percentage)
bin/run_patchcore.py:321
Methodsave_and_reset
(self, save_folder: str)
src/patchcore/common.py:384
Functionset_torch_device
Returns correct torch.device. Args: gpu_ids: [list] list of gpu ids. If empty, cpu is used.
src/patchcore/utils.py:96
Functiontest_approximate_faiss
()
test/test_common.py:23
Functiontest_approximate_greedy_coreset_sampling
()
test/test_sampler.py:42
Functiontest_average_merger_output
()
test/test_common.py:81
Functiontest_average_merger_shape
()
test/test_common.py:67
Functiontest_calling_without_setting_index
()
test/test_common.py:7
Functiontest_concat_merger_output
()
test/test_common.py:103
Functiontest_concat_merger_shape
()
test/test_common.py:89
Functiontest_coreset_sampling_on_same_samples
()
test/test_sampler.py:63
Functiontest_dummy_patchcore
()
test/test_patchcore.py:83
Functiontest_johnsonlindenstrauss_reduction
()
test/test_sampler.py:118
Functiontest_patchcore_load_and_saveing
(tmpdir)
test/test_patchcore.py:117
Functiontest_patchcore_on_dataloader
Test PatchCore on dataloader and assure training scores are zero.
test/test_patchcore.py:100
Functiontest_patchcore_real_data
()
test/test_patchcore.py:138
Functiontest_random_sampling
()
test/test_sampler.py:82
Functiontest_read_write_index
(tmpdir)
test/test_common.py:47
Functiontest_search_without_index_raises_exception
()
test/test_common.py:39
Functiontest_standard_greedy_coreset_sampling
()
test/test_sampler.py:22
Functiontest_type_retention
()
test/test_sampler.py:97
← previous101–132 of 132, ranked by callers