mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-26 17:29:27 +00:00
WIP create new class to add new models more easily
This commit is contained in:
9
toolkit/util/get_model.py
Normal file
9
toolkit/util/get_model.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from toolkit.stable_diffusion_model import StableDiffusion
|
||||
from toolkit.config_modules import ModelConfig
|
||||
|
||||
def get_model_class(config: ModelConfig):
|
||||
if config.arch == "wan21":
|
||||
from toolkit.models.wan21 import Wan21
|
||||
return Wan21
|
||||
else:
|
||||
return StableDiffusion
|
||||
Reference in New Issue
Block a user