style: rename
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from ._autoencoder import AutoencoderModel
|
||||
from ._pipeline import PipelineModel
|
||||
from ._autoencoder import Autoencoder
|
||||
from ._pipeline import Pipeline
|
||||
|
||||
__all__ = [
|
||||
"PipelineModel",
|
||||
"AutoencoderModel",
|
||||
"Pipeline",
|
||||
"Autoencoder",
|
||||
]
|
||||
|
||||
@@ -4,6 +4,6 @@ from diffusers import AutoencoderKL
|
||||
|
||||
|
||||
@dataclass
|
||||
class AutoencoderModel:
|
||||
class Autoencoder:
|
||||
autoencoder: AutoencoderKL
|
||||
path: str
|
||||
|
||||
@@ -4,6 +4,6 @@ from diffusers import StableDiffusionPipeline
|
||||
|
||||
|
||||
@dataclass
|
||||
class PipelineModel:
|
||||
class Pipeline:
|
||||
pipeline: StableDiffusionPipeline
|
||||
path: str
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from ._i_autoencoder_repository import IAutoencoderRepository
|
||||
from ._i_pipeline_repository import IPipelineRepository
|
||||
from ._autoencoder_repository import AutoencoderRepository
|
||||
from ._pipeline_repository import PipelineRepository
|
||||
|
||||
__all__ = ["IPipelineRepository", "IAutoencoderRepository"]
|
||||
__all__ = ["PipelineRepository", "AutoencoderRepository"]
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import torch
|
||||
from diffusers import AutoencoderKL
|
||||
|
||||
|
||||
class IAutoencoderRepository(ABC):
|
||||
class AutoencoderRepository(ABC):
|
||||
@abstractmethod
|
||||
def convert_and_save_from_single_file(self, checkpoint_path: str) -> str:
|
||||
pass
|
||||
+1
-1
@@ -4,7 +4,7 @@ import torch
|
||||
from diffusers import StableDiffusionPipeline
|
||||
|
||||
|
||||
class IPipelineRepository(ABC):
|
||||
class PipelineRepository(ABC):
|
||||
@abstractmethod
|
||||
def convert_and_save_from_single_file(self, checkpoint_path: str, dtype: torch.dtype) -> str:
|
||||
pass
|
||||
Reference in New Issue
Block a user