|
@ -25,8 +25,6 @@ For text query input, load text embeddings extracted from pre-trained models. Th |
|
|
For `ind` input, if a data in one of the modalities is invalid(such as NaN) or you do not want use it, the corresponding value in `ind` is 0, else 1. |
|
|
For `ind` input, if a data in one of the modalities is invalid(such as NaN) or you do not want use it, the corresponding value in `ind` is 0, else 1. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*Write the pipeline code*: |
|
|
|
|
|
|
|
|
|
|
|
```python |
|
|
```python |
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
import torch |
|
|
import torch |
|
|