logo
Browse Source

update the operator.

Signed-off-by: wxywb <xy.wang@zilliz.com>
main
wxywb 2 years ago
parent
commit
afc5f02170
  1. 2
      README.md
  2. 3
      blip.py

2
README.md

@ -39,7 +39,7 @@ text_pipe = (
.output('text', 'vec')
)
DataCollection(image_pipe('./teddy.jpg')).show()
DataCollection(img_pipe('./teddy.jpg')).show()
DataCollection(text_pipe('A teddybear on a skateboard in Times Square.')).show()
```

3
blip.py

@ -13,9 +13,12 @@
# limitations under the License.
import sys
import os
from pathlib import Path
import torch
import logging
import warnings
from torch import nn
from transformers import AutoProcessor, BlipForImageTextRetrieval

Loading…
Cancel
Save