logo
Browse Source

Fix for list inputs

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
Jael Gu 2 years ago
parent
commit
3a82fb4ebe
  1. 2
      timm_image.py

2
timm_image.py

@ -125,7 +125,7 @@ class TimmImage(NNOperator):
vecs = [list(x.detach().numpy()) for x in features] if isinstance(features, list) \
else list(features.detach().numpy())
else:
vecs = [x.squeeze(0).detach().numpy()] if isinstance(features, list) \
vecs = [x.squeeze(0).detach().numpy() for x in features] if isinstance(features, list) \
else features.squeeze(0).detach().numpy()
return vecs

Loading…
Cancel
Save