diff --git a/main/.buildinfo b/main/.buildinfo index 3ebed96..2d5a6b6 100644 --- a/main/.buildinfo +++ b/main/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 0aa45225512a3cff6d87beabe3dafe29 +config: 270192e2b460c9d451d3ffa43f293a3d tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/main/.doctrees/api_doc/config/index.doctree b/main/.doctrees/api_doc/config/index.doctree index cff0c3b..f57b0bc 100644 Binary files a/main/.doctrees/api_doc/config/index.doctree and b/main/.doctrees/api_doc/config/index.doctree differ diff --git a/main/.doctrees/api_doc/config/meta.doctree b/main/.doctrees/api_doc/config/meta.doctree index 0f77d05..a4d07ce 100644 Binary files a/main/.doctrees/api_doc/config/meta.doctree and b/main/.doctrees/api_doc/config/meta.doctree differ diff --git a/main/.doctrees/api_doc/fidelity/ccip.doctree b/main/.doctrees/api_doc/fidelity/ccip.doctree new file mode 100644 index 0000000..b6fb5bd Binary files /dev/null and b/main/.doctrees/api_doc/fidelity/ccip.doctree differ diff --git a/main/.doctrees/api_doc/fidelity/index.doctree b/main/.doctrees/api_doc/fidelity/index.doctree new file mode 100644 index 0000000..140f0a3 Binary files /dev/null and b/main/.doctrees/api_doc/fidelity/index.doctree differ diff --git a/main/.doctrees/api_doc/utils/images.doctree b/main/.doctrees/api_doc/utils/images.doctree new file mode 100644 index 0000000..2245729 Binary files /dev/null and b/main/.doctrees/api_doc/utils/images.doctree differ diff --git a/main/.doctrees/api_doc/utils/index.doctree b/main/.doctrees/api_doc/utils/index.doctree new file mode 100644 index 0000000..9928a67 Binary files /dev/null and b/main/.doctrees/api_doc/utils/index.doctree differ diff --git a/main/.doctrees/api_doc/utils/tqdm_.doctree b/main/.doctrees/api_doc/utils/tqdm_.doctree new file mode 100644 index 0000000..3d47ed5 Binary files /dev/null and b/main/.doctrees/api_doc/utils/tqdm_.doctree differ diff --git a/main/.doctrees/environment.pickle b/main/.doctrees/environment.pickle index 0b1b530..0f5d573 100644 Binary files a/main/.doctrees/environment.pickle and b/main/.doctrees/environment.pickle differ diff --git a/main/.doctrees/index.doctree b/main/.doctrees/index.doctree index b559435..2828077 100644 Binary files a/main/.doctrees/index.doctree and b/main/.doctrees/index.doctree differ diff --git a/main/.doctrees/information/environment.doctree b/main/.doctrees/information/environment.doctree index 4623d84..1e41340 100644 Binary files a/main/.doctrees/information/environment.doctree and b/main/.doctrees/information/environment.doctree differ diff --git a/main/.doctrees/information/environment.result.doctree b/main/.doctrees/information/environment.result.doctree index e82afec..870bf43 100644 Binary files a/main/.doctrees/information/environment.result.doctree and b/main/.doctrees/information/environment.result.doctree differ diff --git a/main/.doctrees/nbsphinx/information/environment.ipynb b/main/.doctrees/nbsphinx/information/environment.ipynb index fb6a444..f5caa5d 100644 --- a/main/.doctrees/nbsphinx/information/environment.ipynb +++ b/main/.doctrees/nbsphinx/information/environment.ipynb @@ -29,10 +29,10 @@ "execution_count": 1, "metadata": { "execution": { - "iopub.execute_input": "2023-11-15T14:15:20.121987Z", - "iopub.status.busy": "2023-11-15T14:15:20.121792Z", - "iopub.status.idle": "2023-11-15T14:15:21.287978Z", - "shell.execute_reply": "2023-11-15T14:15:21.287202Z" + "iopub.execute_input": "2023-11-15T14:39:53.849066Z", + "iopub.status.busy": "2023-11-15T14:39:53.848856Z", + "iopub.status.idle": "2023-11-15T14:39:55.028070Z", + "shell.execute_reply": "2023-11-15T14:39:55.027293Z" }, "pycharm": { "name": "#%%\n" @@ -53,7 +53,7 @@ "text": [ "CPU Brand: AMD EPYC 7763 64-Core Processor\n", "CPU Count: 4\n", - "CPU Freq: 2743.58275 MHz\n", + "CPU Freq: 2709.3277500000004 MHz\n", "Memory Size: 15.607 GiB\n", "Has CUDA: No\n" ] diff --git a/main/.doctrees/nbsphinx/information/environment.result.ipynb b/main/.doctrees/nbsphinx/information/environment.result.ipynb index 155db92..b12fb7e 100644 --- a/main/.doctrees/nbsphinx/information/environment.result.ipynb +++ b/main/.doctrees/nbsphinx/information/environment.result.ipynb @@ -29,10 +29,10 @@ "execution_count": 1, "metadata": { "execution": { - "iopub.execute_input": "2023-11-15T14:15:04.217291Z", - "iopub.status.busy": "2023-11-15T14:15:04.217090Z", - "iopub.status.idle": "2023-11-15T14:15:05.390656Z", - "shell.execute_reply": "2023-11-15T14:15:05.389917Z" + "iopub.execute_input": "2023-11-15T14:39:27.714891Z", + "iopub.status.busy": "2023-11-15T14:39:27.714338Z", + "iopub.status.idle": "2023-11-15T14:39:28.893554Z", + "shell.execute_reply": "2023-11-15T14:39:28.892732Z" }, "pycharm": { "name": "#%%\n" @@ -47,7 +47,7 @@ "Python: CPython 3.8.18\n", "CPU Brand: AMD EPYC 7763 64-Core Processor\n", "CPU Count: 4\n", - "CPU Freq: 3044.5004999999996 MHz\n", + "CPU Freq: 2711.63825 MHz\n", "Memory Size: 15.607 GiB\n", "Has CUDA: No\n" ] diff --git a/main/.doctrees/tutorials/installation/index.doctree b/main/.doctrees/tutorials/installation/index.doctree index 76868cc..903fe1e 100644 Binary files a/main/.doctrees/tutorials/installation/index.doctree and b/main/.doctrees/tutorials/installation/index.doctree differ diff --git a/main/.doctrees/tutorials/quick_start/index.doctree b/main/.doctrees/tutorials/quick_start/index.doctree index 2ee0225..edfbd7d 100644 Binary files a/main/.doctrees/tutorials/quick_start/index.doctree and b/main/.doctrees/tutorials/quick_start/index.doctree differ diff --git a/main/_modules/index.html b/main/_modules/index.html new file mode 100644 index 0000000..4442fd3 --- /dev/null +++ b/main/_modules/index.html @@ -0,0 +1,226 @@ + + + + + + + + + + + Overview: module code — sdeval 0.0.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + +
+ +
+ + + + + + + + + + + + + + + + + +
+ +
    + +
  • Docs »
  • + +
  • Overview: module code
  • + + +
  • + +
  • + +
+ + +
+
+
+
+ + + +

All modules for which code is available

+ + + +
+ +
+ + +
+
+ +
+ +
+ +
+ + Other Versions + v: main + + +
+
+
Branches
+
main
+
+
+
+ + + + + + + + + + \ No newline at end of file diff --git a/main/_modules/sdeval/fidelity/ccip.html b/main/_modules/sdeval/fidelity/ccip.html new file mode 100644 index 0000000..4c6499d --- /dev/null +++ b/main/_modules/sdeval/fidelity/ccip.html @@ -0,0 +1,302 @@ + + + + + + + + + + + sdeval.fidelity.ccip — sdeval 0.0.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + +
+ +
+ + + + + + + + + + + + + + + + + +
+ + + + +
+
+
+
+ + + +

Source code for sdeval.fidelity.ccip

+"""
+Overview:
+    CCIP-based metrics for anime character training.
+
+    See `imgutils.metrics.ccip <https://deepghs.github.io/imgutils/main/api_doc/metrics/ccip.html>`_ for more information.
+"""
+from typing import List, Optional
+
+from PIL import Image
+from imgutils.metrics import ccip_extract_feature, ccip_default_threshold, ccip_batch_differences
+
+from ..utils import load_images, ImagesTyping, tqdm
+
+_DEFAULT_CCIP_MODEL = 'ccip-caformer-24-randaug-pruned'
+
+
+
[docs]class CCIPMetrics: + """ + Class for calculating similarity scores between images using the CCIP (Content-Consistent Image Pairwise) metric. + + The `CCIPMetrics` class allows you to calculate the similarity score between a set of images and a reference dataset using the CCIP metric. + + :param images: The reference dataset of images for initializing CCIP metrics. + :type images: ImagesTyping + :param model: The CCIP model to use for feature extraction. Default is 'ccip-caformer-24-randaug-pruned'. + :type model: str + :param threshold: The threshold for the CCIP metric. If not provided, the default threshold for the chosen model is used. + :type threshold: Optional[float] + :param silent: If True, suppresses progress bars and additional output during initialization and calculation. + :type silent: bool + :param tqdm_desc: Description for the tqdm progress bar during initialization and calculation. + :type tqdm_desc: str + """ + +
[docs] def __init__(self, images: ImagesTyping, model: str = _DEFAULT_CCIP_MODEL, + threshold: Optional[float] = None, silent: bool = False, tqdm_desc: str = None): + image_list: List[Image.Image] = load_images(images) + if not image_list: + raise FileNotFoundError(f'Images for initializing CCIP metrics not provided - {images}.') + + self.silent = silent + self.tqdm_desc = tqdm_desc or self.__class__.__name__ + self._ccip_model = model + self._features = [ + ccip_extract_feature(img, model=self._ccip_model) + for img in tqdm(image_list, silent=self.silent, desc=f'{self.tqdm_desc} Initializing') + ] + self._threshold = ccip_default_threshold(self._ccip_model) if threshold is None else threshold
+ +
[docs] def score(self, images: ImagesTyping, silent: bool = None) -> float: + """ + Calculate the similarity score between the reference dataset and a set of input images. + + This method calculates the similarity score between the reference dataset (used for initialization) and a set of input images using the CCIP metric. + + :param images: The set of input images for calculating CCIP metrics. + :type images: ImagesTyping + :param silent: If True, suppresses progress bars and additional output during calculation. + :type silent: bool + + :return: The similarity score between the reference dataset and the input images. + :rtype: float + """ + image_list: List[Image.Image] = load_images(images) + if not image_list: + raise FileNotFoundError(f'Images for calculating CCIP metrics not provided - {images}.') + + _features = [ + ccip_extract_feature(img, model=self._ccip_model) + for img in tqdm(image_list, silent=self.silent if silent is None else silent, + desc=f'{self.tqdm_desc} Calculating') + ] + + diffs = ccip_batch_differences([*self._features, *_features]) + matrix = diffs[:len(self._features), len(self._features):] + + return (matrix < self._threshold).mean().item()
+
+ + +
+ +
+ + +
+
+ +
+ +
+ +
+ + Other Versions + v: main + + +
+
+
Branches
+
main
+
+
+
+ + + + + + + + + + \ No newline at end of file diff --git a/main/_modules/sdeval/utils/images.html b/main/_modules/sdeval/utils/images.html new file mode 100644 index 0000000..db600a3 --- /dev/null +++ b/main/_modules/sdeval/utils/images.html @@ -0,0 +1,275 @@ + + + + + + + + + + + sdeval.utils.images — sdeval 0.0.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + +
+ +
+ + + + + + + + + + + + + + + + + +
+ + + + +
+
+
+
+ + + +

Source code for sdeval.utils.images

+import os.path
+from typing import List, Iterator, Union
+
+from PIL import UnidentifiedImageError, Image
+from imgutils.data import load_image
+
+ImagesTyping = Union[Image.Image, str, List[Union[Image.Image, str]]]
+
+
+def _yield_images(images: ImagesTyping) -> Iterator[Image.Image]:
+    """
+    Yield PIL.Image objects from various sources.
+
+    This internal function yields PIL.Image objects from a variety of sources, including PIL.Image objects, file paths, and lists of images. It supports recursive loading of images from directories.
+
+    :param images: An image or a list of images (PIL.Image, file paths, or a combination).
+    :type images: ImagesTyping
+
+    :return: An iterator yielding PIL.Image objects.
+    :rtype: Iterator[Image.Image]
+    """
+    if isinstance(images, list):
+        for item in images:
+            yield from _yield_images(item)
+    elif isinstance(images, str) and os.path.isdir(images):
+        for root, dirs, files in os.walk(images):
+            for file in files:
+                yield from _yield_images(os.path.join(images, root, file))
+    else:
+        try:
+            image = load_image(images)
+            image.load()
+            yield image
+        except UnidentifiedImageError:
+            pass
+
+
+
[docs]def load_images(images: ImagesTyping) -> List[Image.Image]: + """ + Load multiple PIL.Image objects from various sources. + + This function loads multiple PIL.Image objects from a variety of sources, including PIL.Image objects, file paths, and lists of images. It supports recursive loading of images from directories. + + :param images: An image or a list of images (PIL.Image, file paths, or a combination). + :type images: ImagesTyping + + :return: A list of PIL.Image objects. + :rtype: List[Image.Image] + """ + return list(_yield_images(images))
+
+ + +
+ +
+ + +
+
+ +
+ +
+ +
+ + Other Versions + v: main + + +
+
+
Branches
+
main
+
+
+
+ + + + + + + + + + \ No newline at end of file diff --git a/main/_modules/sdeval/utils/tqdm_.html b/main/_modules/sdeval/utils/tqdm_.html new file mode 100644 index 0000000..930a333 --- /dev/null +++ b/main/_modules/sdeval/utils/tqdm_.html @@ -0,0 +1,250 @@ + + + + + + + + + + + sdeval.utils.tqdm_ — sdeval 0.0.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + +
+ +
+ + + + + + + + + + + + + + + + + +
+ + + + +
+
+
+
+ + + +

Source code for sdeval.utils.tqdm_

+import io
+
+from tqdm.auto import tqdm as _origin_tqdm
+
+__all__ = ['tqdm']
+
+
+
[docs]def tqdm(*args, silent: bool = False, **kwargs): + """ + An enhanced version of tqdm (progress bar) with an option to silence the output. + + This function modifies the behavior of tqdm to allow silencing the progress bar. + + :param args: Positional arguments to be passed to tqdm. + :param silent: If True, the progress bar content will not be displayed. + :type silent: bool + :param kwargs: Additional keyword arguments to be passed to tqdm. + :return: tqdm progress bar. + :rtype: tqdm.std.tqdm + """ + with io.StringIO() as sio: + if silent: + kwargs['file'] = sio + + return _origin_tqdm(*args, **kwargs)
+
+ + +
+ +
+ + +
+
+ +
+ +
+ +
+ + Other Versions + v: main + + +
+
+
Branches
+
main
+
+
+
+ + + + + + + + + + \ No newline at end of file diff --git a/main/_sources/api_doc/fidelity/ccip.rst.txt b/main/_sources/api_doc/fidelity/ccip.rst.txt new file mode 100644 index 0000000..b279c2e --- /dev/null +++ b/main/_sources/api_doc/fidelity/ccip.rst.txt @@ -0,0 +1,15 @@ +sdeval.fidelity.ccip +================================= + +.. currentmodule:: sdeval.fidelity.ccip + +.. automodule:: sdeval.fidelity.ccip + + +CCIPMetrics +-------------------------------- + +.. autoclass:: CCIPMetrics + :members: __init__, score + + diff --git a/main/_sources/api_doc/fidelity/index.rst.txt b/main/_sources/api_doc/fidelity/index.rst.txt new file mode 100644 index 0000000..f3ae1e8 --- /dev/null +++ b/main/_sources/api_doc/fidelity/index.rst.txt @@ -0,0 +1,12 @@ +sdeval.fidelity +===================== + +.. currentmodule:: sdeval.fidelity + +.. automodule:: sdeval.fidelity + + +.. toctree:: + :maxdepth: 3 + + ccip diff --git a/main/_sources/api_doc/utils/images.rst.txt b/main/_sources/api_doc/utils/images.rst.txt new file mode 100644 index 0000000..678709c --- /dev/null +++ b/main/_sources/api_doc/utils/images.rst.txt @@ -0,0 +1,15 @@ +sdeval.utils.images +================================= + +.. currentmodule:: sdeval.utils.images + +.. automodule:: sdeval.utils.images + + +load_images +---------------------------------- + +.. autofunction:: load_images + + + diff --git a/main/_sources/api_doc/utils/index.rst.txt b/main/_sources/api_doc/utils/index.rst.txt new file mode 100644 index 0000000..0855a55 --- /dev/null +++ b/main/_sources/api_doc/utils/index.rst.txt @@ -0,0 +1,13 @@ +sdeval.utils +===================== + +.. currentmodule:: sdeval.utils + +.. automodule:: sdeval.utils + + +.. toctree:: + :maxdepth: 3 + + tqdm_ + images diff --git a/main/_sources/api_doc/utils/tqdm_.rst.txt b/main/_sources/api_doc/utils/tqdm_.rst.txt new file mode 100644 index 0000000..2ab5eee --- /dev/null +++ b/main/_sources/api_doc/utils/tqdm_.rst.txt @@ -0,0 +1,15 @@ +sdeval.utils.tqdm\_ +================================= + +.. currentmodule:: sdeval.utils.tqdm_ + +.. automodule:: sdeval.utils.tqdm_ + + +tqdm +---------------------------------- + +.. autofunction:: tqdm + + + diff --git a/main/_sources/index.rst.txt b/main/_sources/index.rst.txt index 4ed10d5..a2ccbdb 100644 --- a/main/_sources/index.rst.txt +++ b/main/_sources/index.rst.txt @@ -29,6 +29,8 @@ configuration file's structure and their versions. :caption: API Documentation api_doc/config/index + api_doc/fidelity/index + api_doc/utils/index .. toctree:: :maxdepth: 2 diff --git a/main/_sources/information/environment.result.ipynb.txt b/main/_sources/information/environment.result.ipynb.txt index 155db92..b12fb7e 100644 --- a/main/_sources/information/environment.result.ipynb.txt +++ b/main/_sources/information/environment.result.ipynb.txt @@ -29,10 +29,10 @@ "execution_count": 1, "metadata": { "execution": { - "iopub.execute_input": "2023-11-15T14:15:04.217291Z", - "iopub.status.busy": "2023-11-15T14:15:04.217090Z", - "iopub.status.idle": "2023-11-15T14:15:05.390656Z", - "shell.execute_reply": "2023-11-15T14:15:05.389917Z" + "iopub.execute_input": "2023-11-15T14:39:27.714891Z", + "iopub.status.busy": "2023-11-15T14:39:27.714338Z", + "iopub.status.idle": "2023-11-15T14:39:28.893554Z", + "shell.execute_reply": "2023-11-15T14:39:28.892732Z" }, "pycharm": { "name": "#%%\n" @@ -47,7 +47,7 @@ "Python: CPython 3.8.18\n", "CPU Brand: AMD EPYC 7763 64-Core Processor\n", "CPU Count: 4\n", - "CPU Freq: 3044.5004999999996 MHz\n", + "CPU Freq: 2711.63825 MHz\n", "Memory Size: 15.607 GiB\n", "Has CUDA: No\n" ] diff --git a/main/api_doc/config/index.html b/main/api_doc/config/index.html index 3278bd5..2ae7232 100644 --- a/main/api_doc/config/index.html +++ b/main/api_doc/config/index.html @@ -105,6 +105,8 @@
  • sdeval.config.meta
  • +
  • sdeval.fidelity
  • +
  • sdeval.utils
  • diff --git a/main/api_doc/config/meta.html b/main/api_doc/config/meta.html index eb5bbd8..e06ecbd 100644 --- a/main/api_doc/config/meta.html +++ b/main/api_doc/config/meta.html @@ -41,6 +41,7 @@ + @@ -111,6 +112,8 @@ +
  • sdeval.fidelity
  • +
  • sdeval.utils
  • @@ -241,6 +244,8 @@

    __AUTHOR_EMAIL__ + + diff --git a/main/api_doc/fidelity/ccip.html b/main/api_doc/fidelity/ccip.html new file mode 100644 index 0000000..bb4ef59 --- /dev/null +++ b/main/api_doc/fidelity/ccip.html @@ -0,0 +1,300 @@ + + + + + + + + + + + + sdeval.fidelity.ccip — sdeval 0.0.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    + + + + + +
    + +
    + + + + + + + + + + + + + + + + + +
    + + + + +
    +
    +
    +
    + + + +
    +

    sdeval.fidelity.ccip

    +
    +
    Overview:

    CCIP-based metrics for anime character training.

    +

    See imgutils.metrics.ccip for more information.

    +
    +
    +
    +

    CCIPMetrics

    +
    +
    +class sdeval.fidelity.ccip.CCIPMetrics(images: Union[PIL.Image.Image, str, List[Union[PIL.Image.Image, str]]], model: str = 'ccip-caformer-24-randaug-pruned', threshold: Optional[float] = None, silent: bool = False, tqdm_desc: str = None)[source]
    +

    Class for calculating similarity scores between images using the CCIP (Content-Consistent Image Pairwise) metric.

    +

    The CCIPMetrics class allows you to calculate the similarity score between a set of images and a reference dataset using the CCIP metric.

    +
    +
    Parameters:
    +
      +
    • images (ImagesTyping) – The reference dataset of images for initializing CCIP metrics.

    • +
    • model (str) – The CCIP model to use for feature extraction. Default is ‘ccip-caformer-24-randaug-pruned’.

    • +
    • threshold (Optional[float]) – The threshold for the CCIP metric. If not provided, the default threshold for the chosen model is used.

    • +
    • silent (bool) – If True, suppresses progress bars and additional output during initialization and calculation.

    • +
    • tqdm_desc (str) – Description for the tqdm progress bar during initialization and calculation.

    • +
    +
    +
    +
    +
    +__init__(images: Union[PIL.Image.Image, str, List[Union[PIL.Image.Image, str]]], model: str = 'ccip-caformer-24-randaug-pruned', threshold: Optional[float] = None, silent: bool = False, tqdm_desc: str = None)[source]
    +

    Initialize self. See help(type(self)) for accurate signature.

    +
    + +
    +
    +score(images: Union[PIL.Image.Image, str, List[Union[PIL.Image.Image, str]]], silent: bool = None) → float[source]
    +

    Calculate the similarity score between the reference dataset and a set of input images.

    +

    This method calculates the similarity score between the reference dataset (used for initialization) and a set of input images using the CCIP metric.

    +
    +
    Parameters:
    +
      +
    • images (ImagesTyping) – The set of input images for calculating CCIP metrics.

    • +
    • silent (bool) – If True, suppresses progress bars and additional output during calculation.

    • +
    +
    +
    Returns:
    +

    The similarity score between the reference dataset and the input images.

    +
    +
    Return type:
    +

    float

    +
    +
    +
    + +
    + +
    +
    + + + +
    + +
    + + +
    +
    + +
    + +
    + +
    + + Other Versions + v: main + + +
    +
    +
    Branches
    +
    main
    +
    +
    +
    + + + + + + + + + + \ No newline at end of file diff --git a/main/api_doc/fidelity/index.html b/main/api_doc/fidelity/index.html new file mode 100644 index 0000000..5525bb1 --- /dev/null +++ b/main/api_doc/fidelity/index.html @@ -0,0 +1,254 @@ + + + + + + + + + + + + sdeval.fidelity — sdeval 0.0.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    + + + + + +
    + +
    + + + + + + + + + + + + + + + + + +
    + + + + +
    +
    +
    +
    + + + +
    +

    sdeval.fidelity

    +
    +
    Overview:

    Metrics for evaluating training fidelity.

    +
    +
    + +
    + + + +
    + +
    + + +
    +
    + +
    + +
    + +
    + + Other Versions + v: main + + +
    +
    +
    Branches
    +
    main
    +
    +
    +
    + + + + + + + + + + \ No newline at end of file diff --git a/main/api_doc/utils/images.html b/main/api_doc/utils/images.html new file mode 100644 index 0000000..ef3be9b --- /dev/null +++ b/main/api_doc/utils/images.html @@ -0,0 +1,266 @@ + + + + + + + + + + + + sdeval.utils.images — sdeval 0.0.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    + + + + + +
    + +
    + + + + + + + + + + + + + + + + + +
    + + + + +
    +
    +
    +
    + + + +
    +

    sdeval.utils.images

    +
    +

    load_images

    +
    +
    +sdeval.utils.images.load_images(images: Union[PIL.Image.Image, str, List[Union[PIL.Image.Image, str]]]) → List[PIL.Image.Image][source]
    +

    Load multiple PIL.Image objects from various sources.

    +

    This function loads multiple PIL.Image objects from a variety of sources, including PIL.Image objects, file paths, and lists of images. It supports recursive loading of images from directories.

    +
    +
    Parameters:
    +

    images (ImagesTyping) – An image or a list of images (PIL.Image, file paths, or a combination).

    +
    +
    Returns:
    +

    A list of PIL.Image objects.

    +
    +
    Return type:
    +

    List[Image.Image]

    +
    +
    +
    + +
    +
    + + + +
    + +
    + + +
    +
    + +
    + +
    + +
    + + Other Versions + v: main + + +
    +
    +
    Branches
    +
    main
    +
    +
    +
    + + + + + + + + + + \ No newline at end of file diff --git a/main/api_doc/utils/index.html b/main/api_doc/utils/index.html new file mode 100644 index 0000000..eaf09bb --- /dev/null +++ b/main/api_doc/utils/index.html @@ -0,0 +1,255 @@ + + + + + + + + + + + + sdeval.utils — sdeval 0.0.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    + + + + + +
    + +
    + + + + + + + + + + + + + + + + + +
    + + + + +
    +
    +
    +
    + + + +
    +

    sdeval.utils

    + +
    + + + +
    + +
    + + +
    +
    + +
    + +
    + +
    + + Other Versions + v: main + + +
    +
    +
    Branches
    +
    main
    +
    +
    +
    + + + + + + + + + + \ No newline at end of file diff --git a/main/api_doc/utils/tqdm_.html b/main/api_doc/utils/tqdm_.html new file mode 100644 index 0000000..79a3082 --- /dev/null +++ b/main/api_doc/utils/tqdm_.html @@ -0,0 +1,273 @@ + + + + + + + + + + + + sdeval.utils.tqdm_ — sdeval 0.0.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    + + + + + +
    + +
    + + + + + + + + + + + + + + + + + +
    + + + + +
    +
    +
    +
    + + + +
    +

    sdeval.utils.tqdm_

    +
    +

    tqdm

    +
    +
    +sdeval.utils.tqdm_.tqdm(*args, silent: bool = False, **kwargs)[source]
    +

    An enhanced version of tqdm (progress bar) with an option to silence the output.

    +

    This function modifies the behavior of tqdm to allow silencing the progress bar.

    +
    +
    Parameters:
    +
      +
    • args – Positional arguments to be passed to tqdm.

    • +
    • silent (bool) – If True, the progress bar content will not be displayed.

    • +
    • kwargs – Additional keyword arguments to be passed to tqdm.

    • +
    +
    +
    Returns:
    +

    tqdm progress bar.

    +
    +
    Return type:
    +

    tqdm.std.tqdm

    +
    +
    +
    + +
    +
    + + + +
    + +
    + + +
    +
    + +
    + +
    + +
    + + Other Versions + v: main + + +
    +
    +
    Branches
    +
    main
    +
    +
    +
    + + + + + + + + + + \ No newline at end of file diff --git a/main/genindex.html b/main/genindex.html index ab41c59..80edb9a 100644 --- a/main/genindex.html +++ b/main/genindex.html @@ -101,6 +101,8 @@

    API Documentation

    @@ -168,8 +170,11 @@

    Index

    _ + | C + | L | M | S + | T

    _

    @@ -178,10 +183,12 @@

    _

  • __AUTHOR__ (in module sdeval.config.meta)
  • __AUTHOR_EMAIL__ (in module sdeval.config.meta) +
  • +
  • __DESCRIPTION__ (in module sdeval.config.meta)
  • +

    C

    + + +
    + +

    L

    + + +
    +

    M

    @@ -208,6 +241,8 @@

    M

    S

    - + +
    -
    • sdeval.config.meta @@ -224,6 +257,51 @@

      S

    • module
    +
  • + sdeval.fidelity + +
  • +
      +
    • + sdeval.fidelity.ccip + +
    • +
    • + sdeval.utils + +
    • +
    • + sdeval.utils.images + +
    • +
    • + sdeval.utils.tqdm_ + +
    • +
    + +

    T

    + +
    diff --git a/main/index.html b/main/index.html index 9827547..63a8f18 100644 --- a/main/index.html +++ b/main/index.html @@ -101,6 +101,8 @@

    API Documentation

    @@ -194,6 +196,15 @@

    Overviewsdeval.config.meta +
  • sdeval.fidelity +
  • +
  • sdeval.utils +
  • diff --git a/main/information/environment.html b/main/information/environment.html index 72b2d2b..9a8e681 100644 --- a/main/information/environment.html +++ b/main/information/environment.html @@ -101,6 +101,8 @@

    API Documentation

    @@ -201,7 +203,7 @@

    Run Environment InformationAPI Documentation

    @@ -204,7 +206,7 @@

    Run Environment InformationAPI Documentation

    @@ -191,6 +193,31 @@

    Python Module Index

        sdeval.config.meta + + +     + sdeval.fidelity + + + +     + sdeval.fidelity.ccip + + + +     + sdeval.utils + + + +     + sdeval.utils.images + + + +     + sdeval.utils.tqdm_ + diff --git a/main/search.html b/main/search.html index f30ea22..2d1e9b3 100644 --- a/main/search.html +++ b/main/search.html @@ -102,6 +102,8 @@

    API Documentation

    diff --git a/main/searchindex.js b/main/searchindex.js index a88ef6f..27861ed 100644 --- a/main/searchindex.js +++ b/main/searchindex.js @@ -1 +1 @@ -Search.setIndex({docnames:["api_doc/config/index","api_doc/config/meta","index","information/environment","information/environment.result","tutorials/installation/index","tutorials/quick_start/index"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,"sphinx.ext.todo":2,"sphinx.ext.viewcode":1,nbsphinx:4,sphinx:56},filenames:["api_doc/config/index.rst","api_doc/config/meta.rst","index.rst","information/environment.ipynb","information/environment.result.ipynb","tutorials/installation/index.rst","tutorials/quick_start/index.rst"],objects:{"sdeval.config":{meta:[1,0,0,"-"]},"sdeval.config.meta":{__AUTHOR_EMAIL__:[1,1,1,""],__AUTHOR__:[1,1,1,""],__DESCRIPTION__:[1,1,1,""],__TITLE__:[1,1,1,""],__VERSION__:[1,1,1,""]},sdeval:{config:[0,0,0,"-"]}},objnames:{"0":["py","module","Python module"],"1":["py","data","Python data"]},objtypes:{"0":"py:module","1":"py:data"},terms:{"1015":[3,4],"2743":3,"3044":4,"5004999999996":4,"58275":3,"607":[3,4],"7763":[3,4],"import":[3,4,5],"short":1,Has:[3,4],The:5,Yes:[3,4],__author__:[0,5],__author_email__:0,__description__:[0,5],__main__:5,__name__:5,__title__:[0,5],__version__:[0,5],action:[3,4],also:5,amd:[3,4],api:2,author:1,automat:[3,4],azur:[3,4],below:5,brand:[3,4],brand_raw:[3,4],can:[2,5],check:5,com:5,command:5,config:[2,5],configur:2,core:[3,4],count:[3,4],cpu:[3,4],cpu_count:[3,4],cpu_freq:[3,4],cpuinfo:[3,4],cpython:[3,4],cuda:[3,4],current:[3,4,5],data:[3,4],deepgh:5,deploi:[3,4],descript:1,develop:5,differ:[3,4],diffus:5,document:[3,4,5],els:[3,4],email:1,environ:2,epyc:[3,4],evalu:5,execut:[3,4],faq:6,file:2,follow:5,freq:[3,4],from:[3,4,5],get_cpu_info:[3,4],gib:[3,4],git:5,github:[3,4,5],glibc2:[3,4],hbutil:[3,4],here:[3,4],host:5,html:5,http:5,includ:1,index:5,inform:[1,2],instal:2,like:5,linux:[3,4],local:[3,4],mai:[3,4],main:5,maintain:5,manag:2,mean:5,memori:[3,4],meta:[0,2,5],mhz:[3,4],model:5,modul:2,narugo1992:5,newest:5,note:[3,4],nvidia:[3,4],out:5,output:5,overview:1,packag:1,pars:2,perform:[3,4],pip:5,platform:[3,4],pleas:[3,4],precis:[3,4],print:[3,4,5],processor:[3,4],project:1,psutil:[3,4],pypi:5,python:[3,4,5],python_implement:[3,4],python_vers:[3,4],quick:2,requir:5,run:2,scale:[3,4],script:5,sdeval:5,setup:1,should:[1,5],shutil:[3,4],simpli:5,size:[3,4],size_to_bytes_str:[3,4],smi:[3,4],some:[3,4],stabl:5,start:2,still:5,structur:2,success:5,therefor:[3,4],thi:[1,3,4],through:5,titl:1,total:[3,4],train:5,tutori:2,under:5,version:[1,2,5],virtual_memori:[3,4],which:[2,3,4,5],x86_64:[3,4],you:5,your:[3,4,5]},titles:["sdeval.config","sdeval.config.meta","Welcome to sdeval\u2019s Documentation","Run Environment Information","Run Environment Information","Installation","Quick Start"],titleterms:{__author__:1,__author_email__:1,__description__:1,__title__:1,__version__:1,config:[0,1],document:2,environ:[3,4],inform:[3,4],instal:5,meta:1,overview:2,quick:6,run:[3,4],sdeval:[0,1,2],start:6,welcom:2}}) \ No newline at end of file +Search.setIndex({docnames:["api_doc/config/index","api_doc/config/meta","api_doc/fidelity/ccip","api_doc/fidelity/index","api_doc/utils/images","api_doc/utils/index","api_doc/utils/tqdm_","index","information/environment","information/environment.result","tutorials/installation/index","tutorials/quick_start/index"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,"sphinx.ext.todo":2,"sphinx.ext.viewcode":1,nbsphinx:4,sphinx:56},filenames:["api_doc/config/index.rst","api_doc/config/meta.rst","api_doc/fidelity/ccip.rst","api_doc/fidelity/index.rst","api_doc/utils/images.rst","api_doc/utils/index.rst","api_doc/utils/tqdm_.rst","index.rst","information/environment.ipynb","information/environment.result.ipynb","tutorials/installation/index.rst","tutorials/quick_start/index.rst"],objects:{"sdeval.config":{meta:[1,0,0,"-"]},"sdeval.config.meta":{__AUTHOR_EMAIL__:[1,1,1,""],__AUTHOR__:[1,1,1,""],__DESCRIPTION__:[1,1,1,""],__TITLE__:[1,1,1,""],__VERSION__:[1,1,1,""]},"sdeval.fidelity":{ccip:[2,0,0,"-"]},"sdeval.fidelity.ccip":{CCIPMetrics:[2,2,1,""]},"sdeval.fidelity.ccip.CCIPMetrics":{__init__:[2,3,1,""],score:[2,3,1,""]},"sdeval.utils":{images:[4,0,0,"-"],tqdm_:[6,0,0,"-"]},"sdeval.utils.images":{load_images:[4,4,1,""]},"sdeval.utils.tqdm_":{tqdm:[6,4,1,""]},sdeval:{config:[0,0,0,"-"],fidelity:[3,0,0,"-"],utils:[5,0,0,"-"]}},objnames:{"0":["py","module","Python module"],"1":["py","data","Python data"],"2":["py","class","Python class"],"3":["py","method","Python method"],"4":["py","function","Python function"]},objtypes:{"0":"py:module","1":"py:data","2":"py:class","3":"py:method","4":"py:function"},terms:{"1015":[8,9],"2709":8,"2711":9,"3277500000004":8,"607":[8,9],"63825":9,"7763":[8,9],"class":2,"default":2,"float":2,"function":[4,6],"import":[8,9,10],"return":[2,4,6],"short":1,"true":[2,6],Has:[8,9],The:[2,10],Yes:[8,9],__author__:[0,10],__author_email__:0,__description__:[0,10],__init__:2,__main__:10,__name__:10,__title__:[0,10],__version__:[0,10],accur:2,action:[8,9],addit:[2,6],allow:[2,6],also:10,amd:[8,9],anim:2,api:7,arg:6,argument:6,author:1,automat:[8,9],azur:[8,9],bar:[2,6],base:2,behavior:6,below:10,between:2,bool:[2,6],brand:[8,9],brand_raw:[8,9],caform:2,calcul:2,can:[7,10],ccip:[3,7],ccipmetr:3,charact:2,check:10,chosen:2,com:10,combin:4,command:10,config:[7,10],configur:7,consist:2,content:[2,6],core:[8,9],count:[8,9],cpu:[8,9],cpu_count:[8,9],cpu_freq:[8,9],cpuinfo:[8,9],cpython:[8,9],cuda:[8,9],current:[8,9,10],data:[8,9],dataset:2,deepgh:10,deploi:[8,9],descript:[1,2],develop:10,differ:[8,9],diffus:10,directori:4,displai:6,document:[8,9,10],dure:2,els:[8,9],email:1,enhanc:6,environ:7,epyc:[8,9],evalu:[3,10],execut:[8,9],extract:2,fals:[2,6],faq:11,featur:2,fidel:7,file:[4,7],follow:10,freq:[8,9],from:[4,8,9,10],get_cpu_info:[8,9],gib:[8,9],git:10,github:[8,9,10],glibc2:[8,9],hbutil:[8,9],help:2,here:[8,9],host:10,html:10,http:10,imag:[2,5,7],imagestyp:[2,4],imgutil:2,includ:[1,4],index:10,inform:[1,2,7],initi:2,input:2,instal:7,keyword:6,kwarg:6,like:10,linux:[8,9],list:[2,4],load:4,load_imag:5,local:[8,9],mai:[8,9],main:10,maintain:10,manag:7,mean:10,memori:[8,9],meta:[0,7,10],method:2,metric:[2,3],mhz:[8,9],model:[2,10],modifi:6,modul:7,more:2,multipl:4,narugo1992:10,newest:10,none:2,note:[8,9],nvidia:[8,9],object:4,option:[2,6],out:10,output:[2,6,10],overview:[1,2,3],packag:1,pairwis:2,paramet:[2,4,6],pars:7,pass:6,path:4,perform:[8,9],pil:[2,4],pip:10,platform:[8,9],pleas:[8,9],posit:6,precis:[8,9],print:[8,9,10],processor:[8,9],progress:[2,6],project:1,provid:2,prune:2,psutil:[8,9],pypi:10,python:[8,9,10],python_implement:[8,9],python_vers:[8,9],quick:7,randaug:2,recurs:4,refer:2,requir:10,run:7,scale:[8,9],score:2,script:10,sdeval:10,see:2,self:2,set:2,setup:1,should:[1,10],shutil:[8,9],signatur:2,silenc:6,silent:[2,6],similar:2,simpli:10,size:[8,9],size_to_bytes_str:[8,9],smi:[8,9],some:[8,9],sourc:[2,4,6],stabl:10,start:7,std:6,still:10,str:[2,4],structur:7,success:10,support:4,suppress:2,therefor:[8,9],thi:[1,2,4,6,8,9],threshold:2,through:10,titl:1,total:[8,9],tqdm:[2,5],tqdm_:[5,7],tqdm_desc:2,train:[2,3,10],tutori:7,type:[2,4,6],under:10,union:[2,4],use:2,used:2,using:2,util:7,varieti:4,variou:4,version:[1,6,7,10],virtual_memori:[8,9],which:[7,8,9,10],x86_64:[8,9],you:[2,10],your:[8,9,10]},titles:["sdeval.config","sdeval.config.meta","sdeval.fidelity.ccip","sdeval.fidelity","sdeval.utils.images","sdeval.utils","sdeval.utils.tqdm_","Welcome to sdeval\u2019s Documentation","Run Environment Information","Run Environment Information","Installation","Quick Start"],titleterms:{__author__:1,__author_email__:1,__description__:1,__title__:1,__version__:1,ccip:2,ccipmetr:2,config:[0,1],document:7,environ:[8,9],fidel:[2,3],imag:4,inform:[8,9],instal:10,load_imag:4,meta:1,overview:7,quick:11,run:[8,9],sdeval:[0,1,2,3,4,5,6,7],start:11,tqdm:6,tqdm_:6,util:[4,5,6],welcom:7}}) \ No newline at end of file diff --git a/main/tutorials/installation/index.html b/main/tutorials/installation/index.html index c3d2176..7b677cf 100644 --- a/main/tutorials/installation/index.html +++ b/main/tutorials/installation/index.html @@ -104,6 +104,8 @@

    API Documentation

    diff --git a/main/tutorials/quick_start/index.html b/main/tutorials/quick_start/index.html index 06d1575..15d19c0 100644 --- a/main/tutorials/quick_start/index.html +++ b/main/tutorials/quick_start/index.html @@ -104,6 +104,8 @@

    API Documentation