Skip to content

Couldn't initialize anapnoe database / checkpoint table doesnt exist #5

@liberteus

Description

@liberteus

Long story short: I'm using your extension on regular Forge and created an issue on it a week ago regarding same issue. Installed your fork to test it out, and benefit from more goodies (optimization apparently, it's faster/smoother?).

So I got the same errors that I had using the extension, figured out you didnt patch everything (even though the db_forge_lora and another file have been updated 8 days ago). I turned to gpt (dont get mad, it's useful), and it made me change the network.py file in the builtin extension sd_forge_lora folder.

See below the change

Before

    def get_alias(self):
        import networks
        if shared.opts.lora_preferred_name == "Filename" or self.alias.lower() in networks.forbidden_network_aliases:
            return self.name
        else:
            return self.alias

Which is now:

    def get_alias(self):
        import networks
        preferred = getattr(shared.opts, "lora_preferred_name", "Filename")
        if preferred == "Filename" or self.alias.lower() in networks.forbidden_network_aliases:
            return self.name
        else:
            return self.alias

And well, it works. Your UI/UX is very neat, not perfect, but that's a story for another day :) You have my gratitude for your work sir!

network.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions