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

[ppdiffusers] add AnimateAnyone inference example #435

Merged

Conversation

Tsaiyue
Copy link
Contributor

@Tsaiyue Tsaiyue commented Feb 27, 2024

No description provided.

Copy link

paddle-bot bot commented Feb 27, 2024

Thanks for your contribution!

@jerrywgz jerrywgz assigned westfish and unassigned jerrywgz Feb 28, 2024
data=[1] * batch_size * num_images_per_prompt * 16 + [0] * batch_size * num_images_per_prompt * 16,
dtype="float32",
)
.to(device)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

device相关的可以去除

else:
uc_mask = (
paddle.to_tensor(data=[0] * batch_size * num_images_per_prompt * 2, dtype="float32")
.to(device)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

去除

data=[1] * (hidden_states.shape[0] // 2) + [0] * (hidden_states.shape[0] // 2),
dtype="float32",
)
.to(device)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

去除

# 安装2.6.0版本的paddlepaddle-gpu,当前我们选择了cuda12.0的版本,可以查看 https://www.paddlepaddle.org.cn/ 寻找自己适合的版本
python -m pip install paddlepaddle-gpu==2.6.0.post120 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html

# 进入consistency_distillation目录
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改一下


## 3. 模型下载

运行以下自动下载脚本,通过 [Huggingface](https://huggingface.co/InstantX/InstantID) 下载 AnimateAnyone 相关模型权重文件,模型权重文件将存储在`./pretrained_weights`下面。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

链接错了,改一下

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the above have done.
Thks 4 ur review.

Copy link
Contributor

@westfish westfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@westfish westfish merged commit 24dcf8e into PaddlePaddle:upgrade_ppdiffusers0240 Mar 5, 2024
1 check passed
@Tsaiyue Tsaiyue deleted the AnimateAnyone branch April 9, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants