π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
define a float divider
Pau3d88f74e4c3a
diff --git a/kornia/color/adjust.py b/kornia/color/adjust.pyindex 8bf11bbcb..e8406a5be 100644--- a/kornia/color/adjust.py+++ b/kornia/color/adjust.py@@ -80,7 +80,8 @@ def adjust_hue(input: torch.Tensor, hue_factor: Union[float, torch.Tensor]) -> th, s, v = torch.chunk(x_hsv, chunks=3, dim=-3)# transform the hue value and appl module- h_out: torch.Tensor = torch.fmod(h + hue_factor, 2*pi)+ divisor: float = 2*pi.item()+ h_out: torch.Tensor = torch.fmod(h + hue_factor, divisor)# pack back back the corrected huex_adjusted: torch.Tensor = torch.cat([h_out, s, v], dim=-3)