style: rename

This commit is contained in:
Limitex
2025-10-31 20:53:33 +09:00
parent d0c07557d8
commit fc0d53e167
7 changed files with 18 additions and 16 deletions
+4 -2
View File
@@ -11,8 +11,10 @@ class CreatePipelineService:
self.pipeline_repo = pipeline_repo
self.dtype = torch.float32
def execute(self, checkpoint_full_path: str) -> PipelineModel:
path = self.pipeline_repo.convert_from_single_file(checkpoint_full_path, self.dtype)
def create_from_checkpoint(self, checkpoint_full_path: str) -> PipelineModel:
path = self.pipeline_repo.convert_and_save_from_single_file(
checkpoint_full_path, self.dtype
)
if not os.path.exists(path):
raise RuntimeError(f"Failed to convert pipeline checkpoint: {checkpoint_full_path}")