-
Notifications
You must be signed in to change notification settings - Fork 846
π feat(post-processing): Add MEBin post processor from AnomalyNCD #3089
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
Closed
StarPlatinum7
wants to merge
44
commits into
open-edge-platform:main
from
StarPlatinum7:mebin_post_processor
Closed
π feat(post-processing): Add MEBin post processor from AnomalyNCD #3089
StarPlatinum7
wants to merge
44
commits into
open-edge-platform:main
from
StarPlatinum7:mebin_post_processor
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
β¦chCore, Padim, Dfkde (#2913) * refactor patchcore, use list instead of cat * typo in patchcore Signed-off-by: Alfie Roddan <[email protected]> * padim model to now use cat instead of list Signed-off-by: Alfie Roddan <[email protected]> * dfm and padim update cat to list Signed-off-by: Alfie Roddan <[email protected]> * add dfkde cat to list changes Signed-off-by: Alfie Roddan <[email protected]> * change assert from memory bank to list size, fix pre-commit issues Signed-off-by: Alfie Roddan <[email protected]> --------- Signed-off-by: Alfie Roddan <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
Signed-off-by: StarPlatinum7 <[email protected]>
Signed-off-by: StarPlatinum7 <[email protected]>
Signed-off-by: StarPlatinum7 <[email protected]>
* added histogram of anomaly scores * Update src/anomalib/metrics/anomaly_score_distribution.py Co-authored-by: Samet Akcay <[email protected]> Signed-off-by: Aimira Baitieva <[email protected]> * Update anomaly_score_distribution.py * Update anomaly_score_distribution.py * Fixed pre-commit checks --------- Signed-off-by: Aimira Baitieva <[email protected]> Co-authored-by: Samet Akcay <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
* added pg and pb metrics * fixed typos * Update __init__.py * Update __init__.py - removed duplicate * Update pg_pb.py * Fixed pre-commit checks --------- Co-authored-by: Samet Akcay <[email protected]> Co-authored-by: Rajesh Gangireddy <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
* π fix(huggingface): specify 'main' revision for model and processor loading. Fixes Bandit security issue B615 (unsafe download without revision pinning) * π fix(huggingface): add model_revision parameter for reproducible model loading * π fix(model): add hf_model_revision parameter for specifying HuggingFace model revisions * π fix(vlm_ad): set default values for api_key and hf_model_revision in _setup_vlm_backend method * π fix(vlm_ad): rename huggingface_model_revision parameter to hf_model_revision for consistency * π fix(vlm_ad): update model initialization parameters for consistency * Update src/anomalib/models/image/vlm_ad/lightning_model.py Co-authored-by: Copilot <[email protected]> Signed-off-by: Rajesh Gangireddy <[email protected]> * π fix(vlm_ad): change ALLOWED_HF_MODELS to frozenset for immutability * π fix(vlm_ad): use ALLOWED_HF_MODELS for model validation in hf_model_revision Signed-off-by: rajeshgangireddy <[email protected]> --------- Signed-off-by: Rajesh Gangireddy <[email protected]> Signed-off-by: rajeshgangireddy <[email protected]> Co-authored-by: Copilot <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
Signed-off-by: oep-renovate[bot] <212772560+oep-renovate[bot]@users.noreply.github.com> Co-authored-by: oep-renovate[bot] <212772560+oep-renovate[bot]@users.noreply.github.com> Signed-off-by: StarPlatinum7 <[email protected]>
added ground truth masks to VAD dataset Signed-off-by: StarPlatinum7 <[email protected]>
β¦ model loading (#2947) Signed-off-by: Rajesh Gangireddy <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
β¦changes (#2931) π fix(docs): Update installation messages for missing dependencies in various modules Signed-off-by: StarPlatinum7 <[email protected]>
β¦2951) * π feat(workflow): add CodeQL analysis workflow for security scanning Signed-off-by: Lipka, Kamil <[email protected]> * fix(workflow): remove whitespaces Signed-off-by: Lipka, Kamil <[email protected]> * format codeql.yml with prettier Signed-off-by: Lipka, Kamil <[email protected]> * refactor(workflow): update CodeQL workflow for clarity and efficiency Signed-off-by: Lipka, Kamil <[email protected]> * fix(workflow): correct action name for CodeQL analysis step Signed-off-by: Lipka, Kamil <[email protected]> * fix(workflow): remove unnecessary whitespace in CodeQL job permissions Signed-off-by: Lipka, Kamil <[email protected]> --------- Signed-off-by: Lipka, Kamil <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
β¦ examples (#2950) * fix(data): enable pin_memory for DataLoader instances across the codebase This commit updates various DataLoader instances in the project to enable the option, enhancing performance for data loading on GPU. Changes were made in the following files: - : Updated train and test DataLoader configurations. - : Modified datamodule DataLoader to include . - : Added to evaluation DataLoader. - : Updated DataLoader for datasets to utilize . - : Enabled for reference dataset DataLoader. - : Adjusted inference DataLoader to include . These changes aim to optimize memory usage and improve data transfer speeds during model training and inference. Signed-off-by: samet-akcay <[email protected]> * refactor(models): streamline decoder retrieval in function This commit refactors the function in to utilize a dictionary mapping for decoder architectures, improving readability and maintainability. The previous conditional checks have been replaced with a more efficient approach, enhancing the overall structure of the code. Signed-off-by: samet-akcay <[email protected]> * fix(model): update logit_scale initialization to use torch.log for consistency This commit modifies the initialization of the logit_scale parameter in the CLIP model to utilize torch.log instead of np.log. This change ensures consistency in tensor operations and improves compatibility with PyTorch's computation graph. Signed-off-by: samet-akcay <[email protected]> * fix(model): update anomaly map generation to use torch tensors for calculations This commit modifies the anomaly map generation logic to utilize PyTorch tensors instead of NumPy arrays for various calculations. This change enhances compatibility with the PyTorch computation graph and improves performance by leveraging GPU acceleration. Key updates include the conversion of statistical calculations and tensor operations to use PyTorch functions, ensuring consistency in tensor handling throughout the code. Signed-off-by: samet-akcay <[email protected]> * refactor(model): enhance anomaly map generation with PyTorch for statistical calculations This commit refactors the anomaly map generation logic to replace NumPy-based statistical calculations with PyTorch equivalents, specifically using the distribution for computing tau. Additionally, it improves precision handling by allowing the use of float64 in high precision mode. The changes streamline the computation process and maintain compatibility with the PyTorch computation graph. Signed-off-by: samet-akcay <[email protected]> * chore(license): update license year Signed-off-by: samet-akcay <[email protected]> * fix(download): enhance URL validation and update download logic This commit improves the URL validation in the download function to ensure only http and https schemes are allowed. Additionally, it adds comments to clarify the safety of using under these conditions, enhancing code readability and security awareness. Signed-off-by: samet-akcay <[email protected]> * π§ chore: update copyright year and add keys method to NumpyBatch and Batch classes This commit updates the copyright year in the Numpy and Torch base files to reflect 2024-2025. Additionally, it introduces a new `keys` method in both the `NumpyBatch` and `Batch` classes, allowing users to retrieve field names with an option to include or exclude fields with None values. The `__getitem__` method is also added to enable dictionary-like access to field values. Signed-off-by: [Your Name] <[Your Email]> * fix mypy Signed-off-by: samet-akcay <[email protected]> * refactor: improve dataset name and category handling in ImageVisualizer This commit updates the ImageVisualizer class to handle dataset name and category attributes more robustly by using None as the default value instead of empty strings. This change enhances clarity and ensures that the filename generation logic remains consistent when these attributes are not present. Signed-off-by: Samet Akcay [email protected] * refactor: unify visualization method naming in ImageVisualizer This commit refactors the ImageVisualizer class by renaming the `visualize_image` method to `visualize`, streamlining the interface for users. The updated method signature and examples in the docstring reflect this change, ensuring consistency in how predictions are visualized. Additionally, the copyright year has been updated to 2024-2025. Signed-off-by: Samet Akcay <[email protected]> --------- Signed-off-by: samet-akcay <[email protected]> Signed-off-by: [Your Name] <[Your Email]> Signed-off-by: Samet Akcay [email protected] Signed-off-by: Samet Akcay <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
β¦d model backends (#2954) * fix(data): enable pin_memory for DataLoader instances across the codebase This commit updates various DataLoader instances in the project to enable the option, enhancing performance for data loading on GPU. Changes were made in the following files: - : Updated train and test DataLoader configurations. - : Modified datamodule DataLoader to include . - : Added to evaluation DataLoader. - : Updated DataLoader for datasets to utilize . - : Enabled for reference dataset DataLoader. - : Adjusted inference DataLoader to include . These changes aim to optimize memory usage and improve data transfer speeds during model training and inference. Signed-off-by: samet-akcay <[email protected]> * refactor(models): streamline decoder retrieval in function This commit refactors the function in to utilize a dictionary mapping for decoder architectures, improving readability and maintainability. The previous conditional checks have been replaced with a more efficient approach, enhancing the overall structure of the code. Signed-off-by: samet-akcay <[email protected]> * fix(model): update logit_scale initialization to use torch.log for consistency This commit modifies the initialization of the logit_scale parameter in the CLIP model to utilize torch.log instead of np.log. This change ensures consistency in tensor operations and improves compatibility with PyTorch's computation graph. Signed-off-by: samet-akcay <[email protected]> * fix(model): update anomaly map generation to use torch tensors for calculations This commit modifies the anomaly map generation logic to utilize PyTorch tensors instead of NumPy arrays for various calculations. This change enhances compatibility with the PyTorch computation graph and improves performance by leveraging GPU acceleration. Key updates include the conversion of statistical calculations and tensor operations to use PyTorch functions, ensuring consistency in tensor handling throughout the code. Signed-off-by: samet-akcay <[email protected]> * refactor(model): enhance anomaly map generation with PyTorch for statistical calculations This commit refactors the anomaly map generation logic to replace NumPy-based statistical calculations with PyTorch equivalents, specifically using the distribution for computing tau. Additionally, it improves precision handling by allowing the use of float64 in high precision mode. The changes streamline the computation process and maintain compatibility with the PyTorch computation graph. Signed-off-by: samet-akcay <[email protected]> * chore(license): update license year Signed-off-by: samet-akcay <[email protected]> * fix(download): enhance URL validation and update download logic This commit improves the URL validation in the download function to ensure only http and https schemes are allowed. Additionally, it adds comments to clarify the safety of using under these conditions, enhancing code readability and security awareness. Signed-off-by: samet-akcay <[email protected]> * π fix(graph): Corrected isinstance check for logger types in GraphLogger class * π fix(comet): Improve CometLogger import handling and provide a dummy class for missing dependency * π fix(mlflow): Add dummy MLFlowLogger class for missing MLFlow dependency and improve import handling * π fix(tensorboard): Improve TensorBoardLogger import handling and add dummy class for missing dependency * π fix(wandb): Enhance WandbLogger import handling and add dummy class for missing dependency * π fix(chat_gpt): Enhance dotenv import handling and update API key retrieval logic to account for missing dependency * π fix(ollama): Improve import handling for Ollama dependency and add dummy class for missing package * π fix(winclip): Improve import handling for open_clip dependency and raise informative error messages for missing package * π fix(imports): Introduce OptionalImport class for cleaner handling of optional dependencies and update video and ollama modules to utilize it for improved error messaging. * π fix(imports): Update error messaging in OptionalImport class to enhance clarity when dependencies are missing. --------- Signed-off-by: samet-akcay <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
π fix(path): remove filter to remove hidden files and add a warning log for the same Signed-off-by: StarPlatinum7 <[email protected]>
β¦l dependencies (#2956) * fix(data): enable pin_memory for DataLoader instances across the codebase This commit updates various DataLoader instances in the project to enable the option, enhancing performance for data loading on GPU. Changes were made in the following files: - : Updated train and test DataLoader configurations. - : Modified datamodule DataLoader to include . - : Added to evaluation DataLoader. - : Updated DataLoader for datasets to utilize . - : Enabled for reference dataset DataLoader. - : Adjusted inference DataLoader to include . These changes aim to optimize memory usage and improve data transfer speeds during model training and inference. Signed-off-by: samet-akcay <[email protected]> * refactor(models): streamline decoder retrieval in function This commit refactors the function in to utilize a dictionary mapping for decoder architectures, improving readability and maintainability. The previous conditional checks have been replaced with a more efficient approach, enhancing the overall structure of the code. Signed-off-by: samet-akcay <[email protected]> * fix(model): update logit_scale initialization to use torch.log for consistency This commit modifies the initialization of the logit_scale parameter in the CLIP model to utilize torch.log instead of np.log. This change ensures consistency in tensor operations and improves compatibility with PyTorch's computation graph. Signed-off-by: samet-akcay <[email protected]> * fix(model): update anomaly map generation to use torch tensors for calculations This commit modifies the anomaly map generation logic to utilize PyTorch tensors instead of NumPy arrays for various calculations. This change enhances compatibility with the PyTorch computation graph and improves performance by leveraging GPU acceleration. Key updates include the conversion of statistical calculations and tensor operations to use PyTorch functions, ensuring consistency in tensor handling throughout the code. Signed-off-by: samet-akcay <[email protected]> * refactor(model): enhance anomaly map generation with PyTorch for statistical calculations This commit refactors the anomaly map generation logic to replace NumPy-based statistical calculations with PyTorch equivalents, specifically using the distribution for computing tau. Additionally, it improves precision handling by allowing the use of float64 in high precision mode. The changes streamline the computation process and maintain compatibility with the PyTorch computation graph. Signed-off-by: samet-akcay <[email protected]> * chore(license): update license year Signed-off-by: samet-akcay <[email protected]> * fix(download): enhance URL validation and update download logic This commit improves the URL validation in the download function to ensure only http and https schemes are allowed. Additionally, it adds comments to clarify the safety of using under these conditions, enhancing code readability and security awareness. Signed-off-by: samet-akcay <[email protected]> * ποΈ chore(imports): remove OptionalImport class for optional dependency handling Signed-off-by: samet-akcay <[email protected]> * π fix(imports): Replace OptionalImport with dummy classes for missing dependencies This commit removes the OptionalImport class and introduces dummy classes for various loggers and video utilities when their respective dependencies are not installed. The changes enhance error messaging by providing clear instructions for installation, improving user experience when encountering missing packages. Affected files: - video.py - comet.py - mlflow.py - tensorboard.py - wandb.py - ollama.py Signed-off-by: samet-akcay <[email protected]> --------- Signed-off-by: samet-akcay <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
ignore uv.lock in semgrep Signed-off-by: Ashwin Vaidya <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
β¦ itself will not be modified (#2966) fix in dryrun_find_featuremap_dims: run the model in eval() so the weights of the model itself will not be modified Signed-off-by: StarPlatinum7 <[email protected]>
π fix(ovinferencer): update cache folder name to 'openvino_cache' and ensure string path for set_property Signed-off-by: StarPlatinum7 <[email protected]>
* π fix(pr.yaml): Increase unit test timeout from 15 to 30 seconds * π fix(_reusable-test-suite.yaml): Update example timeout from 15 to 30 minutes Signed-off-by: StarPlatinum7 <[email protected]>
* Fix synthetic masks + incorrect F1 score Signed-off-by: Ashwin Vaidya <[email protected]> * Renormalize instead of retry Signed-off-by: Ashwin Vaidya <[email protected]> * Fix imports Signed-off-by: Ashwin Vaidya <[email protected]> * Add rescaling around threshold Signed-off-by: Ashwin Vaidya <[email protected]> --------- Signed-off-by: Ashwin Vaidya <[email protected]> Signed-off-by: Ashwin Vaidya <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
* Use uv commands Signed-off-by: Ashwin Vaidya <[email protected]> * Add source activate step Signed-off-by: Ashwin Vaidya <[email protected]> --------- Signed-off-by: Ashwin Vaidya <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
* π feat(model): make improvements for patchcore on xpu * π refactor(k_center_greedy): remove profiling code. Signed-off-by: rajeshgangireddy <[email protected]> * π feat(benchmark): add seed setting for reproducibility in run_benchmark function * π refactor(k_center_greedy): enhance device handling and remove unused benchmark scripts * π refactor(k_center_greedy): remove the unused case of multiple centers to simplify * π fix(comments): update variable names --------- Signed-off-by: rajeshgangireddy <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
Signed-off-by: oep-renovate[bot] <212772560+oep-renovate[bot]@users.noreply.github.com> Co-authored-by: oep-renovate[bot] <212772560+oep-renovate[bot]@users.noreply.github.com> Signed-off-by: StarPlatinum7 <[email protected]>
* π feat(dataset): add BMAD dataset to Anomalib (#2900) * Adding BMAD dataset to Anomalib Signed-off-by: Devansh Agarwal <[email protected]> * Fixed pre-commit hook errors Signed-off-by: Devansh Agarwal <[email protected]> --------- Signed-off-by: Devansh Agarwal <[email protected]> * π§ refactor(data): Polish BMAD dataset (#2981) * π§Ή Polish dataset π§ͺ Add tests π Fix documentation π οΈ Minor fixes Signed-off-by: Ashwin Vaidya <[email protected]> * Update src/anomalib/data/datamodules/image/bmad.py Co-authored-by: Rajesh Gangireddy <[email protected]> Signed-off-by: Ashwin Vaidya <[email protected]> --------- Signed-off-by: Ashwin Vaidya <[email protected]> Signed-off-by: Ashwin Vaidya <[email protected]> Co-authored-by: Rajesh Gangireddy <[email protected]> * Fix mask_samples Signed-off-by: Ashwin Vaidya <[email protected]> --------- Signed-off-by: Devansh Agarwal <[email protected]> Signed-off-by: Ashwin Vaidya <[email protected]> Signed-off-by: Ashwin Vaidya <[email protected]> Co-authored-by: Devansh Agarwal <[email protected]> Co-authored-by: Rajesh Gangireddy <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
* π feat(dataset): add 3D-ADAM dataset to Anomalib (#2986) * π fix(utils): revert `OptionalImport` class to handle missing optional dependencies (#2956) * fix(data): enable pin_memory for DataLoader instances across the codebase This commit updates various DataLoader instances in the project to enable the option, enhancing performance for data loading on GPU. Changes were made in the following files: - : Updated train and test DataLoader configurations. - : Modified datamodule DataLoader to include . - : Added to evaluation DataLoader. - : Updated DataLoader for datasets to utilize . - : Enabled for reference dataset DataLoader. - : Adjusted inference DataLoader to include . These changes aim to optimize memory usage and improve data transfer speeds during model training and inference. Signed-off-by: samet-akcay <[email protected]> * refactor(models): streamline decoder retrieval in function This commit refactors the function in to utilize a dictionary mapping for decoder architectures, improving readability and maintainability. The previous conditional checks have been replaced with a more efficient approach, enhancing the overall structure of the code. Signed-off-by: samet-akcay <[email protected]> * fix(model): update logit_scale initialization to use torch.log for consistency This commit modifies the initialization of the logit_scale parameter in the CLIP model to utilize torch.log instead of np.log. This change ensures consistency in tensor operations and improves compatibility with PyTorch's computation graph. Signed-off-by: samet-akcay <[email protected]> * fix(model): update anomaly map generation to use torch tensors for calculations This commit modifies the anomaly map generation logic to utilize PyTorch tensors instead of NumPy arrays for various calculations. This change enhances compatibility with the PyTorch computation graph and improves performance by leveraging GPU acceleration. Key updates include the conversion of statistical calculations and tensor operations to use PyTorch functions, ensuring consistency in tensor handling throughout the code. Signed-off-by: samet-akcay <[email protected]> * refactor(model): enhance anomaly map generation with PyTorch for statistical calculations This commit refactors the anomaly map generation logic to replace NumPy-based statistical calculations with PyTorch equivalents, specifically using the distribution for computing tau. Additionally, it improves precision handling by allowing the use of float64 in high precision mode. The changes streamline the computation process and maintain compatibility with the PyTorch computation graph. Signed-off-by: samet-akcay <[email protected]> * chore(license): update license year Signed-off-by: samet-akcay <[email protected]> * fix(download): enhance URL validation and update download logic This commit improves the URL validation in the download function to ensure only http and https schemes are allowed. Additionally, it adds comments to clarify the safety of using under these conditions, enhancing code readability and security awareness. Signed-off-by: samet-akcay <[email protected]> * ποΈ chore(imports): remove OptionalImport class for optional dependency handling Signed-off-by: samet-akcay <[email protected]> * π fix(imports): Replace OptionalImport with dummy classes for missing dependencies This commit removes the OptionalImport class and introduces dummy classes for various loggers and video utilities when their respective dependencies are not installed. The changes enhance error messaging by providing clear instructions for installation, improving user experience when encountering missing packages. Affected files: - video.py - comet.py - mlflow.py - tensorboard.py - wandb.py - ollama.py Signed-off-by: samet-akcay <[email protected]> --------- Signed-off-by: samet-akcay <[email protected]> Signed-off-by: Paul McHard <[email protected]> * Added 3D-ADAM Dataset Signed-off-by: Paul McHard <[email protected]> * Added tests and example config Signed-off-by: Paul McHard <[email protected]> * π¨ fix(semgrep): ignore uv.lock in semgrep (#2972) ignore uv.lock in semgrep Signed-off-by: Ashwin Vaidya <[email protected]> Signed-off-by: Paul McHard <[email protected]> * π fix(utils): Run CS Flow model in eval() so the weights of the model itself will not be modified (#2966) fix in dryrun_find_featuremap_dims: run the model in eval() so the weights of the model itself will not be modified Signed-off-by: Paul McHard <[email protected]> * π fix(ovinferencer): Fix openvino cache directory (#2979) π fix(ovinferencer): update cache folder name to 'openvino_cache' and ensure string path for set_property Signed-off-by: Paul McHard <[email protected]> * changes per PR and pre-commit checks Signed-off-by: Paul McHard <[email protected]> * resolve circular import issue Signed-off-by: Paul McHard <[email protected]> * Resolve DownloadInfo URL issue. Signed-off-by: Paul McHard <[email protected]> * Resolve DownloadInfo URL Signed-off-by: Paul McHard <[email protected]> * restore doc images ignored in error Signed-off-by: Paul McHard <[email protected]> * Removed prettier cache included in error, re-run pre-commit hooks Signed-off-by: Paul McHard <[email protected]> * explictly resolve EOF error on docs/source/examples Signed-off-by: Paul McHard <[email protected]> * resolve filename issue in adam3d test. Signed-off-by: Paul McHard <[email protected]> * Restore uv.lock Signed-off-by: Paul McHard <[email protected]> --------- Signed-off-by: samet-akcay <[email protected]> Signed-off-by: Paul McHard <[email protected]> Signed-off-by: Ashwin Vaidya <[email protected]> Signed-off-by: Paul McHard <[email protected]> Co-authored-by: Samet Akcay <[email protected]> Co-authored-by: Ashwin Vaidya <[email protected]> Co-authored-by: Rune <[email protected]> Co-authored-by: Rajesh Gangireddy <[email protected]> * revert changes to example Signed-off-by: Ashwin Vaidya <[email protected]> * revert file permissions Signed-off-by: Ashwin Vaidya <[email protected]> * π§ refactor(data): Polish 3dAdam dataset (#3002) * Add changelog + fix dataset location Signed-off-by: Ashwin Vaidya <[email protected]> * revert changes to example Signed-off-by: Ashwin Vaidya <[email protected]> * revert file permissions Signed-off-by: Ashwin Vaidya <[email protected]> * Fix tests Signed-off-by: Ashwin Vaidya <[email protected]> --------- Signed-off-by: Ashwin Vaidya <[email protected]> * revert examples Signed-off-by: Ashwin Vaidya <[email protected]> * revert file permissions Signed-off-by: Ashwin Vaidya <[email protected]> * Add imagecodecs dependency Signed-off-by: Ashwin Vaidya <[email protected]> * Apply suggestion from @samet-akcay Co-authored-by: Samet Akcay <[email protected]> Signed-off-by: Ashwin Vaidya <[email protected]> --------- Signed-off-by: samet-akcay <[email protected]> Signed-off-by: Paul McHard <[email protected]> Signed-off-by: Ashwin Vaidya <[email protected]> Signed-off-by: Paul McHard <[email protected]> Signed-off-by: Ashwin Vaidya <[email protected]> Co-authored-by: Paul McHard <[email protected]> Co-authored-by: Samet Akcay <[email protected]> Co-authored-by: Rune <[email protected]> Co-authored-by: Rajesh Gangireddy <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
* fix(data): enable pin_memory for DataLoader instances across the codebase This commit updates various DataLoader instances in the project to enable the option, enhancing performance for data loading on GPU. Changes were made in the following files: - : Updated train and test DataLoader configurations. - : Modified datamodule DataLoader to include . - : Added to evaluation DataLoader. - : Updated DataLoader for datasets to utilize . - : Enabled for reference dataset DataLoader. - : Adjusted inference DataLoader to include . These changes aim to optimize memory usage and improve data transfer speeds during model training and inference. Signed-off-by: samet-akcay <[email protected]> * refactor(models): streamline decoder retrieval in function This commit refactors the function in to utilize a dictionary mapping for decoder architectures, improving readability and maintainability. The previous conditional checks have been replaced with a more efficient approach, enhancing the overall structure of the code. Signed-off-by: samet-akcay <[email protected]> * fix(model): update logit_scale initialization to use torch.log for consistency This commit modifies the initialization of the logit_scale parameter in the CLIP model to utilize torch.log instead of np.log. This change ensures consistency in tensor operations and improves compatibility with PyTorch's computation graph. Signed-off-by: samet-akcay <[email protected]> * fix(model): update anomaly map generation to use torch tensors for calculations This commit modifies the anomaly map generation logic to utilize PyTorch tensors instead of NumPy arrays for various calculations. This change enhances compatibility with the PyTorch computation graph and improves performance by leveraging GPU acceleration. Key updates include the conversion of statistical calculations and tensor operations to use PyTorch functions, ensuring consistency in tensor handling throughout the code. Signed-off-by: samet-akcay <[email protected]> * refactor(model): enhance anomaly map generation with PyTorch for statistical calculations This commit refactors the anomaly map generation logic to replace NumPy-based statistical calculations with PyTorch equivalents, specifically using the distribution for computing tau. Additionally, it improves precision handling by allowing the use of float64 in high precision mode. The changes streamline the computation process and maintain compatibility with the PyTorch computation graph. Signed-off-by: samet-akcay <[email protected]> * chore(license): update license year Signed-off-by: samet-akcay <[email protected]> * fix(download): enhance URL validation and update download logic This commit improves the URL validation in the download function to ensure only http and https schemes are allowed. Additionally, it adds comments to clarify the safety of using under these conditions, enhancing code readability and security awareness. Signed-off-by: samet-akcay <[email protected]> * π chore(changelog): update changelog for v2.2.0 release with added features and fixes * π fix(version): update version from 2.2.0dev to 2.2.0 * Update CHANGELOG.md Signed-off-by: Ashwin Vaidya <[email protected]> * Update changelog Signed-off-by: Ashwin Vaidya <[email protected]> * Use full PR links Signed-off-by: Ashwin Vaidya <[email protected]> * Add authors in changelog Signed-off-by: Ashwin Vaidya <[email protected]> * Update CHANGELOG.md Co-authored-by: Copilot <[email protected]> Signed-off-by: Ashwin Vaidya <[email protected]> --------- Signed-off-by: samet-akcay <[email protected]> Signed-off-by: Ashwin Vaidya <[email protected]> Signed-off-by: Ashwin Vaidya <[email protected]> Co-authored-by: Ashwin Vaidya <[email protected]> Co-authored-by: Ashwin Vaidya <[email protected]> Co-authored-by: Copilot <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
* Remove duplicate entry Signed-off-by: Ashwin Vaidya <[email protected]> * Add missing entry Signed-off-by: Ashwin Vaidya <[email protected]> --------- Signed-off-by: Ashwin Vaidya <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
Update version Signed-off-by: Ashwin Vaidya <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
π¦ update(README): Announce v2.2.0 release with new datasets, metrics, and performance improvements Signed-off-by: StarPlatinum7 <[email protected]>
π fix(metrics): disable mps for torch metrics (#3018) * move to cpu when device is mps --------- Signed-off-by: Ma, Xiangxiang <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
Signed-off-by: StarPlatinum7 <[email protected]>
Signed-off-by: StarPlatinum7 <[email protected]>
Co-authored-by: Copilot <[email protected]> Signed-off-by: Rajesh Gangireddy <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
Co-authored-by: Copilot <[email protected]> Signed-off-by: Rajesh Gangireddy <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
Co-authored-by: Copilot <[email protected]> Signed-off-by: Rajesh Gangireddy <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
Signed-off-by: StarPlatinum7 <[email protected]>
β¦ print statement Signed-off-by: StarPlatinum7 <[email protected]>
β¦er clarity Signed-off-by: StarPlatinum7 <[email protected]>
Signed-off-by: StarPlatinum7 <[email protected]>
β¦rity Signed-off-by: StarPlatinum7 <[email protected]>
β¦check if implementation matches author's implementation Signed-off-by: StarPlatinum7 <[email protected]>
Update CODEOWNERS Signed-off-by: Ashwin Vaidya <[email protected]> Signed-off-by: StarPlatinum7 <[email protected]>
Signed-off-by: StarPlatinum7 <[email protected]>
| --error \ | ||
| --timeout "$INPUTS_TIMEOUT" \ | ||
| --metrics=off \ | ||
| --exclude "uv.lock" \ |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase you PR as we removed this action (in #3014) and currenly use action from geti-ci.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π Description
β¨ Changes
Select what type of change your PR is:
β Checklist
Before you submit your pull request, please make sure you have completed the following steps:
For more information about code review checklists, see the Code Review Checklist.