Skip to content

Commit ef48587

Browse files
authored
Improve ToRGB docs
1 parent e01478c commit ef48587

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

captum/optim/_param/image/transforms.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ class ToRGB(nn.Module):
7777
We offer two precalculated transforms: Karhunen-Loève (KLT) and I1I2I3.
7878
KLT corresponds to the empirically measured channel correlations on imagenet.
7979
I1I2I3 corresponds to an approximation for natural images from Ohta et al.[0]
80-
If you wish to calculate your own KLT transform matrix on a custom dataset,
81-
then please see :func:`captum.optim.dataset.dataset_klt_matrix` for an example
82-
of how to do so.
80+
81+
While the default transform matrices should work for the vast majority of use
82+
cases, you can also use your own 3x3 transform matrix. If you wish to calculate
83+
your own KLT transform matrix on a custom dataset, then please see
84+
:func:`captum.optim.dataset.dataset_klt_matrix` for an example of how to do so.
8385
8486
[0] Y. Ohta, T. Kanade, and T. Sakai, "Color information for region segmentation,"
8587
Computer Graphics and Image Processing, vol. 13, no. 3, pp. 222–241, 1980

0 commit comments

Comments
 (0)