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

Update kornia requirement from ~=0.6.10 to ~=0.6.12 #2170

Merged
merged 3 commits into from
Jun 20, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 30, 2023

Updates the requirements on kornia to permit the latest version.

Release notes

Sourced from kornia's releases.

v0.6.12 ImagePrompter API (SAM), Guided Filter and bugfixes

Highlights

ImagePrompter API

In this release we have added a new ImagePrompter API that settles the basis as a foundational api for the task to query geometric information to images inspired by LLM. We leverage the ImagePrompter API via the Segment Anything (SAM) making the model more accessible, packaged and well maintained for industry standards.

Check the full tutorial: https://github.com/kornia/tutorials/blob/master/nbs/image_prompter.ipynb

import kornia as K
from kornia.contrib.image_prompter import ImagePrompter
from kornia.geometry.keypoints import Keypoints
from kornia.geometry.boxes import Boxes
image: Tensor = K.io.load_image("soccer.jpg", ImageLoadType.RGB32, "cuda")
Load the prompter
prompter = ImagePrompter(config, device="cuda")
set the image: This will preprocess the image and already generate the embeddings of it
prompter.set_image(image)
Generate the prompts
keypoints = Keypoints(torch.tensor([[[500, 375]]], device="cuda")) # BxNx2
For the keypoints label: 1 indicates a foreground point; 0 indicates a background point
keypoints_labels = torch.tensor([[1]], device="cuda") # BxN
boxes = Boxes(
torch.tensor([[[[425, 600], [425, 875], [700, 600], [700, 875]]]], device="cuda"), mode='xyxy'
)
Runs the prediction with all prompts
prediction = prompter.predict(
keypoints=keypoints,
keypoints_labels=keypoints_labels,
boxes=boxes,
multimask_output=True,
)

image

Guided Blurring

Blur images by preserving edges via Bilateral and Guided Blurring -> https://kornia.readthedocs.io/en/latest/filters.html#kornia.filters.guided_blur

image

... (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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 30, 2023
@codecov-commenter
Copy link

codecov-commenter commented May 30, 2023

Codecov Report

Merging #2170 (b21df55) into main (d879770) will increase coverage by 0.59%.
The diff coverage is n/a.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2170      +/-   ##
==========================================
+ Coverage   85.03%   85.62%   +0.59%     
==========================================
  Files         297      297              
  Lines       26520    26520              
  Branches     4864     4864              
==========================================
+ Hits        22552    22709     +157     
+ Misses       2749     2572     -177     
- Partials     1219     1239      +20     

see 3 files with indirect coverage changes

@beat-buesser
Copy link
Collaborator

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/pip/kornia-approx-eq-0.6.12 branch from ffbd586 to 5ee9b15 Compare June 9, 2023 09:28
@beat-buesser
Copy link
Collaborator

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/pip/kornia-approx-eq-0.6.12 branch from 5ee9b15 to 0bb8a34 Compare June 9, 2023 13:09
@beat-buesser
Copy link
Collaborator

@dependabot rebase

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.10...v0.6.12)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/kornia-approx-eq-0.6.12 branch from 0bb8a34 to 79fdb5d Compare June 9, 2023 22:23
@beat-buesser beat-buesser merged commit 7691b39 into main Jun 20, 2023
@beat-buesser beat-buesser deleted the dependabot/pip/kornia-approx-eq-0.6.12 branch June 20, 2023 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants