2121 IPAdapterTesterMixin ,
2222 PipelineTesterMixin ,
2323 SDFunctionTesterMixin ,
24- SDXLOptionalComponentsTesterMixin ,
2524)
2625
2726
@@ -36,7 +35,6 @@ class AnimateDiffPipelineSDXLFastTests(
3635 IPAdapterTesterMixin ,
3736 SDFunctionTesterMixin ,
3837 PipelineTesterMixin ,
39- SDXLOptionalComponentsTesterMixin ,
4038 unittest .TestCase ,
4139):
4240 pipeline_class = AnimateDiffSDXLPipeline
@@ -250,33 +248,6 @@ def test_to_dtype(self):
250248 model_dtypes = [component .dtype for component in pipe .components .values () if hasattr (component , "dtype" )]
251249 self .assertTrue (all (dtype == torch .float16 for dtype in model_dtypes ))
252250
253- def test_prompt_embeds (self ):
254- components = self .get_dummy_components ()
255- pipe = self .pipeline_class (** components )
256- pipe .set_progress_bar_config (disable = None )
257- pipe .to (torch_device )
258-
259- inputs = self .get_dummy_inputs (torch_device )
260- prompt = inputs .pop ("prompt" )
261-
262- (
263- prompt_embeds ,
264- negative_prompt_embeds ,
265- pooled_prompt_embeds ,
266- negative_pooled_prompt_embeds ,
267- ) = pipe .encode_prompt (prompt )
268-
269- pipe (
270- ** inputs ,
271- prompt_embeds = prompt_embeds ,
272- negative_prompt_embeds = negative_prompt_embeds ,
273- pooled_prompt_embeds = pooled_prompt_embeds ,
274- negative_pooled_prompt_embeds = negative_pooled_prompt_embeds ,
275- )
276-
277- def test_save_load_optional_components (self ):
278- self ._test_save_load_optional_components ()
279-
280251 @unittest .skipIf (
281252 torch_device != "cuda" or not is_xformers_available (),
282253 reason = "XFormers attention is only available with CUDA and `xformers` installed" ,
@@ -305,3 +276,11 @@ def test_xformers_attention_forwardGenerator_pass(self):
305276
306277 max_diff = np .abs (to_np (output_with_offload ) - to_np (output_without_offload )).max ()
307278 self .assertLess (max_diff , 1e-4 , "XFormers attention should not affect the inference results" )
279+
280+ @unittest .skip ("Test currently not supported." )
281+ def test_encode_prompt_works_in_isolation (self ):
282+ pass
283+
284+ @unittest .skip ("Functionality is tested elsewhere." )
285+ def test_save_load_optional_components (self ):
286+ pass
0 commit comments