Unverified Commit 886575ee authored by Patrick von Platen's avatar Patrick von Platen Committed by GitHub
Browse files

Refactor controlnet and add img2img and inpaint (#3386)

* refactor controlnet and add img2img and inpaint

* First draft to get pipelines to work

* make style

* Fix more

* Fix more

* More tests

* Fix more

* Make inpainting work

* make style and more tests

* Apply suggestions from code review

* up

* make style

* Fix imports

* Fix more

* Fix more

* Improve examples

* add test

* Make sure import is correctly deprecated

* Make sure everything works in compile mode

* make sure authorship is correctly attributed
parent 9d44e2fb
This diff is collapsed.
This diff is collapsed.
...@@ -30,7 +30,7 @@ if is_flax_available(): ...@@ -30,7 +30,7 @@ if is_flax_available():
@slow @slow
@require_flax @require_flax
class FlaxStableDiffusionControlNetPipelineIntegrationTests(unittest.TestCase): class FlaxControlNetPipelineIntegrationTests(unittest.TestCase):
def tearDown(self): def tearDown(self):
# clean up the VRAM after each test # clean up the VRAM after each test
super().tearDown() super().tearDown()
......
...@@ -46,9 +46,8 @@ class StableDiffusionImageVariationPipelineFastTests( ...@@ -46,9 +46,8 @@ class StableDiffusionImageVariationPipelineFastTests(
pipeline_class = StableDiffusionImageVariationPipeline pipeline_class = StableDiffusionImageVariationPipeline
params = IMAGE_VARIATION_PARAMS params = IMAGE_VARIATION_PARAMS
batch_params = IMAGE_VARIATION_BATCH_PARAMS batch_params = IMAGE_VARIATION_BATCH_PARAMS
image_params = frozenset( image_params = frozenset([])
[] # TO-DO: update image_params once pipeline is refactored with VaeImageProcessor.preprocess
) # TO-DO: update image_params once pipeline is refactored with VaeImageProcessor.preprocess
def get_dummy_components(self): def get_dummy_components(self):
torch.manual_seed(0) torch.manual_seed(0)
......
...@@ -47,9 +47,8 @@ class StableDiffusionInpaintPipelineFastTests(PipelineLatentTesterMixin, Pipelin ...@@ -47,9 +47,8 @@ class StableDiffusionInpaintPipelineFastTests(PipelineLatentTesterMixin, Pipelin
pipeline_class = StableDiffusionInpaintPipeline pipeline_class = StableDiffusionInpaintPipeline
params = TEXT_GUIDED_IMAGE_INPAINTING_PARAMS params = TEXT_GUIDED_IMAGE_INPAINTING_PARAMS
batch_params = TEXT_GUIDED_IMAGE_INPAINTING_BATCH_PARAMS batch_params = TEXT_GUIDED_IMAGE_INPAINTING_BATCH_PARAMS
image_params = frozenset( image_params = frozenset([])
[] # TO-DO: update image_params once pipeline is refactored with VaeImageProcessor.preprocess
) # TO-DO: update image_params once pipeline is refactored with VaeImageProcessor.preprocess
def get_dummy_components(self): def get_dummy_components(self):
torch.manual_seed(0) torch.manual_seed(0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment