| ## 创建环境 | |
| ``` | |
| git clone https://huggingface.co/yujuanqin/test_sd | |
| conda create -n test-sd python=3.10 | |
| conda activate test-sd | |
| pip install -r requirements.txt | |
| ``` | |
| ## 下载模型 | |
| ``` | |
| python download_models.py | |
| ``` | |
| ## 执行测试脚本 | |
| 在 test_config.py 文件中可以根据需要修改生成图片路径,测试模型配置,prompts。 | |
| ``` | |
| python test_diffusers.py | |
| ``` | |
| ## 收集测试结果 | |
| 测试结果在 result_diffuser.csv,生成的图片保存在当前目录下的base_model_images文件夹。 |