Skip to content

Commit 405bc16

Browse files
committed
add more
1 parent 266f5f9 commit 405bc16

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/single_file/test_stable_diffusion_img2img_single_file.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from diffusers.utils import load_image
1010
from diffusers.utils.testing_utils import (
1111
enable_full_determinism,
12-
require_torch_gpu,
12+
require_torch_accelerator,
1313
slow,
1414
)
1515

@@ -20,7 +20,7 @@
2020

2121

2222
@slow
23-
@require_torch_gpu
23+
@require_torch_accelerator
2424
class StableDiffusionImg2ImgPipelineSingleFileSlowTests(unittest.TestCase, SDSingleFileTesterMixin):
2525
pipeline_class = StableDiffusionImg2ImgPipeline
2626
ckpt_path = "https://huggingface.co/Lykon/DreamShaper/blob/main/DreamShaper_8_pruned.safetensors"
@@ -61,7 +61,7 @@ def test_single_file_format_inference_is_same_as_pretrained(self):
6161

6262

6363
@slow
64-
@require_torch_gpu
64+
@require_torch_accelerator
6565
class StableDiffusion21Img2ImgPipelineSingleFileSlowTests(unittest.TestCase, SDSingleFileTesterMixin):
6666
pipeline_class = StableDiffusionImg2ImgPipeline
6767
ckpt_path = "https://huggingface.co/stabilityai/stable-diffusion-2-1/blob/main/v2-1_768-ema-pruned.safetensors"

tests/single_file/test_stable_diffusion_inpaint_single_file.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from diffusers.utils import load_image
1010
from diffusers.utils.testing_utils import (
1111
enable_full_determinism,
12-
require_torch_gpu,
12+
require_torch_accelerator,
1313
slow,
1414
)
1515

@@ -20,7 +20,7 @@
2020

2121

2222
@slow
23-
@require_torch_gpu
23+
@require_torch_accelerator
2424
class StableDiffusionInpaintPipelineSingleFileSlowTests(unittest.TestCase, SDSingleFileTesterMixin):
2525
pipeline_class = StableDiffusionInpaintPipeline
2626
ckpt_path = "https://huggingface.co/Lykon/DreamShaper/blob/main/DreamShaper_8_INPAINTING.inpainting.safetensors"
@@ -78,7 +78,7 @@ def test_single_file_components_with_original_config_local_files_only(self):
7878

7979

8080
@slow
81-
@require_torch_gpu
81+
@require_torch_accelerator
8282
class StableDiffusion21InpaintPipelineSingleFileSlowTests(unittest.TestCase, SDSingleFileTesterMixin):
8383
pipeline_class = StableDiffusionInpaintPipeline
8484
ckpt_path = (

0 commit comments

Comments
 (0)