π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
docs(augmentation): fix RandomDissolving figure table rendering and mismatched SD xl image (#4603)
Divyansh Sahariya025bcd28bc5b
diff --git a/changelog.d/4603.fixed.md b/changelog.d/4603.fixed.mdnew file mode 100644index 000000000..85d19bd8d--- /dev/null+++ b/changelog.d/4603.fixed.md@@ -0,0 +1 @@+Fixed `RandomDissolving` and `StableDiffusionDissolving` docstring figure tables to render images instead of literal text, and updated the SD XL column to show a pending asset note instead of a mismatched SD 2.1 image.diff --git a/kornia/augmentation/_2d/intensity/dissolving.py b/kornia/augmentation/_2d/intensity/dissolving.pyindex a44081891..308b2cff9 100644--- a/kornia/augmentation/_2d/intensity/dissolving.py+++ b/kornia/augmentation/_2d/intensity/dissolving.py@@ -34,22 +34,16 @@ class RandomDissolving(IntensityAugmentationBase2D):and SD XL; once ``diffusers`` is importable, any other ``version`` raises a bare ``NotImplementedError``(without it, construction fails on the optional-dependency prompt before the version is looked at).- .. note::- The table below does not render: its cells are missing the ``..`` directive marker, so Sphinx- prints ``figure:: https://...`` as text, and the ``SD xl`` column still points at the SD 2.1- image because ``dslv-sd-xl.png`` is a 404 in the ``kornia/data`` repository. Tracked in- `#4601 <https://github.com/kornia/kornia/issues/4601>`_.-- .. list-table:: Title+ .. list-table:::widths: 32 32 32:header-rows: 1* - SD 1.4- SD 1.5- - SD xl- * - figure:: https://raw.githubusercontent.com/kornia/data/main/dslv-sd-1.4.png- - figure:: https://raw.githubusercontent.com/kornia/data/main/dslv-sd-1.5.png- - figure:: https://raw.githubusercontent.com/kornia/data/main/dslv-sd-2.1.png+ - SD XL+ * - .. figure:: https://raw.githubusercontent.com/kornia/data/main/dslv-sd-1.4.png+ - .. figure:: https://raw.githubusercontent.com/kornia/data/main/dslv-sd-1.5.png+ - SD XL example image pending β see `#4601 <https://github.com/kornia/kornia/issues/4601>`_.Args:p: probability of applying the transformation.diff --git a/kornia/filters/dissolving.py b/kornia/filters/dissolving.pyindex 9b1adc9ef..f169b7640 100644--- a/kornia/filters/dissolving.py+++ b/kornia/filters/dissolving.py@@ -208,18 +208,18 @@ class StableDiffusionDissolving(ImageModule):Based on :cite:`shi2024dissolving`, the dissolving transformation is essentially applying one-stepreverse diffusion. Our implementation currently supports HuggingFace implementations of SD 1.4, 1.5- and SD XL (replacing the discontinued SD 2.1). SD 1.X tends to remove more details than SD-XL.+ and SD XL (replacing the discontinued SD 2.1). SD 1.X tends to remove more details than SD XL.- .. list-table:: Title+ .. list-table:::widths: 32 32 32:header-rows: 1* - SD 1.4- SD 1.5- SD XL- * - figure:: https://raw.githubusercontent.com/kornia/data/main/dslv-sd-1.4.png- - figure:: https://raw.githubusercontent.com/kornia/data/main/dslv-sd-1.5.png- - figure:: https://raw.githubusercontent.com/kornia/data/main/dslv-sd-2.1.png+ * - .. figure:: https://raw.githubusercontent.com/kornia/data/main/dslv-sd-1.4.png+ - .. figure:: https://raw.githubusercontent.com/kornia/data/main/dslv-sd-1.5.png+ - SD XL example image pending β see `#4601 <https://github.com/kornia/kornia/issues/4601>`_.Args:version: the version of the stable diffusion model. Options: "1.4", "1.5", "xl".