lora-scripts icon indicating copy to clipboard operation
lora-scripts copied to clipboard

fix_issues#364

Open neverbiasu opened this issue 1 year ago • 2 comments

当前,保存的配置文件名为纯数字时间戳,如 1709263480595.toml。这种命名方式容易混淆,难以区分不同的配置文件。

为了改善这一点,我对相关代码进行了修改,使保存的配置文件名包含 output_name 前缀,格式为 [output_name]_[timestamp].toml。例如,如果 output_name 为 "model",保存的配置文件名将变为 "model_1709263480595.toml"。

这种命名方式更加直观,便于识别和管理不同的配置文件。

修改详情

  • api.py 文件中,修改了toml_file的命名,确保下载的配置文件名也包含了 output_name 前缀。

修改了 #364

neverbiasu avatar Mar 20 '24 16:03 neverbiasu

output name may have invalid character for windows path.

Akegarasu avatar Mar 21 '24 01:03 Akegarasu

I add a clean_filename function to remove the invalid character.🧹

neverbiasu avatar Mar 21 '24 03:03 neverbiasu