Skip to content

Commit

Permalink
Add workaround for AutoPipeline.from_pipe with ControlNet (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
carson-katri authored Nov 1, 2023
1 parent 9927174 commit 041302a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator_process/actions/load_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def _convert_pipe(cache, model, pipe, model_class, half_precision, scheduler, **
if model_class.__name__ not in {
# some tasks are not supported by auto pipeline
'DreamTexturesDepth2ImgPipeline',
'StableDiffusionUpscalePipeline'
}:
'StableDiffusionUpscalePipeline',
} and not 'controlnet' in kwargs:
pipe = model_class.from_pipe(pipe, **kwargs)
scheduler.create(pipe)
return pipe
Expand Down

0 comments on commit 041302a

Please sign in to comment.