towhee
/
image-embedding-resnet50
copied
Filip
3 years ago
2 changed files with 77 additions and 107 deletions
@ -1,94 +1,71 @@ |
|||||
name: 'image-embedding-resnet' |
|
||||
type: 'image-embedding' |
|
||||
|
name: image_embedding_resnet50 |
||||
|
type: image-embedding |
||||
operators: |
operators: |
||||
- |
|
||||
name: '_start_op' |
|
||||
function: '_start_op' |
|
||||
init_args: |
|
||||
|
- name: _start_op |
||||
|
function: _start_op |
||||
|
init_args: null |
||||
inputs: |
inputs: |
||||
- |
|
||||
df: '_start_df' |
|
||||
name: 'img_path' |
|
||||
|
- df: _start_df |
||||
|
name: img_path |
||||
col: 0 |
col: 0 |
||||
outputs: |
outputs: |
||||
- |
|
||||
df: 'img_str' |
|
||||
|
- df: img_str |
||||
iter_info: |
iter_info: |
||||
type: map |
type: map |
||||
- |
|
||||
name: 'image_decoder' |
|
||||
function: 'towhee/image-decoder' |
|
||||
tag: 'main' |
|
||||
init_args: |
|
||||
|
- name: image_decoder |
||||
|
function: towhee/image-decoder |
||||
|
tag: main |
||||
|
init_args: null |
||||
inputs: |
inputs: |
||||
- |
|
||||
df: 'img_str' |
|
||||
name: 'image_path' |
|
||||
|
- df: img_str |
||||
|
name: image_path |
||||
col: 0 |
col: 0 |
||||
outputs: |
outputs: |
||||
- |
|
||||
df: 'image' |
|
||||
|
- df: image |
||||
iter_info: |
iter_info: |
||||
type: map |
type: map |
||||
|
|
||||
- |
|
||||
name: 'embedding_model' |
|
||||
function: 'towhee/resnet-image-embedding' # same as 'resnet50-image-embedding', default user is towhee |
|
||||
tag: 'main' |
|
||||
|
- name: embedding_model |
||||
|
function: towhee/timm-image-embedding |
||||
|
tag: main |
||||
init_args: |
init_args: |
||||
model_name: 'resnet50' |
|
||||
|
model_name: resnet50 |
||||
inputs: |
inputs: |
||||
- |
|
||||
df: 'image' |
|
||||
name: 'image' |
|
||||
|
- df: image |
||||
|
name: image |
||||
col: 0 |
col: 0 |
||||
outputs: |
outputs: |
||||
- |
|
||||
df: 'embedding' |
|
||||
|
- df: embedding |
||||
iter_info: |
iter_info: |
||||
type: map |
type: map |
||||
- |
|
||||
name: '_end_op' |
|
||||
function: '_end_op' |
|
||||
init_args: |
|
||||
|
- name: _end_op |
||||
|
function: _end_op |
||||
|
init_args: null |
||||
inputs: |
inputs: |
||||
- |
|
||||
df: 'embedding' |
|
||||
name: 'feature_vector' |
|
||||
|
- df: embedding |
||||
|
name: feature_vector |
||||
col: 0 |
col: 0 |
||||
outputs: |
outputs: |
||||
- |
|
||||
df: '_end_df' |
|
||||
|
- df: _end_df |
||||
iter_info: |
iter_info: |
||||
type: map |
type: map |
||||
dataframes: |
dataframes: |
||||
- |
|
||||
name: '_start_df' |
|
||||
|
- name: _start_df |
||||
columns: |
columns: |
||||
- |
|
||||
name: 'img_path' |
|
||||
vtype: 'str' |
|
||||
- |
|
||||
name: 'img_str' |
|
||||
|
- name: img_path |
||||
|
vtype: str |
||||
|
- name: img_str |
||||
columns: |
columns: |
||||
- |
|
||||
name: 'img_path' |
|
||||
vtype: 'str' |
|
||||
- |
|
||||
name: 'image' |
|
||||
|
- name: img_path |
||||
|
vtype: str |
||||
|
- name: image |
||||
columns: |
columns: |
||||
- |
|
||||
name: 'image' |
|
||||
vtype: 'towhee.types.Image' |
|
||||
- |
|
||||
name: 'embedding' |
|
||||
|
- name: image |
||||
|
vtype: towhee.types.Image |
||||
|
- name: embedding |
||||
columns: |
columns: |
||||
- |
|
||||
name: 'feature_vector' |
|
||||
vtype: 'numpy.ndarray' |
|
||||
- |
|
||||
name: '_end_df' |
|
||||
|
- name: feature_vector |
||||
|
vtype: numpy.ndarray |
||||
|
- name: _end_df |
||||
columns: |
columns: |
||||
- |
|
||||
name: 'feature_vector' |
|
||||
vtype: 'numpy.ndarray' |
|
||||
|
- name: feature_vector |
||||
|
vtype: numpy.ndarray |
||||
|
Loading…
Reference in new issue