diffusers
7855ac59 - [tests] make tests device-agnostic (part 4) (#10508)

Comment changes are shownComment changes are hidden
Commit
108 days ago
[tests] make tests device-agnostic (part 4) (#10508) * initial comit * fix empty cache * fix one more * fix style * update device functions * update * update * Update src/diffusers/utils/testing_utils.py Co-authored-by: hlky <hlky@hlky.ac> * Update src/diffusers/utils/testing_utils.py Co-authored-by: hlky <hlky@hlky.ac> * Update src/diffusers/utils/testing_utils.py Co-authored-by: hlky <hlky@hlky.ac> * Update tests/pipelines/controlnet/test_controlnet.py Co-authored-by: hlky <hlky@hlky.ac> * Update src/diffusers/utils/testing_utils.py Co-authored-by: hlky <hlky@hlky.ac> * Update src/diffusers/utils/testing_utils.py Co-authored-by: hlky <hlky@hlky.ac> * Update tests/pipelines/controlnet/test_controlnet.py Co-authored-by: hlky <hlky@hlky.ac> * with gc.collect * update * make style * check_torch_dependencies * add mps empty cache * add changes * bug fix * enable on xpu * update more cases * revert * revert back * Update test_stable_diffusion_xl.py * Update tests/pipelines/stable_diffusion/test_stable_diffusion.py Co-authored-by: hlky <hlky@hlky.ac> * Update tests/pipelines/stable_diffusion/test_stable_diffusion.py Co-authored-by: hlky <hlky@hlky.ac> * Update tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py Co-authored-by: hlky <hlky@hlky.ac> * Update tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py Co-authored-by: hlky <hlky@hlky.ac> * Update tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py Co-authored-by: hlky <hlky@hlky.ac> * Apply suggestions from code review Co-authored-by: hlky <hlky@hlky.ac> * add test marker --------- Co-authored-by: hlky <hlky@hlky.ac>
Author
Parents
  • tests
    • lora
      • File
        test_lora_layers_sd.py
      • File
        test_lora_layers_sd3.py
    • models/unets
      • File
        test_models_unet_2d_condition.py
    • pipelines
      • controlnet
        • File
          test_controlnet.py
        • File
          test_controlnet_inpaint_sdxl.py
        • File
          test_controlnet_sdxl.py
      • controlnet_flux
        • File
          test_controlnet_flux.py
      • controlnet_sd3
        • File
          test_controlnet_sd3.py
      • flux
        • File
          test_pipeline_flux.py
      • ip_adapters
        • File
          test_ip_adapter_stable_diffusion.py
      • kandinsky
        • File
          test_kandinsky.py
        • File
          test_kandinsky_combined.py
        • File
          test_kandinsky_img2img.py
        • File
          test_kandinsky_inpaint.py
      • kandinsky2_2
        • File
          test_kandinsky.py
        • File
          test_kandinsky_combined.py
        • File
          test_kandinsky_img2img.py
        • File
          test_kandinsky_inpaint.py
      • kandinsky3
        • File
          test_kandinsky3.py
        • File
          test_kandinsky3_img2img.py
      • latent_consistency_models
        • File
          test_latent_consistency_models.py
        • File
          test_latent_consistency_models_img2img.py
      • latte
        • File
          test_latte.py
      • ledits_pp
        • File
          test_ledits_pp_stable_diffusion.py
        • File
          test_ledits_pp_stable_diffusion_xl.py
      • lumina
        • File
          test_lumina_nextdit.py
      • marigold
        • File
          test_marigold_depth.py
        • File
          test_marigold_normals.py
      • mochi
        • File
          test_mochi.py
      • pag
        • File
          test_pag_sd.py
        • File
          test_pag_sd3_img2img.py
        • File
          test_pag_sd_img2img.py
        • File
          test_pag_sd_inpaint.py
        • File
          test_pag_sdxl.py
        • File
          test_pag_sdxl_img2img.py
        • File
          test_pag_sdxl_inpaint.py
      • pixart_alpha
        • File
          test_pixart.py
      • pixart_sigma
        • File
          test_pixart.py
      • sana
        • File
          test_sana.py
      • stable_cascade
        • File
          test_stable_cascade_combined.py
        • File
          test_stable_cascade_decoder.py
        • File
          test_stable_cascade_prior.py
      • stable_diffusion
        • File
          test_stable_diffusion.py
        • File
          test_stable_diffusion_img2img.py
        • File
          test_stable_diffusion_inpaint.py
        • File
          test_stable_diffusion_instruction_pix2pix.py
      • stable_diffusion_2
        • File
          test_stable_diffusion.py
        • File
          test_stable_diffusion_depth.py
        • File
          test_stable_diffusion_diffedit.py
        • File
          test_stable_diffusion_inpaint.py
        • File
          test_stable_diffusion_latent_upscale.py
        • File
          test_stable_diffusion_upscale.py
        • File
          test_stable_diffusion_v_pred.py
      • stable_diffusion_3
        • File
          test_pipeline_stable_diffusion_3.py
        • File
          test_pipeline_stable_diffusion_3_img2img.py
      • stable_diffusion_adapter
        • File
          test_stable_diffusion_adapter.py
      • stable_diffusion_image_variation
        • File
          test_stable_diffusion_image_variation.py
      • stable_diffusion_xl
        • File
          test_stable_diffusion_xl.py
        • File
          test_stable_diffusion_xl_img2img.py
        • File
          test_stable_diffusion_xl_inpaint.py
        • File
          test_stable_diffusion_xl_k_diffusion.py
      • stable_video_diffusion
        • File
          test_stable_video_diffusion.py
      • File
        test_pipelines.py
      • text_to_video_synthesis
        • File
          test_text_to_video.py
      • unidiffuser
        • File
          test_unidiffuser.py
      • wuerstchen
        • File
          test_wuerstchen_combined.py