@@ -287,6 +287,13 @@ def test_controlnet_lcm_custom_timesteps(self):
287287
288288 assert np .abs (image_slice .flatten () - expected_slice ).max () < 1e-2
289289
290+ def test_encode_prompt_works_in_isolation (self ):
291+ extra_required_param_value_dict = {
292+ "device" : torch .device (torch_device ).type ,
293+ "do_classifier_free_guidance" : self .get_dummy_inputs (device = torch_device ).get ("guidance_scale" , 1.0 ) > 1.0 ,
294+ }
295+ return super ().test_encode_prompt_works_in_isolation (extra_required_param_value_dict )
296+
290297
291298class StableDiffusionMultiControlNetPipelineFastTests (
292299 IPAdapterTesterMixin , PipelineTesterMixin , PipelineKarrasSchedulerTesterMixin , unittest .TestCase
@@ -521,6 +528,13 @@ def test_inference_multiple_prompt_input(self):
521528
522529 assert image .shape == (4 , 64 , 64 , 3 )
523530
531+ def test_encode_prompt_works_in_isolation (self ):
532+ extra_required_param_value_dict = {
533+ "device" : torch .device (torch_device ).type ,
534+ "do_classifier_free_guidance" : self .get_dummy_inputs (device = torch_device ).get ("guidance_scale" , 1.0 ) > 1.0 ,
535+ }
536+ return super ().test_encode_prompt_works_in_isolation (extra_required_param_value_dict )
537+
524538
525539class StableDiffusionMultiControlNetOneModelPipelineFastTests (
526540 IPAdapterTesterMixin , PipelineTesterMixin , PipelineKarrasSchedulerTesterMixin , unittest .TestCase
@@ -706,6 +720,13 @@ def test_save_pretrained_raise_not_implemented_exception(self):
706720 except NotImplementedError :
707721 pass
708722
723+ def test_encode_prompt_works_in_isolation (self ):
724+ extra_required_param_value_dict = {
725+ "device" : torch .device (torch_device ).type ,
726+ "do_classifier_free_guidance" : self .get_dummy_inputs (device = torch_device ).get ("guidance_scale" , 1.0 ) > 1.0 ,
727+ }
728+ return super ().test_encode_prompt_works_in_isolation (extra_required_param_value_dict )
729+
709730
710731@slow
711732@require_torch_accelerator
0 commit comments