sunnyark / civitai-shortcut

140 stars 13 forks source link

[Feature Request] Minimum length version folders #84

Open Tyranical opened 1 year ago

Tyranical commented 1 year ago

Currently if "Create separate independent folders" is enabled the default folder name is MODEL-VERSION which is redundant, the version is already downloaded to the model folder so the model name being there just adds length.

The image below shows what I am requesting, the topis the curent default, the bottom is what I am requesting be the default. image

If the default is not changed, could you add an option in the settings to change the default to not include the model?

sunnyark commented 1 year ago

Changing it as you mentioned is not a difficult task, but the current naming convention is also customizable to your preference. Many users on the civitai site tend to write version names in an inconsistent manner, which is why I initially adopted the 'model-version' format. I will consider what approach would be better.

If you wish to modify the code, you can do so by editing the generate_version_foldername function in the setting.py file like this:

def generate_version_foldername(model_name, ver_name, ver_id):
    return f"{ver_name}"