towhee-io / towhee

Towhee is a framework that is dedicated to making neural data processing pipelines simple and fast.
https://towhee.io
Apache License 2.0
3.21k stars 247 forks source link

[Bug]: image_embedding is not define #2697

Closed Nicksxs closed 1 month ago

Nicksxs commented 3 months ago

Is there an existing issue for this?

Current Behavior

from towhee import AutoPipes, AutoConfig

# set MilvusInsertConfig for the built-in insert_milvus pipeline
insert_conf = AutoConfig.load_config('insert_milvus')
insert_conf.collection_name = 'text_image_search'

insert_pipe = AutoPipes.pipeline('insert_milvus', insert_conf)

# generate embedding
embedding = image_embedding('./test1.png').get()[0]

# insert text and embedding into Milvus
insert_pipe(['./test1.png', embedding])

notice embedding = image_embedding('./test.jpg').get()[0] ^^^^^^^^^^^^^^^ NameError: name 'image_embedding' is not defined

Expected Behavior

will insert image vector to milvus

Steps To Reproduce

1. just run code above

Environment

- Towhee version(e.g. v0.1.3 or 8b23a93): 1.1.3
- OS(Ubuntu or CentOS): MacOS 14.3
- CPU/Memory: Apple M3 Pro
- GPU: Apple M3 Pro
- Others:
- python version: 3.12.1

Anything else?

No response

junjiejiangjjj commented 3 months ago

Please take a look at the documentation https://towhee.readthedocs.io/en/latest/user_guide/10-minutes-to-towhee.html

Nicksxs commented 3 months ago

Please take a look at the documentation https://towhee.readthedocs.io/en/latest/user_guide/10-minutes-to-towhee.html

https://towhee.io/tasks/detail/pipeline/text-image-search make sure link above is offical towhee tutorial,if it is, why did not work, and if it need modify or correct, should tell me how to modify, but not give me another tutorial

junjiejiangjjj commented 3 months ago

image_pipe -> image_embedding

image
stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Rotten issues close after 30d of inactivity. Close the stale issues and pull requests after 7 days of inactivity. Reopen the issue with /reopen.