@@ -124,7 +124,7 @@ def text2img_sd1_1(
124124 output_type : Optional [str ] = "pil" ,
125125 return_dict : bool = True ,
126126 callback : Optional [Callable [[int , int , torch .FloatTensor ], None ]] = None ,
127- callback_steps : Optional [ int ] = 1 ,
127+ callback_steps : int = 1 ,
128128 ** kwargs ,
129129 ):
130130 return self .pipe1 (
@@ -161,7 +161,7 @@ def text2img_sd1_2(
161161 output_type : Optional [str ] = "pil" ,
162162 return_dict : bool = True ,
163163 callback : Optional [Callable [[int , int , torch .FloatTensor ], None ]] = None ,
164- callback_steps : Optional [ int ] = 1 ,
164+ callback_steps : int = 1 ,
165165 ** kwargs ,
166166 ):
167167 return self .pipe2 (
@@ -198,7 +198,7 @@ def text2img_sd1_3(
198198 output_type : Optional [str ] = "pil" ,
199199 return_dict : bool = True ,
200200 callback : Optional [Callable [[int , int , torch .FloatTensor ], None ]] = None ,
201- callback_steps : Optional [ int ] = 1 ,
201+ callback_steps : int = 1 ,
202202 ** kwargs ,
203203 ):
204204 return self .pipe3 (
@@ -235,7 +235,7 @@ def text2img_sd1_4(
235235 output_type : Optional [str ] = "pil" ,
236236 return_dict : bool = True ,
237237 callback : Optional [Callable [[int , int , torch .FloatTensor ], None ]] = None ,
238- callback_steps : Optional [ int ] = 1 ,
238+ callback_steps : int = 1 ,
239239 ** kwargs ,
240240 ):
241241 return self .pipe4 (
@@ -272,7 +272,7 @@ def _call_(
272272 output_type : Optional [str ] = "pil" ,
273273 return_dict : bool = True ,
274274 callback : Optional [Callable [[int , int , torch .FloatTensor ], None ]] = None ,
275- callback_steps : Optional [ int ] = 1 ,
275+ callback_steps : int = 1 ,
276276 ** kwargs ,
277277 ):
278278 r"""
0 commit comments