Skip to content

Commit 31de752

Browse files
committed
fix path in test
1 parent 450f072 commit 31de752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/advanced_diffusion_training/test_dreambooth_lora_flux_advanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_dreambooth_lora_pivotal_tuning_flux_clip_t5(self):
178178

179179
# make sure the state_dict has the correct naming in the parameters.
180180
textual_inversion_state_dict = safetensors.torch.load_file(
181-
os.path.join(tmpdir, f"{tmpdir}_emb.safetensors")
181+
os.path.join(tmpdir, f"{os.path(tmpdir).name}_emb.safetensors")
182182
)
183183
is_te = all(("clip_l" in k or "t5" in k) for k in textual_inversion_state_dict.keys())
184184
self.assertTrue(is_te)

0 commit comments

Comments
 (0)