Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amazon-science/patchcore-inspection
/ functions
Functions
132 in github.com/amazon-science/patchcore-inspection
⨍
Functions
132
◇
Types & classes
22
↳
Endpoints
3
Function
load
(name)
src/patchcore/backbones.py:50
Method
load
(self, load_folder: str, prepend: str = "")
src/patchcore/common.py:388
Function
mask_transform
(mask)
bin/load_and_evaluate_patchcore.py:134
Function
patch_core
( backbone_names, layers_to_extract_from, pretrain_embed_dimension, target_embed_dimension,
bin/run_patchcore.py:259
Function
patch_core_loader
(patch_core_paths, faiss_on_gpu, faiss_num_workers)
bin/load_and_evaluate_patchcore.py:204
Function
plot_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
Method
predict
Predicts anomaly score. Searches for nearest neighbours of test images in all support training images. Args: de
src/patchcore/common.py:332
Function
run
(methods, results_path, gpu, seed, save_segmentation_images)
bin/load_and_evaluate_patchcore.py:32
Function
run
( methods, results_path, gpu, seed, log_group, log_project, save_segmentation_imag
bin/run_patchcore.py:35
Method
run
( self, features: Union[torch.Tensor, np.ndarray] )
src/patchcore/sampler.py:10
Method
run
( self, features: Union[torch.Tensor, np.ndarray] )
src/patchcore/sampler.py:23
Function
sampler
(name, percentage)
bin/run_patchcore.py:321
Method
save_and_reset
(self, save_folder: str)
src/patchcore/common.py:384
Function
set_torch_device
Returns correct torch.device. Args: gpu_ids: [list] list of gpu ids. If empty, cpu is used.
src/patchcore/utils.py:96
Function
test_approximate_faiss
()
test/test_common.py:23
Function
test_approximate_greedy_coreset_sampling
()
test/test_sampler.py:42
Function
test_average_merger_output
()
test/test_common.py:81
Function
test_average_merger_shape
()
test/test_common.py:67
Function
test_calling_without_setting_index
()
test/test_common.py:7
Function
test_concat_merger_output
()
test/test_common.py:103
Function
test_concat_merger_shape
()
test/test_common.py:89
Function
test_coreset_sampling_on_same_samples
()
test/test_sampler.py:63
Function
test_dummy_patchcore
()
test/test_patchcore.py:83
Function
test_johnsonlindenstrauss_reduction
()
test/test_sampler.py:118
Function
test_patchcore_load_and_saveing
(tmpdir)
test/test_patchcore.py:117
Function
test_patchcore_on_dataloader
Test PatchCore on dataloader and assure training scores are zero.
test/test_patchcore.py:100
Function
test_patchcore_real_data
()
test/test_patchcore.py:138
Function
test_random_sampling
()
test/test_sampler.py:82
Function
test_read_write_index
(tmpdir)
test/test_common.py:47
Function
test_search_without_index_raises_exception
()
test/test_common.py:39
Function
test_standard_greedy_coreset_sampling
()
test/test_sampler.py:22
Function
test_type_retention
()
test/test_sampler.py:97
← previous
101–132 of 132, ranked by callers