About towhee pipeline: Can I disable the env check when running my pipeline? #2515
Answered
by
junjiejiangjjj
LiuersNick
asked this question in
Q&A
-
Every time before i running the pipeline, it checks if the environment meets the requirements like: And I think this process takes some time. Here is my code: def load_image_embedding(table_name):
pipe_load = (
pipe.input('table_name')
.flat_map('table_name', ('id', 'path'), read_mysql)
.map('path', 'img', ops.image_decode.cv2('rgb'))
.map('img', 'vec', ops.image_text_embedding.clip(model_name='clip_vit_base_patch16', modality='image', device=0))
.map('vec', 'vec', lambda x: x / np.linalg.norm(x))
.map(('id', 'vec'), (), ops.ann_insert.milvus_client(host='127.0.0.1', port='19530', collection_name='text_image_search'))
.output(tracer=True)
)
pipe_load(table_name)
profiler_info = pipe_load.profiler()
return profiler_info Thanks for your reply! |
Beta Was this translation helpful? Give feedback.
Answered by
junjiejiangjjj
May 4, 2023
Replies: 1 comment 1 reply
-
The clip operator depends on |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LiuersNick
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The clip operator depends on
datasets[vision]
, currently, this format of dependency detection has problems, leading to an attempt to install every time.