Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation about how to write documentation. #271

Closed
reyoung opened this issue Oct 27, 2016 · 3 comments
Closed

Documentation about how to write documentation. #271

reyoung opened this issue Oct 27, 2016 · 3 comments
Assignees

Comments

@reyoung
Copy link
Collaborator

reyoung commented Oct 27, 2016

Write a documentation to show:

  • How paddle docs are organized.
  • How to write paddle docs
  • How to build paddle docs and preview documentation locally
  • How does www.paddlepaddle.org update documentation.
@reyoung reyoung added this to the 0.8.1 milestone Oct 27, 2016
@reyoung reyoung self-assigned this Oct 27, 2016
@reyoung
Copy link
Collaborator Author

reyoung commented Oct 27, 2016

Related to #270 .

@backyes
Copy link
Contributor

backyes commented Nov 9, 2016

相关PR已经merged了,所以close这个issue。

@backyes backyes closed this as completed Nov 9, 2016
@reyoung
Copy link
Collaborator Author

reyoung commented Nov 9, 2016

其实还没写完。

@reyoung reyoung reopened this Nov 9, 2016
@qingqing01 qingqing01 modified the milestones: 0.10.0, 0.9.0 Nov 11, 2016
@reyoung reyoung modified the milestone: 0.10.0 Nov 11, 2016
@reyoung reyoung closed this as completed Apr 28, 2017
gglin001 added a commit to graphcore/Paddle-fork that referenced this issue Dec 8, 2021
* add LowerConstants

* add ConstantOpAttrVisitor

* code clean

* fix compiler error

* fix build error

* use constant nor addInitializedInputTensor

* up 0

* up 1

* up 2

* use NewScope

* rm comment

* up x
wangxicoding pushed a commit to wangxicoding/Paddle that referenced this issue Dec 9, 2021
WAYKEN-TSE pushed a commit to WAYKEN-TSE/Paddle that referenced this issue Dec 6, 2024
PaddlePaddle#271 Checkpoint Merger
生成结果对齐:
CompVis/stable-diffusion-v1-4 + runwayml/stable-diffusion-v1-5
## torch

![CompVis_runwayml_1](https://github.com/PaddlePaddle/PaddleMIX/assets/93063038/1b090fbc-4300-490a-b551-3b629bc17f9a)
代码如下:
```python
from diffusers import DiffusionPipeline
import torch

pipe = DiffusionPipeline.from_pretrained(
    "CompVis/stable-diffusion-v1-4",
    custom_pipeline="checkpoint_merger",
)

merged_pipe = pipe.merge(
    ["CompVis/stable-diffusion-v1-4", "runwayml/stable-diffusion-v1-5"],
    interp="sigmoid",
    alpha=0.4,
)

prompt = "An astronaut riding a horse on Mars"
merged_pipe.to("cuda")

image = merged_pipe(prompt, generator=torch.Generator("cuda").manual_seed(102)).images[0]
image.save("CompVis_runwayml.jpg")
```
## paddle

![CompVis_runwayml](https://github.com/PaddlePaddle/PaddleMIX/assets/93063038/d3059125-b7a4-4506-8516-1407c14cde10)
代码如下:
```python
from ppdiffusers import DiffusionPipeline
import paddle

pipe = DiffusionPipeline.from_pretrained(
    "CompVis/stable-diffusion-v1-4",
    custom_pipeline="/home/onion/workspace/code/pp/PaddleMIX/ppdiffusers/examples/community/checkpoint_merger",
)

merged_pipe = pipe.merge(
    ["CompVis/stable-diffusion-v1-4", "runwayml/stable-diffusion-v1-5"],
    interp="sigmoid",
    alpha=0.4,
)

prompt = "An astronaut riding a horse on Mars"

image = merged_pipe(prompt, generator=paddle.Generator("cuda").manual_seed(102)).images[0]
image.save("CompVis_runwayml.jpg")
```
结果一致
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants