From 0cb0cc5d943c06706292cae404e4864d1f543e58 Mon Sep 17 00:00:00 2001 From: Weilin Xu Date: Thu, 1 May 2025 15:53:32 -0700 Subject: [PATCH] FIx formats to avoid docformatter and mdforat complains in the main branch. --- README.md | 2 +- examples/anomalib_adversary/README.md | 2 +- mart/utils/export.py | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2c20e812..d85dd35e 100644 --- a/README.md +++ b/README.md @@ -81,4 +81,4 @@ This material is based upon work supported by the Defense Advanced Research Proj ## Disclaimer -This “research quality code” is provided by Intel “As Is” without any express or implied warranty of any kind. Intel does not warrant or assume responsibility for the accuracy or completeness of any information, text, graphics, links or other items within the code. A thorough security review has not been performed on this code. Additionally, this repository will not be actively maintained and as such may contain components that are out of date, or contain known security vulnerabilities. Proceed with caution. +This “research quality code” is provided by Intel “As Is” without any express or implied warranty of any kind. Intel does not warrant or assume responsibility for the accuracy or completeness of any information, text, graphics, links or other items within the code. A thorough security review has not been performed on this code. Additionally, this repository will not be actively maintained and as such may contain components that are out of date, or contain known security vulnerabilities. Proceed with caution. diff --git a/examples/anomalib_adversary/README.md b/examples/anomalib_adversary/README.md index 4f6c481e..f255203e 100644 --- a/examples/anomalib_adversary/README.md +++ b/examples/anomalib_adversary/README.md @@ -12,7 +12,7 @@ pip install -e . ## Experiment -0. \[Optional\] Soft link the existing datasets folder from Anomalib if you have downloaded datasets before with Anomalib. +0. [Optional] Soft link the existing datasets folder from Anomalib if you have downloaded datasets before with Anomalib. ```sh ln -s {PATH_TO_ANOMALIB_REPO}/datasets . diff --git a/mart/utils/export.py b/mart/utils/export.py index 712c5a2d..252539d5 100644 --- a/mart/utils/export.py +++ b/mart/utils/export.py @@ -121,9 +121,10 @@ def _get_coco_format_annotations( Format is defined at https://cocodataset.org/#format-data - The code is adapted from https://github.com/PyTorchLightning/metrics/blob/v0.6.0/torchmetrics/detection/map.py#L356 - Return annotations only; - Add image_id. + The code is adapted from + https://github.com/PyTorchLightning/metrics/blob/v0.6.0/torchmetrics/detection/map.py#L356 + Return annotations only; + Add image_id. """ annotations = []