Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

[docs] update CN docs (#1479)

Jian Shi0655380d38b8
diff --git a/README_zh-CN.md b/README_zh-CN.md
index 82b901d4e..b179505d0 100644
--- a/README_zh-CN.md
+++ b/README_zh-CN.md
@@ -25,12 +25,14 @@
[![Slack](https://img.shields.io/badge/Slack-4A154B?logo=slack&logoColor=white)](https://join.slack.com/t/kornia/shared_invite/zt-csobk21g-CnydWe5fmvkcktIeRFGCEQ)
[![Twitter](https://img.shields.io/twitter/follow/kornia_foss?style=social)](https://twitter.com/kornia_foss)
-[![tests-cpu-versions](https://github.com/kornia/kornia/actions/workflows/tests_cpu_versions.yml/badge.svg)](https://github.com/kornia/kornia/actions/workflows/tests_cpu_versions.yml)
+[![tests-cpu](https://github.com/kornia/kornia/actions/workflows/tests_cpu.yml/badge.svg)](https://github.com/kornia/kornia/actions/workflows/tests_cpu.yml)
[![tests-cuda](https://github.com/kornia/kornia/actions/workflows/tests_cuda.yml/badge.svg)](https://github.com/kornia/kornia/actions/workflows/tests_cuda.yml)
[![codecov](https://codecov.io/gh/kornia/kornia/branch/master/graph/badge.svg?token=FzCb7e0Bso)](https://codecov.io/gh/kornia/kornia)
[![Documentation Status](https://readthedocs.org/projects/kornia/badge/?version=latest)](https://kornia.readthedocs.io/en/latest/?badge=latest)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/kornia/kornia/master.svg)](https://results.pre-commit.ci/latest/github/kornia/kornia/master)
+<a href="https://www.producthunt.com/posts/kornia?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-kornia" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=306439&theme=light" alt="Kornia - Computer vision library for deep learning | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
+
</p>
</div>
@@ -72,6 +74,7 @@
```bash
pip install kornia
+ pip install kornia[x] # 安装训练相关API
```
<details>
@@ -108,6 +111,9 @@
</a>
</div>
+:triangular_flag_on_post: **Updates**
+- :white_check_mark: 现已通过 [Gradio](https://github.com/gradio-app/gradio) 将Kornia集成进 [Huggingface Spaces](https://huggingface.co/spaces). 可以尝试 [Gradio 在线Demo](https://huggingface.co/spaces/akhaliq/Kornia-LoFTR).
+
## 引用
如果您在与研究相关的文档中使用 Kornia,您可以引用我们的论文。更多信息可以在 [CITATION](https://github.com/kornia/kornia/blob/master/CITATION.md) 看到。
@@ -135,8 +141,8 @@
扫描下方的二维码可关注 Kornia 的官方交流QQ群(679683070)以及Kornia知乎账号。
<div align="center">
- <img src="https://github.com/kornia/kornia/raw/master/docs/source/_static/img/cn_community_qq.jpg" width="45%">
- <img src="https://github.com/kornia/kornia/raw/master/docs/source/_static/img/cn_community_zhihu.jpg" width="45%">
+ <img src="https://github.com/kornia/kornia/raw/master/docs/source/_static/img/cn_community_qq.jpg" height="700px">
+ <img src="https://github.com/kornia/kornia/raw/master/docs/source/_static/img/cn_community_zhihu.jpg" height="700px">
</div>
我们会在 Kornia 交流社区为大家
diff --git a/docs/source/community/chinese.rst b/docs/source/community/chinese.rst
index e5640a1a4..cf63cff7e 100644
--- a/docs/source/community/chinese.rst
+++ b/docs/source/community/chinese.rst
@@ -4,5 +4,10 @@ Kornia 社区
欢迎加入 Kornia 社区!扫描下方的二维码可关注 Kornia 团队的 `官方交流 QQ 群 <https://jq.qq.com/?_wv=1027&k=y8iqu7Do>`_.
.. image:: https://github.com/kornia/kornia/raw/master/docs/source/_static/img/cn_community_qq.jpg
- :width: 300
+ :height: 700
:alt: QQ group
+
+
+.. image:: https://github.com/kornia/kornia/raw/master/docs/source/_static/img/cn_community_zhihu.jpg
+ :height: 700
+ :alt: Zhihu
diff --git a/kornia/augmentation/augmentation.py b/kornia/augmentation/augmentation.py
index 2055971eb..6deb402d3 100644
--- a/kornia/augmentation/augmentation.py
+++ b/kornia/augmentation/augmentation.py
@@ -1,4 +1,5 @@
from typing import Any, cast, Dict, List, Optional, Tuple, Union
+
import torch
from torch.nn.functional import pad