🐍 Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
rename missing main (#2723)
Edgar Riba2682920758c9
diff --git a/.codecov.yml b/.codecov.ymlindex e14f5709b..c0ca2ddab 100644--- a/.codecov.yml+++ b/.codecov.yml@@ -24,7 +24,7 @@ coverage:target: 87% # The target should be the same of the pyproject `fail_under`# threshold: 30% # allow this little decrease on project# https://github.com/codecov/support/wiki/Filtering-Branches- # branches: master+ # branches: mainif_ci_failed: error# https://github.com/codecov/support/wiki/Patch-Statuspatch: # is the coverage percentage of the number of lines touched in your patch (the git diff)diff --git a/.github/workflows/pr_test_cpu.yml b/.github/workflows/pr_test_cpu.ymlindex 3fb68c43f..118c13534 100644--- a/.github/workflows/pr_test_cpu.yml+++ b/.github/workflows/pr_test_cpu.yml@@ -4,7 +4,7 @@ on:push:branches: [test-me-*]pull_request:- branches: [master]+ branches: [main]types: [opened, reopened, synchronize, ready_for_review, labeled]workflow_dispatch:diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.ymlindex 390b6fab1..6e7f3c5a2 100644--- a/.github/workflows/pypi-release.yml+++ b/.github/workflows/pypi-release.yml@@ -3,7 +3,7 @@ name: PyPI Release# https://help.github.com/en/actions/reference/events-that-trigger-workflowson: # Trigger the workflow on push or pull request, but only for the master branchpush:- branches: [master]+ branches: [main]release:types: [published]diff --git a/.github/workflows/scheduled_test_cpu.yml b/.github/workflows/scheduled_test_cpu.ymlindex 939eb73ff..ed200b6c0 100644--- a/.github/workflows/scheduled_test_cpu.yml+++ b/.github/workflows/scheduled_test_cpu.yml@@ -2,7 +2,7 @@ name: Tests on CPU (scheduled)on:push:- branches: [master, test-me-*]+ branches: [main, test-me-*]schedule:- cron: "0 4 * * *"diff --git a/BACKERS.md b/BACKERS.mdindex ee87fbbcd..5eb100bb5 100644--- a/BACKERS.md+++ b/BACKERS.md@@ -1,6 +1,6 @@<h1 align="center">Sponsors & Backers</h1>-Kornia is an Apache-licensed open source project, which is supported by these brilliant [backers](https://github.com/kornia/kornia/blob/master/LICENSE/BACKERS.md). If you'd like to join them, please consider:+Kornia is an Apache-licensed open source project, which is supported by these brilliant [backers](https://github.com/kornia/kornia/blob/main/LICENSE/BACKERS.md). If you'd like to join them, please consider:- [Become a backer or sponsor on OpenCollective](https://opencollective.com/kornia).diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 0ff31c053..665d9e7ca 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -59,11 +59,11 @@ repository under your GitHub account.3. Create a new branch with a meaningful name reflecting your contribution. See an example:```bash- $ git checkout upstream/master -b feat/foo_feature+ $ git checkout upstream/main -b feat/foo_feature# or- $ git checkout upstream/master -b fix/bar_bug+ $ git checkout upstream/main -b fix/bar_bug```- 🚨 **Do not** work on the `master` branch!+ 🚨 **Do not** work on the `main` branch!4. Creating a development environmentdiff --git a/README.md b/README.mdindex e06f1e139..fbda2261c 100644--- a/README.md+++ b/README.md@@ -25,10 +25,10 @@ English | [简体中文](README_zh-CN.md)[](https://join.slack.com/t/kornia/shared_invite/zt-csobk21g-2AQRi~X9Uu6PLMuUZdvfjA)[](https://twitter.com/kornia_foss)-[](https://github.com/kornia/kornia/actions/workflows/scheduled_test_cpu.yml)-[](https://codecov.io/gh/kornia/kornia)+[](https://github.com/kornia/kornia/actions/workflows/scheduled_test_cpu.yml)+[](https://codecov.io/gh/kornia/kornia)[](https://kornia.readthedocs.io/en/latest/?badge=latest)-[](https://results.pre-commit.ci/latest/github/kornia/kornia/master)+[](https://results.pre-commit.ci/latest/github/kornia/kornia/main)<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>@@ -40,7 +40,7 @@ English | [简体中文](README_zh-CN.md)It consists of a set of routines and differentiable modules to solve generic computer vision problems. At its core, the package uses *PyTorch* as its main backend both for efficiency and to take advantage of the reverse-mode auto-differentiation to define and compute the gradient of complex functions.<div align="center">- <img src="https://github.com/kornia/kornia/raw/master/docs/source/_static/img/hakuna_matata.gif" width="75%" height="75%">+ <img src="https://github.com/kornia/kornia/raw/main/docs/source/_static/img/hakuna_matata.gif" width="75%" height="75%"></div><!--<div align="center">diff --git a/README_zh-CN.md b/README_zh-CN.mdindex 5a8b59a0e..dcff92146 100644--- a/README_zh-CN.md+++ b/README_zh-CN.md@@ -12,7 +12,7 @@<!-- prettier-ignore --><a href="https://kornia.org">网站</a> •<a href="https://kornia.readthedocs.io">文档</a> •-<a href="https://colab.sandbox.google.com/github/kornia/tutorials/blob/master/nbs/hello_world_tutorial.ipynb">快速尝试</a> •+<a href="https://colab.sandbox.google.com/github/kornia/tutorials/blob/main/nbs/hello_world_tutorial.ipynb">快速尝试</a> •<a href="https://kornia.github.io/tutorials/">教程</a> •<a href="https://github.com/kornia/kornia-examples">例子</a> •<a href="https://kornia.github.io//kornia-blog">博客</a> •@@ -27,10 +27,10 @@[](https://join.slack.com/t/kornia/shared_invite/zt-csobk21g-2AQRi~X9Uu6PLMuUZdvfjA)[](https://twitter.com/kornia_foss)-[](https://github.com/kornia/kornia/actions/workflows/scheduled_test_cpu.yml)-[](https://codecov.io/gh/kornia/kornia)+[](https://github.com/kornia/kornia/actions/workflows/scheduled_test_cpu.yml)+[](https://codecov.io/gh/kornia/kornia)[](https://kornia.readthedocs.io/en/latest/?badge=latest)-[](https://results.pre-commit.ci/latest/github/kornia/kornia/master)+[](https://results.pre-commit.ci/latest/github/kornia/kornia/main)<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>@@ -42,7 +42,7 @@它由一组用于解决通用计算机视觉问题的操作模块和可微分模块组成。其核心使用 *PyTorch* 作为主要后端,以提高效率并利用反向模式自动微分来定义和计算复杂函数的梯度。<div align="center">- <img src="https://github.com/kornia/kornia/raw/master/docs/source/_static/img/hakuna_matata.gif" width="75%" height="75%">+ <img src="https://github.com/kornia/kornia/raw/main/docs/source/_static/img/hakuna_matata.gif" width="75%" height="75%"></div><!--<div align="center">@@ -117,7 +117,7 @@## 引用-如果您在与研究相关的文档中使用 Kornia,您可以引用我们的论文。更多信息可以在 [CITATION](https://github.com/kornia/kornia/blob/master/CITATION.md) 看到。+如果您在与研究相关的文档中使用 Kornia,您可以引用我们的论文。更多信息可以在 [CITATION](https://github.com/kornia/kornia/blob/main/CITATION.md) 看到。```bibtex@inproceedings{eriba2019kornia,@@ -130,7 +130,7 @@```## 贡献-我们感谢所有的贡献者为改进和提升 Kornia 所作出的努力。您可以直接修复一个已知的BUG而无需进一步讨论;如果您想要添加一个任何新的或者扩展功能,请务必先通过提交一个Issue来与我们讨论。详情请阅读 [贡献指南](https://github.com/kornia/kornia/blob/master/CONTRIBUTING.md)。开源项目的参与者请务必了解如下 [规范](https://github.com/kornia/kornia/blob/master/CODE_OF_CONDUCT.md)。+我们感谢所有的贡献者为改进和提升 Kornia 所作出的努力。您可以直接修复一个已知的BUG而无需进一步讨论;如果您想要添加一个任何新的或者扩展功能,请务必先通过提交一个Issue来与我们讨论。详情请阅读 [贡献指南](https://github.com/kornia/kornia/blob/main/CONTRIBUTING.md)。开源项目的参与者请务必了解如下 [规范](https://github.com/kornia/kornia/blob/main/CODE_OF_CONDUCT.md)。## 社区- **论坛:** 讨论代码实现,学术研究等。[GitHub Forums](https://github.com/kornia/kornia/discussions)@@ -142,8 +142,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" height="700px">- <img src="https://github.com/kornia/kornia/raw/master/docs/source/_static/img/cn_community_zhihu.jpg" height="700px">+ <img src="https://github.com/kornia/kornia/raw/main/docs/source/_static/img/cn_community_qq.jpg" height="700px">+ <img src="https://github.com/kornia/kornia/raw/main/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.rstindex cf63cff7e..05322f269 100644--- a/docs/source/community/chinese.rst+++ b/docs/source/community/chinese.rst@@ -3,11 +3,11 @@ 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+.. image:: https://github.com/kornia/kornia/raw/main/docs/source/_static/img/cn_community_qq.jpg:height: 700:alt: QQ group-.. image:: https://github.com/kornia/kornia/raw/master/docs/source/_static/img/cn_community_zhihu.jpg+.. image:: https://github.com/kornia/kornia/raw/main/docs/source/_static/img/cn_community_zhihu.jpg:height: 700:alt: Zhihudiff --git a/docs/source/community/contribute.rst b/docs/source/community/contribute.rstindex fb5565cb5..bd8ac504b 100644--- a/docs/source/community/contribute.rst+++ b/docs/source/community/contribute.rst@@ -23,6 +23,6 @@ Everyone is welcomed to get involved with the project. There are different ways5. Donate resources to the project through `GitHub Sponsor <https://github.com/sponsors/edgarriba>`_ or `Open Collective <https://opencollective.com/kornia>`_ !-For more information about our development process, see our `Developers corner <https://github.com/kornia/kornia/blob/master/CONTRIBUTING.md#developing-kornia>`_.+For more information about our development process, see our `Developers corner <https://github.com/kornia/kornia/blob/main/CONTRIBUTING.md#developing-kornia>`_.**Happy coding !**diff --git a/docs/source/get-started/governance.rst b/docs/source/get-started/governance.rstindex d2017d817..2143f84bd 100644--- a/docs/source/get-started/governance.rst+++ b/docs/source/get-started/governance.rst@@ -38,7 +38,7 @@ Membership----------The membership is open to anyone who is interested in the mission of the organization and is willing to contribute to its activities.-The membership is free of charge and is granted by the board of directors and can be revoked at any time if the member is not complying with the organization's rules or [Code of Conduct](https://github.com/kornia/kornia/blob/master/CODE_OF_CONDUCT.md).+The membership is free of charge and is granted by the board of directors and can be revoked at any time if the member is not complying with the organization's rules or [Code of Conduct](https://github.com/kornia/kornia/blob/main/CODE_OF_CONDUCT.md).Governance----------diff --git a/docs/source/get-started/introduction.rst b/docs/source/get-started/introduction.rstindex f9d095ae8..10f7473c4 100644--- a/docs/source/get-started/introduction.rst+++ b/docs/source/get-started/introduction.rst@@ -7,7 +7,7 @@ It consists of a set of routines and differentiable modules to solve generic comAt its core, the package uses PyTorch as its main backend both for efficiency and to take advantage ofthe reverse-mode auto-differentiation to define and compute the gradient of complex functions.-.. image:: https://raw.githubusercontent.com/kornia/kornia/master/docs/source/_static/img/hakuna_matata.gif+.. image:: https://raw.githubusercontent.com/kornia/kornia/main/docs/source/_static/img/hakuna_matata.gif:align: centerThe library is composed by a subset of packages containing operators that can be inserteddiff --git a/kornia/feature/lightglue.py b/kornia/feature/lightglue.pyindex 5eebafeb5..1092a746e 100644--- a/kornia/feature/lightglue.py+++ b/kornia/feature/lightglue.py@@ -203,10 +203,7 @@ class CrossBlock(Module):def forward(self, x0: Tensor, x1: Tensor, mask: Optional[Tensor] = None) -> Tuple[Tensor, Tensor]:qk0, qk1 = self.map_(self.to_qk, x0, x1)v0, v1 = self.map_(self.to_v, x0, x1)- qk0, qk1, v0, v1 = map(- lambda t: t.unflatten(-1, (self.heads, -1)).transpose(1, 2),- (qk0, qk1, v0, v1),- )+ qk0, qk1, v0, v1 = (t.unflatten(-1, (self.heads, -1)).transpose(1, 2) for t in (qk0, qk1, v0, v1))if self.flash is not None and qk0.device.type == "cuda":m0 = self.flash(qk0, qk1, v1, mask)m1 = self.flash(qk1, qk0, v0, mask.transpose(-1, -2) if mask is not None else None)