🐍 Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
fix typos in docs
edgarribad18582c418e3
diff --git a/kornia/color/adjust.py b/kornia/color/adjust.pyindex 401c2e515..4997f32e4 100644--- a/kornia/color/adjust.py+++ b/kornia/color/adjust.py@@ -56,7 +56,7 @@ def adjust_hue(input: torch.Tensor, hue_factor: float) -> torch.Tensor:h, s, v = torch.chunk(x_hsv, chunks=3, dim=-3)# transform the hue value and appl module- h_out: torch.Tensor = (h * hue_factor) % 1+ h_out: torch.Tensor = torch.frac(h * hue_factor)# pack back back the corrected huex_adjusted: torch.Tensor = torch.cat([h_out, s, v], dim=-3)@@ -165,7 +165,7 @@ class AdjustSaturation(nn.Module):The input image is expected to be an RGB image in the range of [0, 1].Args:- image (torch.Tensor): Image to be adjusted in the shape of (*, N).+ input (torch.Tensor): Image/Tensor to be adjusted in the shape of (*, N).saturation_factor (float): How much to adjust the saturation. 0 will give a blackand white image, 1 will give the original image while 2 will enhance the saturationby a factor of 2.@@ -188,7 +188,7 @@ class AdjustHue(nn.Module):The input image is expected to be an RGB image in the range of [0, 1].Args:- image (torch.Tensor): Image to be adjusted in the shape of (*, N).+ input (torch.Tensor): Image/Tensor to be adjusted in the shape of (*, N).hue_factor (float): How much to shift the hue channel. Should be in [-0.5, 0.5]. 0.5and -0.5 give complete reversal of hue channel in HSV space in positive and negativedirection respectively. 0 means no shift. Therefore, both -0.5 and 0.5 will give an@@ -212,11 +212,11 @@ class AdjustGamma(nn.Module):The input image is expected to be in the range of [0, 1].Args:- image (torch.Tensor): Image to be adjusted in the shape of (*, N).+ input (torch.Tensor): Image/Tensor to be adjusted in the shape of (*, N).gamma (float): Non negative real number, same as γ\gammaγ in the equation.gamma larger than 1 make the shadows darker, while gamma smaller than 1 makedark regions lighter.- gain (float optional): The constant multiplier. Default 1.+ gain (float, optional): The constant multiplier. Default 1.Returns:torch.Tensor: Adjusted image.@@ -237,7 +237,7 @@ class AdjustContrast(nn.Module):The input image is expected to be in the range of [0, 1].Args:- image (torch.Tensor): Image to be adjusted in the shape of (*, N).+ input (torch.Tensor): Image to be adjusted in the shape of (*, N).contrast_factor (Union[float, torch.Tensor]): Contrast adjust factor per elementin the batch. 0 generates a compleatly black image, 1 does not modifythe input image while any other non-negative number modify the@@ -261,7 +261,7 @@ class AdjustBrightness(nn.Module):The input image is expected to be in the range of [0, 1].Args:- image (torch.Tensor): Image to be adjusted in the shape of (*, N).+ input (torch.Tensor): Image/Input to be adjusted in the shape of (*, N).brightness_factor (Union[float, torch.Tensor]): Brightness adjust factor per elementin the batch. 0 generates a compleatly black image, 1 does not modifythe input image while any other non-negative number modify thediff --git a/scripts/build_wheel.sh b/scripts/build_wheel.shindex 05ceea3ec..ae5cc39cb 100755--- a/scripts/build_wheel.sh+++ b/scripts/build_wheel.sh@@ -1,8 +1,8 @@#!/bin/bash -ex## NOTE: change this each release-export KORNIA_BUILD_VERSION=0.1.3-export KORNIA_BUILD_NUMBER=2 # use 1 for final release, otherwise will be post2, post3, postN+export KORNIA_BUILD_VERSION=0.1.4+export KORNIA_BUILD_NUMBER=1 # use 1 for final release, otherwise will be post2, post3, postN# move to project root and create the wheel