@@ -159,7 +159,7 @@ def compress(self, x):
159159 def decompress (self , strings , shape ):
160160 assert isinstance (strings , list ) and len (strings ) == 1
161161 y_hat = self .entropy_bottleneck .decompress (strings [0 ], shape )
162- x_hat = self .g_s (y_hat ). clamp_ ( 0 , 1 )
162+ x_hat = self .g_s (y_hat )
163163 return {"x_hat" : x_hat }
164164
165165
@@ -329,7 +329,7 @@ def decompress(self, strings, shape):
329329 scales_hat = self .h_s (z_hat )
330330 indexes = self .gaussian_conditional .build_indexes (scales_hat )
331331 y_hat = self .gaussian_conditional .decompress (strings [0 ], indexes , z_hat .dtype )
332- x_hat = self .g_s (y_hat ). clamp_ ( 0 , 1 )
332+ x_hat = self .g_s (y_hat )
333333 return {"x_hat" : x_hat }
334334
335335
@@ -426,7 +426,7 @@ def decompress(self, strings, shape):
426426 y_hat = self .gaussian_conditional .decompress (
427427 strings [0 ], indexes , means = means_hat
428428 )
429- x_hat = self .g_s (y_hat ). clamp_ ( 0 , 1 )
429+ x_hat = self .g_s (y_hat )
430430 return {"x_hat" : x_hat }
431431
432432
@@ -688,7 +688,7 @@ def decompress(self, strings, shape):
688688 )
689689
690690 y_hat = F .pad (y_hat , (- padding , - padding , - padding , - padding ))
691- x_hat = self .g_s (y_hat ). clamp_ ( 0 , 1 )
691+ x_hat = self .g_s (y_hat )
692692 return {"x_hat" : x_hat }
693693
694694 def _decompress_ar (
0 commit comments