Skip to content

Commit 362461b

Browse files
committed
run make style
1 parent 4191fc3 commit 362461b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/dreambooth/train_dreambooth.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)