mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
lint
This commit is contained in:
parent
2c39aec22d
commit
6392098961
@ -6,12 +6,15 @@ from invokeai.backend import BaseModelType
|
|||||||
from invokeai.backend.model_management.model_probe import VaeFolderProbe
|
from invokeai.backend.model_management.model_probe import VaeFolderProbe
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("vae_path,expected_type", [
|
@pytest.mark.parametrize(
|
||||||
("sd-vae-ft-mse", BaseModelType.StableDiffusion1),
|
"vae_path,expected_type",
|
||||||
("sdxl-vae", BaseModelType.StableDiffusionXL),
|
[
|
||||||
("taesd", BaseModelType.StableDiffusion1),
|
("sd-vae-ft-mse", BaseModelType.StableDiffusion1),
|
||||||
("taesdxl", BaseModelType.StableDiffusionXL)
|
("sdxl-vae", BaseModelType.StableDiffusionXL),
|
||||||
])
|
("taesd", BaseModelType.StableDiffusion1),
|
||||||
|
("taesdxl", BaseModelType.StableDiffusionXL),
|
||||||
|
],
|
||||||
|
)
|
||||||
def test_get_base_type(vae_path: str, expected_type: BaseModelType, datadir: Path):
|
def test_get_base_type(vae_path: str, expected_type: BaseModelType, datadir: Path):
|
||||||
sd1_vae_path = datadir / "vae" / vae_path
|
sd1_vae_path = datadir / "vae" / vae_path
|
||||||
probe = VaeFolderProbe(sd1_vae_path)
|
probe = VaeFolderProbe(sd1_vae_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user