fix priorpipeline

This commit is contained in:
Vladimir Mandic
2023-07-12 16:46:25 -04:00
parent 5c8ead7be0
commit e4a682de2b
4 changed files with 10 additions and 9 deletions
+4 -4
View File
@@ -819,14 +819,14 @@ class DiffusersTaskType(Enum):
def set_diffuser_pipe(pipe, new_pipe_type):
wrapper_pipe = None
sd_checkpoint_info = pipe.sd_checkpoint_info
sd_model_checkpoint = pipe.sd_model_checkpoint
sd_model_hash = pipe.sd_model_hash
if pipe.__class__ == PriorPipeline:
wrapper_pipe = pipe
pipe = pipe.main
sd_checkpoint_info = pipe.sd_checkpoint_info
sd_model_checkpoint = pipe.sd_model_checkpoint
sd_model_hash = pipe.sd_model_hash
pipe_name = pipe.__class__.__name__
pipe_name = pipe_name.replace("Img2Img", "").replace("Inpaint", "")
new_pipe_cls_str = None