We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
建议版本:
推理时候请确保--scheduler "euler-ancestral" --infer_op raw --backend paddle_tensorrt --use_fp16 True --device gpu
--scheduler "euler-ancestral" --infer_op raw --backend paddle_tensorrt --use_fp16 True --device gpu
# 1. sd1-5导出模型 # 关闭ppxformers,否则会导致模型导出失败 export USE_PPXFORMERS=False python export_model.py --pretrained_model_name_or_path runwayml/stable-diffusion-v1-5 --output_path stable-diffusion-v1-5 ## 文生图推理 python infer.py --model_dir stable-diffusion-v1-5/ --scheduler "euler-ancestral" --infer_op raw --backend paddle_tensorrt --use_fp16 True --device gpu --task_name text2img ## 图生图推理 python infer.py --model_dir stable-diffusion-v1-5/ --scheduler "euler-ancestral" --infer_op raw --backend paddle_tensorrt --use_fp16 True --device gpu --task_name img2img ## inpaint_legacy python infer.py --model_dir stable-diffusion-v1-5/ --scheduler euler-ancestral --infer_op raw --backend paddle_tensorrt --use_fp16 True --device gpu --task_name inpaint_legacy
# 2. sd1-5 inpaint 导出模型 # 关闭ppxformers,否则会导致模型导出失败 export USE_PPXFORMERS=False python export_model.py --pretrained_model_name_or_path runwayml/stable-diffusion-inpainting --output_path stable-diffusion-v1-5-inpainting ## inpaint python infer.py --model_dir stable-diffusion-v1-5-inpainting/ --scheduler euler-ancestral --infer_op raw --backend paddle_tensorrt --use_fp16 True --device gpu --task_name inpaint
# 3. sd15 controlnet导出 # 关闭ppxformers,否则会导致模型导出失败 export USE_PPXFORMERS=False python export_model.py --pretrained_model_name_or_path runwayml/stable-diffusion-v1-5 --controlnet_pretrained_model_name_or_path lllyasviel/sd-controlnet-canny --output_path control_sd15_canny ## controlnet canny python infer.py --model_dir control_sd15_canny --scheduler "euler-ancestral" --infer_op raw --backend paddle_tensorrt --device gpu --benchmark_steps 10 --use_fp16 True --task text2img_control
The text was updated successfully, but these errors were encountered:
接了
Sorry, something went wrong.
【Hackathon 5th】fastdeploy版的sd15模型添加gradio界面 (#311)
9769ebe
支持文生图、图生图、inpaint_legacy、inpaint、controlnet+canny的推理 #256 aistudio 项目还在施工中。
【Hackathon 5th】fastdeploy版的sd15模型添加gradio界面 (PaddlePaddle#311)
1585822
支持文生图、图生图、inpaint_legacy、inpaint、controlnet+canny的推理 PaddlePaddle#256 aistudio 项目还在施工中。
No branches or pull requests
fastdeploy版的sd15模型添加gradio界面
任务描述
任务背景
完成步骤
建议版本:
推理时候请确保
--scheduler "euler-ancestral" --infer_op raw --backend paddle_tensorrt --use_fp16 True --device gpu
提交内容:
The text was updated successfully, but these errors were encountered: