logo
Browse Source

rm image dep

Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
main
junjie.jiang 2 years ago
parent
commit
853effa72f
  1. 4
      isc.py

4
isc.py

@ -86,8 +86,8 @@ class Isc(NNOperator):
std=self.backbone.default_cfg['std']) std=self.backbone.default_cfg['std'])
]) ])
def __call__(self, data: Union[List[towhee._types.Image], towhee._types.Image]):
if isinstance(data, towhee._types.Image):
def __call__(self, data: Union[List['towhee.types.Image'], 'towhee.types.Image']):
if not isinstance(data, list):
imgs = [data] imgs = [data]
else: else:
imgs = data imgs = data

Loading…
Cancel
Save