Skip to content
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
11a4491
Create diffusers.yml
Bhavay-2001 Apr 5, 2024
a40d9f2
Updated test_dance_diffusion.py
Bhavay-2001 May 6, 2024
ce80ce3
Merge branch 'main' into dance_diffusion_test_fast
Bhavay-2001 May 6, 2024
b47ba69
Delete diffusers.yml
Bhavay-2001 May 6, 2024
3ff0dcd
Merge branch 'main' into dance_diffusion_test_fast
sayakpaul May 7, 2024
f58d952
Updated test_dance_diffusion.py
Bhavay-2001 May 7, 2024
be99d9b
Merge branch 'dance_diffusion_test_fast' of https://github.com/Bhavay…
Bhavay-2001 May 7, 2024
1039a8d
Updated test_dance_diffusion.py
Bhavay-2001 May 7, 2024
d9d465a
Merge branch 'main' into dance_diffusion_test_fast
Bhavay-2001 May 7, 2024
d2b3f72
Updated test_dance_diffusion.py
Bhavay-2001 May 9, 2024
ab4d6e3
Merge branch 'main' into dance_diffusion_test_fast
Bhavay-2001 May 9, 2024
2907120
Updated test_dance_diffusion.py
Bhavay-2001 May 9, 2024
f6a3062
Merge branch 'dance_diffusion_test_fast' of https://github.com/Bhavay…
Bhavay-2001 May 9, 2024
2a96e87
Updated test_dit.py
Bhavay-2001 May 9, 2024
048c87f
Delete tests/pipelines/dance_diffusion/test_dance_diffusion.py
Bhavay-2001 May 9, 2024
6715105
Merge branch 'main' into dit_test_fast
Bhavay-2001 May 12, 2024
6589632
Added tests/pipelines/dance_diffusion/test_dance_diffusion.py
Bhavay-2001 May 14, 2024
4c1163e
Merge branch 'main' into dit_test_fast
sayakpaul May 17, 2024
9e76ea1
Updated out_channels
Bhavay-2001 May 17, 2024
c1c6d25
Merge branch 'dit_test_fast' of https://github.com/Bhavay-2001/diffus…
Bhavay-2001 May 17, 2024
42a3819
Merge branch 'main' into dit_test_fast
sayakpaul May 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/pipelines/dit/test_dit.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ class DiTPipelineFastTests(PipelineTesterMixin, unittest.TestCase):
def get_dummy_components(self):
torch.manual_seed(0)
transformer = Transformer2DModel(
sample_size=16,
num_layers=2,
patch_size=4,
attention_head_dim=8,
sample_size=2,
num_layers=1,
patch_size=1,
attention_head_dim=2,
num_attention_heads=2,
in_channels=4,
out_channels=8,
Expand Down Expand Up @@ -90,8 +90,8 @@ def test_inference(self):
image = pipe(**inputs).images
image_slice = image[0, -3:, -3:, -1]

self.assertEqual(image.shape, (1, 16, 16, 3))
expected_slice = np.array([0.2946, 0.6601, 0.4329, 0.3296, 0.4144, 0.5319, 0.7273, 0.5013, 0.4457])
self.assertEqual(image.shape, (1, 2, 2, 3))
expected_slice = np.array([0.485, 0.6022, 0.5567, 0.6807])
max_diff = np.abs(image_slice.flatten() - expected_slice).max()
self.assertLessEqual(max_diff, 1e-3)

Expand Down