Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update kornia requirement from <0.6.13,>=0.6.7 to >=0.6.7,<0.7.1 in /requirements #1985

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 7, 2023

Updates the requirements on kornia to permit the latest version.

Release notes

Sourced from kornia's releases.

v0.7.0 Image API, RT-DETR and Object Detection API, LightGlue Matcher, MobileSam, new Sensors API and many more

Highlights

Image API

In this release we have added a new Image API as placeholder to support a more generic multibackend api. You can export/import from files, numpy and dlapck.

>>> # from a torch.tensor
>>> data = torch.randint(0, 255, (3, 4, 5), dtype=torch.uint8)  # CxHxW
>>> pixel_format = PixelFormat(
...     color_space=ColorSpace.RGB,
...     bit_depth=8,
... )
>>> layout = ImageLayout(
...     image_size=ImageSize(4, 5),
...     channels=3,
...     channels_order=ChannelsOrder.CHANNELS_FIRST,
... )
>>> img = Image(data, pixel_format, layout)
>>> assert img.channels == 3

Object Detection API

We have added the ObjectDetector that includes by default the RT-DETR model. The detection pipeline is fully configurable by supplying a pre-processor, a model, and a post-processor. Example usage is shown below.

from io import BytesIO
import cv2
import numpy as np
import requests
import torch
from PIL import Image
import matplotlib.pyplot as plt
from kornia.contrib.models.rt_detr import RTDETR, DETRPostProcessor, RTDETRConfig
from kornia.contrib.object_detection import ObjectDetector, ResizePreProcessor
model_type = "hgnetv2_x"  # also available: resnet18d, resnet34d, resnet50d, resnet101d, hgnetv2_l
checkpoint = f"https://github.com/kornia/kornia/releases/download/v0.7.0/rtdetr_{model_type}.ckpt"
config = RTDETRConfig(model_type, 80, checkpoint=checkpoint)
model = RTDETR.from_config(config).eval()
detector = ObjectDetector(model, ResizePreProcessor(640), DETRPostProcessor(0.3))
url = "https://github.com/kornia/data/raw/main/soccer.jpg"
img = Image.open(BytesIO(requests.get(url).content))
img = np.asarray(img, dtype=np.float32) / 255
</tr></table>

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

📚 Documentation preview 📚: https://torchmetrics--1985.org.readthedocs.build/en/1985/

Updates the requirements on [kornia](https://github.com/kornia/kornia) to permit the latest version.
- [Release notes](https://github.com/kornia/kornia/releases)
- [Changelog](https://github.com/kornia/kornia/blob/master/CHANGELOG.md)
- [Commits](kornia/kornia@v0.6.7...v0.7.0)

---
updated-dependencies:
- dependency-name: kornia
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the test / CI testing or CI label Aug 7, 2023
@dependabot dependabot bot requested a review from a team August 7, 2023 23:30
@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Merging #1985 (b7b968e) into master (106c51e) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1985   +/-   ##
======================================
  Coverage      86%     86%           
======================================
  Files         266     266           
  Lines       15205   15205           
======================================
  Hits        13148   13148           
  Misses       2057    2057           

@Borda Borda enabled auto-merge (squash) August 8, 2023 04:36
@mergify mergify bot added the ready label Aug 8, 2023
@Borda Borda merged commit 6aa6183 into master Aug 8, 2023
63 checks passed
@Borda Borda deleted the dependabot-pip-requirements-kornia-gte-0.6.7-and-lt-0.7.1 branch August 8, 2023 10:37
Borda pushed a commit that referenced this pull request Aug 8, 2023
…7,<0.7.1 in /requirements (#1985)

build(deps): update kornia requirement in /requirements

Updates the requirements on [kornia](https://github.com/kornia/kornia) to permit the latest version.
- [Release notes](https://github.com/kornia/kornia/releases)
- [Changelog](https://github.com/kornia/kornia/blob/master/CHANGELOG.md)
- [Commits](kornia/kornia@v0.6.7...v0.7.0)

---
updated-dependencies:
- dependency-name: kornia
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 6aa6183)
Borda pushed a commit that referenced this pull request Aug 8, 2023
…7,<0.7.1 in /requirements (#1985)

build(deps): update kornia requirement in /requirements

Updates the requirements on [kornia](https://github.com/kornia/kornia) to permit the latest version.
- [Release notes](https://github.com/kornia/kornia/releases)
- [Changelog](https://github.com/kornia/kornia/blob/master/CHANGELOG.md)
- [Commits](kornia/kornia@v0.6.7...v0.7.0)

---
updated-dependencies:
- dependency-name: kornia
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 6aa6183)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready test / CI testing or CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants