Skip to content

Commit fde489e

Browse files
committed
make style
1 parent a63c316 commit fde489e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/dreambooth/train_dreambooth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,10 +1303,10 @@ def compute_text_embeddings(prompt):
13031303

13041304
if noise_scheduler.config.prediction_type == "v_prediction":
13051305
# Velocity objective needs to be floored to an SNR weight of one.
1306-
divisor = snr + 1
1306+
divisor = snr + 1
13071307
else:
13081308
divisor = snr
1309-
1309+
13101310
mse_loss_weights = (
13111311
torch.stack([snr, args.snr_gamma * torch.ones_like(timesteps)], dim=1).min(dim=1)[0] / divisor
13121312
)

0 commit comments

Comments
 (0)