logo
Browse Source

add the image decoder operator.

main
wxywb 3 years ago
parent
commit
f99aecdc34
  1. 28
      image_embedding_resnet50.yaml

28
image_embedding_resnet50.yaml

@ -10,21 +10,37 @@ operators:
df: '_start_df' df: '_start_df'
name: 'img_path' name: 'img_path'
col: 0 col: 0
outputs:
-
df: 'img_str'
iter_info:
type: map
-
name: 'image_decoder'
function: 'towhee/image-decoder'
tag: 'main'
init_args:
inputs:
-
df: 'img_str'
name: 'image_path'
col: 0
outputs: outputs:
- -
df: 'image' df: 'image'
iter_info: iter_info:
type: map type: map
- -
name: 'embedding_model' name: 'embedding_model'
function: 'towhee/resnet-image-embedding' # same as 'resnet50-image-embedding', default user is towhee function: 'towhee/resnet-image-embedding' # same as 'resnet50-image-embedding', default user is towhee
tag: 'main' # optional
tag: 'main'
init_args: init_args:
model_name: 'resnet50' model_name: 'resnet50'
inputs: inputs:
- -
df: 'image' df: 'image'
name: 'img_path'
name: 'image'
col: 0 col: 0
outputs: outputs:
- -
@ -53,11 +69,17 @@ dataframes:
name: 'img_path' name: 'img_path'
vtype: 'str' vtype: 'str'
- -
name: 'image'
name: 'img_str'
columns: columns:
- -
name: 'img_path' name: 'img_path'
vtype: 'str' vtype: 'str'
-
name: 'image'
columns:
-
name: 'image'
vtype: 'towhee.types.Image'
- -
name: 'embedding' name: 'embedding'
columns: columns:

Loading…
Cancel
Save