diff --git a/README.md b/README.md index 071c056..d1358fd 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,7 @@ The default pretrained model weights are from [The 1st Place Solution of ISC21 ( Load an image from path './towhee.jpg' and use the pretrained ISC model ('resnet50') to generate an image embedding. -*Write a same pipeline with explicit inputs/outputs name specifications:* - -- **option 1 (towhee>=0.9.0):** +*Write a pipeline with explicit inputs/outputs name specifications:* ```python from towhee.dc2 import pipe, ops, DataCollection @@ -36,19 +34,6 @@ DataCollection(p('towhee.jpg')).show() ``` -- **option 2:** -```python -import towhee - -( - towhee.glob['path']('./towhee.jpg') - .image_decode['path', 'img']() - .image_embedding.isc['img', 'vec']() - .select['img', 'vec']() - .show() -) -``` -
## Factory Constructor