@@ -306,7 +306,7 @@ def _save_pretrained(self, save_directory: Union[str, Path]):
306306 """
307307 if self ._compile_only :
308308 raise ValueError (
309- "`save_pretrained()` is not supported with `compile_only` mode, please intialize model without this option"
309+ "`save_pretrained()` is not supported with `compile_only` mode, please initialize model without this option"
310310 )
311311
312312 save_directory = Path (save_directory )
@@ -888,7 +888,7 @@ def _reshape_vae_decoder(
888888 def reshape (self , batch_size : int , height : int , width : int , num_images_per_prompt : int = - 1 , num_frames : int = - 1 ):
889889 if self ._compile_only :
890890 raise ValueError (
891- "`reshape()` is not supported with `compile_only` mode, please intialize model without this option"
891+ "`reshape()` is not supported with `compile_only` mode, please initialize model without this option"
892892 )
893893
894894 self .is_dynamic = - 1 in {batch_size , height , width , num_images_per_prompt }
@@ -958,7 +958,7 @@ def half(self):
958958 """
959959 if self ._compile_only :
960960 raise ValueError (
961- "`half()` is not supported with `compile_only` mode, please intialize model without this option"
961+ "`half()` is not supported with `compile_only` mode, please initialize model without this option"
962962 )
963963
964964 for submodel in self .ov_submodels .values ():
@@ -971,7 +971,7 @@ def half(self):
971971 def clear_requests (self ):
972972 if self ._compile_only :
973973 raise ValueError (
974- "`clear_requests()` is not supported with `compile_only` mode, please intialize model without this option"
974+ "`clear_requests()` is not supported with `compile_only` mode, please initialize model without this option"
975975 )
976976
977977 for component in [
@@ -1031,7 +1031,7 @@ def __call__(self, *args, **kwargs):
10311031
10321032 height , width = None , None
10331033 height_idx , width_idx = None , None
1034- shapes_overriden = False
1034+ shapes_overridden = False
10351035 sig = inspect .signature (self .auto_model_class .__call__ )
10361036 sig_height_idx = list (sig .parameters ).index ("height" ) if "height" in sig .parameters else len (sig .parameters )
10371037 sig_width_idx = list (sig .parameters ).index ("width" ) if "width" in sig .parameters else len (sig .parameters )
@@ -1059,7 +1059,7 @@ def __call__(self, *args, **kwargs):
10591059 else :
10601060 kwargs ["height" ] = height
10611061
1062- shapes_overriden = True
1062+ shapes_overridden = True
10631063
10641064 if self .width != - 1 :
10651065 if width is not None and width != self .width :
@@ -1072,11 +1072,11 @@ def __call__(self, *args, **kwargs):
10721072 args [width_idx ] = width
10731073 else :
10741074 kwargs ["width" ] = width
1075- shapes_overriden = True
1075+ shapes_overridden = True
10761076
10771077 # Sana generates images in specific resolution grid size and then resize to requested size by default, it may contradict with pipeline height / width
10781078 # Disable this behavior for static shape pipeline
1079- if self .auto_model_class .__name__ .startswith ("Sana" ) and shapes_overriden :
1079+ if self .auto_model_class .__name__ .startswith ("Sana" ) and shapes_overridden :
10801080 sig_resolution_bining_idx = (
10811081 list (sig .parameters ).index ("use_resolution_binning" )
10821082 if "use_resolution_binning" in sig .parameters
0 commit comments