Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shijianjian committed Sep 11, 2024
1 parent 1625fd3 commit 6835aee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kornia/utils/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ def download_image(url: str, save_to: str) -> None:

def get_sample_images(
resize: Optional[tuple[int, int]] = None,
paths: list[str] = IMAGE_URLS,
paths: List[str] = IMAGE_URLS,
download: bool = True,
cache_dir: Optional[str] = None,
) -> Union[Tensor, list[Tensor]]:
) -> Union[Tensor, List[Tensor]]:
"""Loads multiple images from the given URLs.
Optionally download them, resize them if specified, and return them as a batch of tensors or a list of tensors.
Expand Down
1 change: 1 addition & 0 deletions requirements/requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
furo
kornia_moons
matplotlib
onnx
opencv-python
PyYAML>=5.1
sphinx
Expand Down

0 comments on commit 6835aee

Please sign in to comment.