Skip to content

Commit

Permalink
Update transforms.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyutang authored Jul 14, 2023
1 parent 934ec76 commit 6de11d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paddleseg/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def __call__(self, data):
"""
if 'img' not in data.keys():
raise ValueError("`data` must include `img` key.")
# data['img'] is numpy array in eg1800 and supervisely
if data['img'] is None:
raise TypeError(
"Expect `data[img]` to be str or np.ndarray, but got NoneType.")
Expand Down

0 comments on commit 6de11d5

Please sign in to comment.