glob
copied
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Readme
Files and versions
Updated 6 months ago
data-source
glob
author: junjie.jiang
Desription
Wrapper of python glob.glob
The parameters are consistent with it.
Code Example
Example
from towhee import DataLoader, pipe, ops
p = (
pipe.input('image_path')
.map('image_path', 'image', ops.image_decode.cv2())
.map('image', 'vec', ops.image_embedding.timm(model_name='resnet50'))
.output('vec')
)
for data in DataLoader(ops.data_source.glob('./*.jpg')):
print(p(data).to_list(kv_format=True))
# batch
for data in DataLoader(ops.data_source.glob('./*.jpg'), batch_size=10):
p.batch(data)
More Resources
- Open Source Vector Database & More | Zilliz: Access our Open Source Vector Database & other AI infrastructure solutions from the original Milvus creators & other popular OS technologies.
- Persistent Vector Storage for LlamaIndex - Zilliz blog: Discover the benefits of Persistent Vector Storage and optimize your data storage strategy.
- Milvus | Open-source Vector Databse created by Zilliz: Milvus, built by the Zilliz team, is a high-performance open-source vector database designed to handle billions of vectors for AI applications.
- Resources | Zilliz: Zilliz is a cloud-native vector database that solves the challenges of storing vectors at scale. Visit our website to see our latest whitepapers.
- About Zilliz | Zilliz: Vector database
- Feder Case | Zilliz: Feder case demo - Zilliz
| 3 Commits | ||
---|---|---|---|
|
1.1 KiB
|
2 years ago | |
|
1.7 KiB
|
6 months ago | |
|
97 B
|
2 years ago | |
|
348 B
|
2 years ago |