Skip to content

Commit 61426f0

Browse files
committed
style
1 parent cb265ad commit 61426f0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/advanced_diffusion_training/test_dreambooth_lora_flux_advanced.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ def test_dreambooth_lora_pivotal_tuning_flux_clip(self):
134134
self.assertTrue(is_lora)
135135

136136
# make sure the state_dict has the correct naming in the parameters.
137-
textual_inversion_state_dict = safetensors.torch.load_file(os.path.join(tmpdir, f"{tmpdir}_emb.safetensors"))
137+
textual_inversion_state_dict = safetensors.torch.load_file(
138+
os.path.join(tmpdir, f"{tmpdir}_emb.safetensors")
139+
)
138140
is_clip = all("clip_l" in k for k in textual_inversion_state_dict.keys())
139141
self.assertTrue(is_clip)
140142

@@ -175,7 +177,9 @@ def test_dreambooth_lora_pivotal_tuning_flux_clip_t5(self):
175177
self.assertTrue(is_lora)
176178

177179
# make sure the state_dict has the correct naming in the parameters.
178-
textual_inversion_state_dict = safetensors.torch.load_file(os.path.join(tmpdir, f"{tmpdir}_emb.safetensors"))
180+
textual_inversion_state_dict = safetensors.torch.load_file(
181+
os.path.join(tmpdir, f"{tmpdir}_emb.safetensors")
182+
)
179183
is_te = all(("clip_l" in k or "t5" in k) for k in textual_inversion_state_dict.keys())
180184
self.assertTrue(is_te)
181185

0 commit comments

Comments
 (0)