@ -14,13 +14,13 @@ This Operator generates feature vectors from the pytorch pretrained **Resnet50**
**Args:**
model_name (`str`):
- model_name (`str`):
The model name for embedding, for example 'resnet50'.
The model name for embedding, for example 'resnet50'.
framework (`str`):
- framework (`str`):
The framework of the model, the default is 'pytorch'.
The framework of the model, the default is 'pytorch'.
`__call__(self, img_tensor: torch.Tensor)`
@ -32,7 +32,7 @@ This Operator generates feature vectors from the pytorch pretrained **Resnet50**
**Returns:**
(`Tuple[('cnn', numpy.ndarray)]`)
(`Tuple[('feature_vector', numpy.ndarray)]`)
The embedding of image.
@ -42,7 +42,7 @@ You can get the required python package by [requirements.txt](./requirements.txt
## How it works
The `towhee/resnet50-image-embedding` Operator implements the function of image embedding, which can add to the pipeline, for example, it's the key Operator named embedding_model within [image_embedding_resnet50](https://hub.towhee.io/towhee/image-embedding-resnet50) pipeline, and it is the red box in the picture below.
The `towhee/resnet50-image-embedding` Operator implements the function of image embedding, which can add to the pipeline, for example, it's the key Operator named embedding_model within [image-embedding-resnet50](https://hub.towhee.io/towhee/image-embedding-resnet50) pipeline, and it is the red box in the picture below.