Skip to content

Commit

Permalink
fix README some error
Browse files Browse the repository at this point in the history
  • Loading branch information
LokeZhou committed Aug 15, 2023
1 parent 15911a7 commit ac2d130
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions applications/Automatic_label/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

```python
from paddlemix import Appflow
from PIL import Image
from ppdiffusers.utils import load_image
task = Appflow(app="auto_label",
models=["paddlemix/blip2-caption-opt2.7b","GroundingDino/groundingdino-swint-ogc","Sam/SamVitH-1024"]
)
image_pil = Image.open("beauty.png").convert("RGB")
url = "https://paddlenlp.bj.bcebos.com/models/community/CompVis/stable-diffusion-v1-4/overture-creations.png"
image_pil = load_image(url)
result = task(image=image_pil)
```

Expand Down
2 changes: 1 addition & 1 deletion applications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ python setup.py install

### 一键预测

PaddleMIX提供[一键预测功能](),无需训练,直接输入数据即可输出结果:
PaddleMIX提供一键预测功能,无需训练,直接输入数据即可输出结果:

```python
>>> from paddlemix import Appflow
Expand Down
2 changes: 1 addition & 1 deletion applications/README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Taking open world detection segmentation as an example:

### Appflow

PaddleMIX provides [Appflow]() without training, and can directly input data to output results:
PaddleMIX provides Appflow without training, and can directly input data to output results:

```python
>>> from paddlemix import Appflow
Expand Down
3 changes: 1 addition & 2 deletions applications/text2video/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
```python
from paddlemix import Appflow
from PIL import Image
from ppdiffusers.utils import load_image


prompt = "An astronaut riding a horse."

Expand All @@ -21,4 +21,3 @@ imageio.mimsave("text_to_video_generation-synth-result-astronaut_riding_a_horse.
| An astronaut riding a horse.|![text_to_video_generation-synth-result-astronaut_riding_a_horse](https://github.com/LokeZhou/PaddleMIX/assets/13300429/21a21062-4ec3-489a-971b-7daa4305106e) |

</div>

0 comments on commit ac2d130

Please sign in to comment.