daita-technologies / ai-tools

AI-based tools for the DAITA platform.
http://app.daita.tech
GNU Affero General Public License v3.0
1 stars 0 forks source link

Bump kornia from 0.6.6 to 0.6.7 #75

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps kornia from 0.6.6 to 0.6.7.

Release notes

Sourced from kornia's releases.

v0.6.7 SOLD2, AdaLAM, Quaternion, Mosaic Aug and Edge-aware Blur

Highlights

SOLD2 line segment detector & descriptor

Contributed by SOLD2 original authors

Geometry-aware matchers: AdaLAM & FGINN

AdaLAM works particularly well with kornia.feature.KeyNetAffNetHardNet. AdaLAM is adopted from original author's implementation.

import matplotlib.pyplot as plt
import cv2
import kornia as K
import kornia.feature as KF
import numpy as np
import torch
from kornia_moons.feature import *

def load_torch_image(fname): img = K.image_to_tensor(cv2.imread(fname), False).float() /255. img = K.color.bgr_to_rgb(img) return img

device = K.utils.get_cuda_device_if_available()

fname1 = 'kn_church-2.jpg' fname2 = 'kn_church-8.jpg'

img1 = load_torch_image(fname1) img2 = load_torch_image(fname2)

feature = KF.KeyNetAffNetHardNet(5000, True).eval().to(device)

input_dict = {"image0": K.color.rgb_to_grayscale(img1), # LofTR works on grayscale images only "image1": K.color.rgb_to_grayscale(img2)}

hw1 = torch.tensor(img1.shape[2:]) hw2 = torch.tensor(img1.shape[2:])

</tr></table>

... (truncated)

Commits


Dependabot compatibility score

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[bot] commented 2 years ago

Superseded by #87.