@@ -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