speedy-utils 1.1.29__py3-none-any.whl → 1.1.30__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: speedy-utils
3
- Version: 1.1.29
3
+ Version: 1.1.30
4
4
  Summary: Fast and easy-to-use package for data science
5
5
  Project-URL: Homepage, https://github.com/anhvth/speedy
6
6
  Project-URL: Repository, https://github.com/anhvth/speedy
@@ -50,8 +50,8 @@ speedy_utils/scripts/openapi_client_codegen.py,sha256=GModmmhkvGnxljK4KczyixKDrk
50
50
  vision_utils/README.md,sha256=AIDZZj8jo_QNrEjFyHwd00iOO431s-js-M2dLtVTn3I,5740
51
51
  vision_utils/__init__.py,sha256=XsLxy1Fn33Zxu6hTFl3NEWfxGjuQQ-0Wmoh6lU9NZ_o,257
52
52
  vision_utils/io_utils.py,sha256=1FkG6k7uwZALh3-JkWXEHoGQJhjTqG1jC20SxObPRS0,25921
53
- vision_utils/plot.py,sha256=3NW2atYPdcs6-Qq8N179Pwji-p5ZUN6ddC0zE2WZb_8,11984
54
- speedy_utils-1.1.29.dist-info/METADATA,sha256=FcgtzlK1CJlS3sWFYi3Apkx4qqTcTRoLOaHz6YW8Wuc,8028
55
- speedy_utils-1.1.29.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
56
- speedy_utils-1.1.29.dist-info/entry_points.txt,sha256=1rrFMfqvaMUE9hvwGiD6vnVh98kmgy0TARBj-v0Lfhs,244
57
- speedy_utils-1.1.29.dist-info/RECORD,,
53
+ vision_utils/plot.py,sha256=tJNuXmwUQ9GVe52RGBHzkRlBCbrGbpMNdBTtQ7eEljs,12055
54
+ speedy_utils-1.1.30.dist-info/METADATA,sha256=i5X3HJZEX1UdLKvRIOAT6IQbmzuZA4kLLFUNFBZCc3I,8028
55
+ speedy_utils-1.1.30.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
56
+ speedy_utils-1.1.30.dist-info/entry_points.txt,sha256=1rrFMfqvaMUE9hvwGiD6vnVh98kmgy0TARBj-v0Lfhs,244
57
+ speedy_utils-1.1.30.dist-info/RECORD,,
vision_utils/plot.py CHANGED
@@ -142,7 +142,7 @@ def _normalize_batch(
142
142
 
143
143
 
144
144
  def plot_images_notebook(
145
- images: Union[np.ndarray, List[np.ndarray], List[Any], Any],
145
+ images: Union[np.ndarray, List[np.ndarray], List[Any], Any, Tuple],
146
146
  nrows: Optional[int] = None,
147
147
  ncols: Optional[int] = None,
148
148
  figsize: Optional[Tuple[float, float]] = None,
@@ -196,6 +196,8 @@ def plot_images_notebook(
196
196
  ... ]
197
197
  >>> plot_images_notebook(images, ncols=2)
198
198
  """
199
+ if isinstance(images, tuple):
200
+ images = list(images)
199
201
  # Check matplotlib availability
200
202
  mpl_available, plt = _check_matplotlib_available()
201
203
  if not mpl_available: