File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -996,14 +996,11 @@ def load_model_hook(models, input_dir):
996996 )
997997
998998 if unwrap_model (unet ).dtype != torch .float32 :
999- raise ValueError (
1000- f"Unet loaded as datatype { unwrap_model (unet ).dtype } . { low_precision_error_string } "
1001- )
999+ raise ValueError (f"Unet loaded as datatype { unwrap_model (unet ).dtype } . { low_precision_error_string } " )
10021000
10031001 if args .train_text_encoder and unwrap_model (text_encoder ).dtype != torch .float32 :
10041002 raise ValueError (
1005- f"Text encoder loaded as datatype { unwrap_model (text_encoder ).dtype } ."
1006- f" { low_precision_error_string } "
1003+ f"Text encoder loaded as datatype { unwrap_model (text_encoder ).dtype } ." f" { low_precision_error_string } "
10071004 )
10081005
10091006 # Enable TF32 for faster training on Ampere GPUs,
You can’t perform that action at this time.
0 commit comments