'commit'
This commit is contained in:
@@ -10,6 +10,8 @@ with open('config.json', 'r', encoding='utf-8') as f:
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# 获取第一个模型的配置
|
# 获取第一个模型的配置
|
||||||
model_config = config["models"][1]
|
model_config = config["models"][1]
|
||||||
|
# 完成的例子
|
||||||
|
# https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/LibLib/484eba61d6e74f8ea0cb3d8ff2d14341.jpg
|
||||||
|
|
||||||
# 通过枚举转换
|
# 通过枚举转换
|
||||||
print(f'使用采样方法: {model_config["sampler"]}')
|
print(f'使用采样方法: {model_config["sampler"]}')
|
||||||
|
Reference in New Issue
Block a user