Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

normalize accepts floats and allows broadcast over channel dimension

dvd4210a072193583
diff --git a/README.rst b/README.rst
index 6d433db5b..994038b84 100644
--- a/README.rst
+++ b/README.rst
@@ -93,18 +93,27 @@ Run our Jupyter notebooks `examples <https://github.com/arraiyopensource/kornia/
Cite
============
-If you are using kornia in your research-related documents, it is recommended that you cite the poster.
+If you are using kornia in your research-related documents, it is recommended that you cite the paper.
.. code:: bash
- @misc{Arraiy2018,
- author = {E. Riba, M. Fathollahi, W. Chaney, E. Rublee and G. Bradski}
- title = {torchgeometry: when PyTorch meets geometry},
- booktitle = {PyTorch Developer Conference},
- year = {2018},
- url = {https://drive.google.com/file/d/1xiao1Xj9WzjJ08YY_nYwsthE-wxfyfhG/view?usp=sharing}
- }
+ @inproceedings{eriba2019kornia,
+ author = {E. Riba, D. Mishkin, D. Ponsa, E. Rublee and G. Bradski}
+ title = {Kornia: an Open Source Differentiable Computer Vision Library for PyTorch},
+ booktitle = {Winter Conference on Applications of Computer Vision},
+ year = {2019},
+ url = {https://arxiv.org/pdf/1910.02190.pdf}
+ }
+
+
+ @misc{Arraiy2018,
+ author = {E. Riba, M. Fathollahi, W. Chaney, E. Rublee and G. Bradski}
+ title = {torchgeometry: when PyTorch meets geometry},
+ booktitle = {PyTorch Developer Conference},
+ year = {2018},
+ url = {https://drive.google.com/file/d/1xiao1Xj9WzjJ08YY_nYwsthE-wxfyfhG/view?usp=sharing}
+ }
Contributing
============
diff --git a/kornia/color/normalize.py b/kornia/color/normalize.py
index d52092beb..e1765fef3 100644
--- a/kornia/color/normalize.py
+++ b/kornia/color/normalize.py
@@ -13,8 +13,8 @@ class Normalize(nn.Module):
i.e. ``input[channel] = (input[channel] - mean[channel]) / std[channel]``
Args:
- mean (torch.Tensor): Mean for each channel.
- std (torch.Tensor): Standard deviation for each channel.
+ mean (torch.Tensor or float): Mean for each channel.
+ std (torch.Tensor or float): Standard deviations for each channel.
"""
def __init__(self, mean: torch.Tensor, std: torch.Tensor) -> None: