This commit is contained in:
2025-09-04 09:41:06 +08:00
parent bbcf37ab22
commit cd870b8d5f
2 changed files with 30 additions and 8 deletions

View File

@@ -9,10 +9,17 @@ with open('config.json', 'r', encoding='utf-8') as f:
if __name__ == "__main__":
# 获取第一个模型的配置
model_config = config["models"][1]
model_config = config["models"][0]
# 完成的例子
# 炫酷机甲美女_majicflus
# https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/LibLib/bdde20e3143049c3916aa0b8d523b469.jpg
# 卡通小人
# https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/LibLib/484eba61d6e74f8ea0cb3d8ff2d14341.jpg
# F.1-武侠世界
# https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/LibLib/215df7724cba4bf9a64e7863ecb4ebc0.jpg
# 通过枚举转换
print(f'使用采样方法: {model_config["sampler"]}')
model_config["sampler"] = SAMPLING_METHODS[model_config["sampler"]]