Skip to content

Commit 255498b

Browse files
committed
fix imports
1 parent 4eaa7ef commit 255498b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/pipelines/sana/test_sana_sprint_img2img.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
import inspect
16+
import random
1617
import unittest
1718

1819
import numpy as np
@@ -22,6 +23,7 @@
2223
from diffusers import AutoencoderDC, SanaSprintImg2ImgPipeline, SanaTransformer2DModel, SCMScheduler
2324
from diffusers.utils.testing_utils import (
2425
enable_full_determinism,
26+
floats_tensor,
2527
torch_device,
2628
)
2729

@@ -38,7 +40,7 @@
3840

3941
class SanaSprintImg2ImgPipelineFastTests(PipelineTesterMixin, unittest.TestCase):
4042
pipeline_class = SanaSprintImg2ImgPipeline
41-
params = TEXT_TO_IMAGE_PARAMS - {"cross_attention_kwargs", "negative_prompt", "negative_prompt_embeds"}
43+
params = TEXT_GUIDED_IMAGE_VARIATION_PARAMS - {"cross_attention_kwargs", "negative_prompt", "negative_prompt_embeds"}
4244
batch_params = TEXT_GUIDED_IMAGE_VARIATION_BATCH_PARAMS - {"negative_prompt"}
4345
image_params = IMAGE_TO_IMAGE_IMAGE_PARAMS - {"negative_prompt"}
4446
image_latents_params = IMAGE_TO_IMAGE_IMAGE_PARAMS

0 commit comments

Comments
 (0)