logo
Browse Source

add return shape introduction

training
zhang chen 3 years ago
parent
commit
fd9792780d
  1. 1
      README.md
  2. 2
      pytorch/model.py

1
README.md

@ -40,6 +40,7 @@ The Operator returns a tuple `Tuple[('feature_vector', numpy.ndarray)]` containi
- feature_vector:
- the embedding of the image
- data type: `numpy.ndarray`
- shape: (dim,)
## Requirements

2
pytorch/model.py

@ -32,7 +32,7 @@ class Model():
self._model.eval()
def __call__(self, img_tensor: torch.Tensor):
return self._model(img_tensor).detach().numpy()
return self._model(img_tensor).flatten().detach().numpy()
def train(self):
"""

Loading…
Cancel
Save