Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexcg1/executor_image_uri_to_blob
Jina Executor: Convert image URI to blob
https://github.com/alexcg1/executor_image_uri_to_blob
Last synced: 16 days ago
JSON representation
Jina Executor: Convert image URI to blob
- Host: GitHub
- URL: https://github.com/alexcg1/executor_image_uri_to_blob
- Owner: alexcg1
- Created: 2021-09-21T14:11:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-22T10:42:40.000Z (almost 3 years ago)
- Last Synced: 2024-10-17T08:14:20.079Z (about 1 month ago)
- Language: Python
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ImageUriToBlob
This allows you to use uri-to-blob conversion in the Flow rather than during doc processing.
## Why?
- Instead of processing input and query images separately, use one Executor to do them both.
- Saves you having to write a `for` loop to convert every image (since many encoders expect `blob`s).## Usage
#### via Docker image (recommended)
```python
from jina import Flow
f = Flow().add(uses='jinahub+docker://ImageUriToBlob')
```#### via source code
```python
from jina import Flow
f = Flow().add(uses='jinahub://ImageUriToBlob')
```- To override `__init__` args & kwargs, use `.add(..., uses_with: {'key': 'value'})`
- To override class metas, use `.add(..., uses_metas: {'key': 'value})`