Skip to content

Commit 2937eb2

Browse files
committed
flux test
1 parent 485d99e commit 2937eb2

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

tests/remote/test_remote_decode.py

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -217,26 +217,28 @@ class RemoteAutoencoderKLSDXLTests(
217217
return_pt_slice = torch.tensor([-0.3945, -0.3289, -0.2993, -0.6177, -0.5259, -0.4119, -0.5898, -0.4863, -0.3845])
218218

219219

220-
# class RemoteAutoencoderKLFluxTests(
221-
# RemoteAutoencoderKLMixin,
222-
# unittest.TestCase,
223-
# ):
224-
# # TODO: packed
225-
# shape = (
226-
# 1,
227-
# 16,
228-
# 128,
229-
# 128,
230-
# )
231-
# out_hw = (
232-
# 1024,
233-
# 1024,
234-
# )
235-
# endpoint = "https://fnohtuwsskxgxsnn.us-east-1.aws.endpoints.huggingface.cloud/"
236-
# dtype = torch.bfloat16
237-
# scaling_factor = 0.3611
238-
# shift_factor = 0.1159
239-
# processor_cls = VaeImageProcessor
240-
# output_pt_slice = torch.tensor([104, 52, 23, 114, 61, 35, 108, 87, 38], dtype=torch.uint8)
241-
# partial_postprocess_return_pt_slice = torch.tensor([77, 86, 89, 49, 60, 75, 52, 65, 78], dtype=torch.uint8)
242-
# return_pt_slice = torch.tensor([-0.3945, -0.3289, -0.2993, -0.6177, -0.5259, -0.4119, -0.5898, -0.4863, -0.3845])
220+
class RemoteAutoencoderKLFluxTests(
221+
RemoteAutoencoderKLMixin,
222+
unittest.TestCase,
223+
):
224+
# TODO: packed
225+
shape = (
226+
1,
227+
16,
228+
128,
229+
128,
230+
)
231+
out_hw = (
232+
1024,
233+
1024,
234+
)
235+
endpoint = "https://fnohtuwsskxgxsnn.us-east-1.aws.endpoints.huggingface.cloud/"
236+
dtype = torch.bfloat16
237+
scaling_factor = 0.3611
238+
shift_factor = 0.1159
239+
processor_cls = VaeImageProcessor
240+
output_pt_slice = torch.tensor([110, 72, 91, 62, 35, 52, 69, 55, 69], dtype=torch.uint8)
241+
partial_postprocess_return_pt_slice = torch.tensor(
242+
[202, 203, 203, 197, 195, 193, 189, 188, 178], dtype=torch.uint8
243+
)
244+
return_pt_slice = torch.tensor([0.5820, 0.5962, 0.5898, 0.5439, 0.5327, 0.5112, 0.4797, 0.4773, 0.3984])

0 commit comments

Comments
 (0)