-
Notifications
You must be signed in to change notification settings - Fork 3k
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 FastDeploy+PaddleLite more devices support #4042
Conversation
Thanks for your contribution! |
timestep=np.array([t], dtype=np.int64), | ||
encoder_hidden_states=text_embeddings.astype(np.float32), | ||
encoder_embedding=text_embeddings.astype(np.float32), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stable-diffusion-v1-4和stable-diffusion-v1-5 的输入名都是latent_input/timestep/encoder_embedding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在改名与HF一致,stable-diffusion-v1-4和stable-diffusion-v1-5可以使用现在的代码重新导出个新的
b4a7cee
to
b54a589
Compare
ppdiffusers/deploy/README.md
Outdated
@@ -42,7 +42,8 @@ python text_to_img_infer.py --model_dir stable-diffusion-v1-5/ --scheduler "eule | |||
|----------|--------------| | |||
| --model_dir | 导出后模型的目录。 | | |||
| --model_format | 模型格式。默认为`'paddle'`,可选列表:`['paddle', 'onnx']`。 | | |||
| --backend | 推理引擎后端。默认为`paddle`,可选列表:`['onnx_runtime', 'paddle']`,当模型格式为`onnx`时,可选列表为`['onnx_runtime']`。 | | |||
| --backend | 推理引擎后端。默认为`paddle`,可选列表:`['onnx_runtime', 'paddle', 'paddlelite']`,当模型格式为`onnx`时,可选列表为`['onnx_runtime']`。 | | |||
| --device | 运行设备。默认为`cpu`,可选列表:`['cpu', 'gpu', 'huawei_ascend_npu', 'kunlun_xpu']`,默认为gpu。 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议 kunlunxin_xpu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
b54a589
to
25c6caa
Compare
25c6caa
to
8d8dd4f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
timestep=np.array([t], dtype=np.int64), | ||
encoder_hidden_states=text_embeddings.astype(np.float32), | ||
encoder_embedding=text_embeddings.astype(np.float32), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在改名与HF一致,stable-diffusion-v1-4和stable-diffusion-v1-5可以使用现在的代码重新导出个新的
PR types
New features
PR changes
Others
Description
在ppdiffusers增加FastDeploy对PaddleLite集成设备的支持