Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 8, 2024
1 parent ee3903e commit fb07bb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions kornia/contrib/object_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ def forward(self, imgs: Union[Tensor, list[Tensor]]) -> tuple[Tensor, Tensor]:
img = imgs[i]
original_sizes[i, 0] = img.shape[-2] # Height
original_sizes[i, 1] = img.shape[-1] # Width
resized_imgs.append(
resize(img[None], size=self.size, interpolation=self.interpolation_mode)
)
resized_imgs.append(resize(img[None], size=self.size, interpolation=self.interpolation_mode))
return concatenate(resized_imgs), original_sizes


Expand Down
2 changes: 1 addition & 1 deletion kornia/core/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, module_name: str) -> None:

def _install_package(self, module_name: str) -> None:
logger.info(f"Installing `{self.module_name}` ...")
subprocess.run(["pip", "install", "-U", self.module_name], shell=False)
subprocess.run(["pip", "install", "-U", self.module_name], shell=False, check=False)

def _load(self) -> None:
"""Loads the module if it hasn't been loaded yet.
Expand Down

0 comments on commit fb07bb9

Please sign in to comment.