mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Sometimes, diffusers model components (tokenizer, unet, etc.) have multiple weights files in the same directory. In this situation, we assume the files are different versions of the same weights. For example, we may have multiple formats (`.bin`, `.safetensors`) with different precisions. When downloading model files, we want to select only the best of these files for the requested format and precision/variant. The previous logic assumed that each model weights file would have the same base filename, but this assumption was not always true. The logic is revised score each file and choose the best scoring file, resulting in only a single file being downloaded for each submodel/subdirectory. |
||
---|---|---|
.. | ||
app | ||
assets | ||
backend | ||
configs | ||
frontend | ||
invocation_api | ||
version | ||
__init__.py | ||
README |
Organization of the source tree: app -- Home of nodes invocations and services assets -- Images and other data files used by InvokeAI backend -- Non-user facing libraries, including the rendering core. configs -- Configuration files used at install and run times frontend -- User-facing scripts, including the CLI and the WebUI version -- Current InvokeAI version string, stored in version/invokeai_version.py