lpawlick / sd-webui-model-notes

2 stars 1 forks source link

Where are the model notes stored? #1

Open wktra opened 1 year ago

wktra commented 1 year ago

Where are the model notes stored? What if I wanted to manually edit them outside of the webui?

Also, why isn't this compatible with this extension: https://github.com/Zetaphor/sd-library-notes Why doesn't it allow for markdown?

I have TONS of text files with notes about each model. Why would you not make this work with that?

It could be so useful, but not right now.

lpawlick commented 1 year ago

The notes are stored in a sqlite database called notes.db which is located in the extension folder and can be edited with anything that supports sqlite. Sqlitebrowser appears to be popular as an easy solution with a GUI. This is done in an effort to keep notes and models itself separated, simplifying the file management. Markdown support sub-optimal in gradio but is currently being worked on. It may become an optional feature that can be enabled in the settings, depending on how the implementation turns out. As for importing and exporting data, i can add a migration option if you let me know the file structure you would like to import/export

wktra commented 1 year ago

I have 333 Loras with 333 text files with usage notes on them. I know of many users who follow this format based on the previously mentioned notes extension.

I backup my models/Loras regularly. And those accompanying textfiles get backed up too.

I think your extension is for newer users coming onto the scene who are willing to start from scratch.

But I'm not going to copy and past content from 333 files onto your extension, knowing I'll also have to backup notes.db with possible errors.

lpawlick commented 1 year ago

Import and export added later on, after the Civitai and markdown components are finished. It may include an backup option, maybe it fits your needs better by then. SQLite-Databases generally considered to be more reliable than text files, as they provide mechanisms for ensuring that data is stored correctly and consistently minimizing the chance of any data corruption