File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
invokeai/backend/model_manager/omi Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change
1
+ from invokeai .backend .model_manager .omi .vendor .model_spec .architecture import (
2
+ stable_diffusion_xl_1_lora ,
3
+ flux_dev_1_lora
4
+ )
5
+
6
+ from invokeai .backend .model_manager .omi .omi import convert_from_omi
Original file line number Diff line number Diff line change 1
- import omi_model_standards .convert .lora .convert_lora_util as lora_util
2
- from omi_model_standards .convert .lora .convert_flux_lora import convert_flux_lora_key_sets
3
- from omi_model_standards .convert .lora .convert_sdxl_lora import convert_sdxl_lora_key_sets
1
+ from invokeai .backend .model_manager .omi .vendor .convert .lora import (
2
+ convert_lora_util as lora_util ,
3
+ convert_flux_lora as omi_flux ,
4
+ convert_sdxl_lora as omi_sdxl ,
5
+ )
4
6
5
7
from invokeai .backend .model_manager .model_on_disk import StateDict
6
8
from invokeai .backend .model_manager .taxonomy import BaseModelType
7
9
8
10
9
11
def convert_from_omi (weights_sd : StateDict , base : BaseModelType ):
10
12
keyset = {
11
- BaseModelType .Flux : convert_flux_lora_key_sets (),
12
- BaseModelType .StableDiffusionXL : convert_sdxl_lora_key_sets (),
13
+ BaseModelType .Flux : omi_flux . convert_flux_lora_key_sets (),
14
+ BaseModelType .StableDiffusionXL : omi_sdxl . convert_sdxl_lora_key_sets (),
13
15
}[base ]
14
16
source = "omi"
15
17
target = "legacy_diffusers"
You can’t perform that action at this time.
0 commit comments