Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model Merge depends on InvokeAI #146

Open
iwr-redmond opened this issue Jul 27, 2024 · 1 comment
Open

Model Merge depends on InvokeAI #146

iwr-redmond opened this issue Jul 27, 2024 · 1 comment

Comments

@iwr-redmond
Copy link

src/invoke_training/model_merge/scripts/merge_lora_into_model.py L10:

# HACK(ryand): Import order matters, because invokeai contains circular imports.
from invokeai.backend.model_manager import BaseModelType
from invokeai.backend.lora import LoRAModelRaw
from invokeai.backend.model_patcher import ModelPatcher

But the documentation draft (docs/get-started/installation.md) says:

Create and activate a python virtual environment. This creates an isolated environment for invoke-training and its dependencies that won't interfere with other python environments on your system, including any installations of InvokeAI.

And presently invokeai is not listed in pyproject.toml as a dependency.

@RyanJDick
Copy link
Collaborator

invokeai is listed in pyproject.toml:

"invokeai==4.2.3",

I want to get rid of this dependency at some point. It doesn't make sense to install all of invokeai just for the few files that we want. But, for now, it should work as-is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants