diff --git a/README.md b/README.md index 1df46ad..105c9fa 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,7 @@ who maintains SOTA deep-learning models and tools in computer vision. Load an image from path './towhee.jpeg' and use the pre-trained ResNet50 model ('resnet50') to generate an image embedding. -*Write a same pipeline with explicit inputs/outputs name specifications:* - -- **option 1:** +*Write a pipeline with explicit inputs/outputs name specifications:* ```python from towhee.dc2 import pipe, ops, DataCollection @@ -37,17 +35,6 @@ DataCollection(p('towhee.jpeg')).show() -- **option 2:** -```python -import towhee - -towhee.glob['path']('./towhee.jpeg') \ - .image_decode['path', 'img']() \ - .image_embedding.timm['img', 'vec'](model_name='resnet50') \ - .select['img', 'vec']() \ - .show() -``` -
## Factory Constructor