Repository Details
Shared by
HelloGitHub Rating
0 ratings
Free•Apache-2.0
Claim
Discuss
Collect
Share
21.1k
Stars
No
Chinese
Python
Language
Yes
Active
172
Contributors
23
Issues
Yes
Organization
3.27.18
Latest
2k
Forks
Apache-2.0
License
More
一款易用的神经搜索框架。神经搜索是指用非结构化数据,搜索非结构化数据。Jina 简化了神经搜索系统的搭建流程,使开发者可以快速构建以图搜图、以文字搜图、问答机器人、照片去重、海量标签分类等应用
```python
from docarray import Document, DocumentArray
from jina import Executor, Flow, requests
class PreprocImg(Executor):
@requests
async def foo(self, docs: DocumentArray, **kwargs):
for d in docs:
(
d.load_uri_to_image_tensor(200, 200) # load
.set_image_tensor_normalization() # normalize color
.set_image_tensor_channel_axis(
-1, 0
) # switch color axis for the PyTorch model later
)
```
Comments
Rating:
No comments yet