Skip to content

Commit fbdba4a

Browse files
committed
Use ignore_cleanup_errors=True in tempfile.TemporaryDirectory for Windows compatability
1 parent fd02aad commit fbdba4a

File tree

83 files changed

+312
-310
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+312
-310
lines changed

examples/advanced_diffusion_training/test_dreambooth_lora_flux_advanced.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class DreamBoothLoRAFluxAdvanced(ExamplesTestsAccelerate):
3939
script_path = "examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"
4040

4141
def test_dreambooth_lora_flux(self):
42-
with tempfile.TemporaryDirectory() as tmpdir:
42+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
4343
test_args = f"""
4444
{self.script_path}
4545
--pretrained_model_name_or_path {self.pretrained_model_name_or_path}
@@ -71,7 +71,7 @@ def test_dreambooth_lora_flux(self):
7171
self.assertTrue(starts_with_transformer)
7272

7373
def test_dreambooth_lora_text_encoder_flux(self):
74-
with tempfile.TemporaryDirectory() as tmpdir:
74+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
7575
test_args = f"""
7676
{self.script_path}
7777
--pretrained_model_name_or_path {self.pretrained_model_name_or_path}
@@ -104,7 +104,7 @@ def test_dreambooth_lora_text_encoder_flux(self):
104104
self.assertTrue(starts_with_expected_prefix)
105105

106106
def test_dreambooth_lora_pivotal_tuning_flux_clip(self):
107-
with tempfile.TemporaryDirectory() as tmpdir:
107+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
108108
test_args = f"""
109109
{self.script_path}
110110
--pretrained_model_name_or_path {self.pretrained_model_name_or_path}
@@ -146,7 +146,7 @@ def test_dreambooth_lora_pivotal_tuning_flux_clip(self):
146146
self.assertTrue(starts_with_transformer)
147147

148148
def test_dreambooth_lora_pivotal_tuning_flux_clip_t5(self):
149-
with tempfile.TemporaryDirectory() as tmpdir:
149+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
150150
test_args = f"""
151151
{self.script_path}
152152
--pretrained_model_name_or_path {self.pretrained_model_name_or_path}
@@ -189,7 +189,7 @@ def test_dreambooth_lora_pivotal_tuning_flux_clip_t5(self):
189189
self.assertTrue(starts_with_transformer)
190190

191191
def test_dreambooth_lora_latent_caching(self):
192-
with tempfile.TemporaryDirectory() as tmpdir:
192+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
193193
test_args = f"""
194194
{self.script_path}
195195
--pretrained_model_name_or_path {self.pretrained_model_name_or_path}
@@ -222,7 +222,7 @@ def test_dreambooth_lora_latent_caching(self):
222222
self.assertTrue(starts_with_transformer)
223223

224224
def test_dreambooth_lora_flux_checkpointing_checkpoints_total_limit(self):
225-
with tempfile.TemporaryDirectory() as tmpdir:
225+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
226226
test_args = f"""
227227
{self.script_path}
228228
--pretrained_model_name_or_path={self.pretrained_model_name_or_path}
@@ -245,7 +245,7 @@ def test_dreambooth_lora_flux_checkpointing_checkpoints_total_limit(self):
245245
)
246246

247247
def test_dreambooth_lora_flux_checkpointing_checkpoints_total_limit_removes_multiple_checkpoints(self):
248-
with tempfile.TemporaryDirectory() as tmpdir:
248+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
249249
test_args = f"""
250250
{self.script_path}
251251
--pretrained_model_name_or_path={self.pretrained_model_name_or_path}

examples/community/sde_drag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def train_lora(self, prompt, image, lora_step=100, lora_rank=16, generator=None)
320320
lr_scheduler.step()
321321
optimizer.zero_grad()
322322

323-
with tempfile.TemporaryDirectory() as save_lora_dir:
323+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as save_lora_dir:
324324
StableDiffusionLoraLoaderMixin.save_lora_weights(
325325
save_directory=save_lora_dir,
326326
unet_lora_layers=unet_lora_layers,

examples/consistency_distillation/test_lcm_lora.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
class TextToImageLCM(ExamplesTestsAccelerate):
3636
def test_text_to_image_lcm_lora_sdxl(self):
37-
with tempfile.TemporaryDirectory() as tmpdir:
37+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
3838
test_args = f"""
3939
examples/consistency_distillation/train_lcm_distill_lora_sdxl.py
4040
--pretrained_teacher_model hf-internal-testing/tiny-stable-diffusion-xl-pipe
@@ -61,7 +61,7 @@ def test_text_to_image_lcm_lora_sdxl(self):
6161
self.assertTrue(is_lora)
6262

6363
def test_text_to_image_lcm_lora_sdxl_checkpointing(self):
64-
with tempfile.TemporaryDirectory() as tmpdir:
64+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
6565
test_args = f"""
6666
examples/consistency_distillation/train_lcm_distill_lora_sdxl.py
6767
--pretrained_teacher_model hf-internal-testing/tiny-stable-diffusion-xl-pipe

examples/controlnet/test_controlnet.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
class ControlNet(ExamplesTestsAccelerate):
3434
def test_controlnet_checkpointing_checkpoints_total_limit(self):
35-
with tempfile.TemporaryDirectory() as tmpdir:
35+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
3636
test_args = f"""
3737
examples/controlnet/train_controlnet.py
3838
--pretrained_model_name_or_path=hf-internal-testing/tiny-stable-diffusion-pipe
@@ -55,7 +55,7 @@ def test_controlnet_checkpointing_checkpoints_total_limit(self):
5555
)
5656

5757
def test_controlnet_checkpointing_checkpoints_total_limit_removes_multiple_checkpoints(self):
58-
with tempfile.TemporaryDirectory() as tmpdir:
58+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
5959
test_args = f"""
6060
examples/controlnet/train_controlnet.py
6161
--pretrained_model_name_or_path=hf-internal-testing/tiny-stable-diffusion-pipe
@@ -98,7 +98,7 @@ def test_controlnet_checkpointing_checkpoints_total_limit_removes_multiple_check
9898

9999
class ControlNetSDXL(ExamplesTestsAccelerate):
100100
def test_controlnet_sdxl(self):
101-
with tempfile.TemporaryDirectory() as tmpdir:
101+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
102102
test_args = f"""
103103
examples/controlnet/train_controlnet_sdxl.py
104104
--pretrained_model_name_or_path=hf-internal-testing/tiny-stable-diffusion-xl-pipe
@@ -119,7 +119,7 @@ def test_controlnet_sdxl(self):
119119

120120
class ControlNetSD3(ExamplesTestsAccelerate):
121121
def test_controlnet_sd3(self):
122-
with tempfile.TemporaryDirectory() as tmpdir:
122+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
123123
test_args = f"""
124124
examples/controlnet/train_controlnet_sd3.py
125125
--pretrained_model_name_or_path=DavyMorgan/tiny-sd3-pipe
@@ -140,7 +140,7 @@ def test_controlnet_sd3(self):
140140

141141
class ControlNetSD35(ExamplesTestsAccelerate):
142142
def test_controlnet_sd3(self):
143-
with tempfile.TemporaryDirectory() as tmpdir:
143+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
144144
test_args = f"""
145145
examples/controlnet/train_controlnet_sd3.py
146146
--pretrained_model_name_or_path=hf-internal-testing/tiny-sd35-pipe
@@ -161,7 +161,7 @@ def test_controlnet_sd3(self):
161161

162162
class ControlNetflux(ExamplesTestsAccelerate):
163163
def test_controlnet_flux(self):
164-
with tempfile.TemporaryDirectory() as tmpdir:
164+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
165165
test_args = f"""
166166
examples/controlnet/train_controlnet_flux.py
167167
--pretrained_model_name_or_path=hf-internal-testing/tiny-flux-pipe

examples/custom_diffusion/test_custom_diffusion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
class CustomDiffusion(ExamplesTestsAccelerate):
3434
def test_custom_diffusion(self):
35-
with tempfile.TemporaryDirectory() as tmpdir:
35+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
3636
test_args = f"""
3737
examples/custom_diffusion/train_custom_diffusion.py
3838
--pretrained_model_name_or_path hf-internal-testing/tiny-stable-diffusion-pipe
@@ -57,7 +57,7 @@ def test_custom_diffusion(self):
5757
self.assertTrue(os.path.isfile(os.path.join(tmpdir, "<new1>.bin")))
5858

5959
def test_custom_diffusion_checkpointing_checkpoints_total_limit(self):
60-
with tempfile.TemporaryDirectory() as tmpdir:
60+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
6161
test_args = f"""
6262
examples/custom_diffusion/train_custom_diffusion.py
6363
--pretrained_model_name_or_path=hf-internal-testing/tiny-stable-diffusion-pipe
@@ -79,7 +79,7 @@ def test_custom_diffusion_checkpointing_checkpoints_total_limit(self):
7979
self.assertEqual({x for x in os.listdir(tmpdir) if "checkpoint" in x}, {"checkpoint-4", "checkpoint-6"})
8080

8181
def test_custom_diffusion_checkpointing_checkpoints_total_limit_removes_multiple_checkpoints(self):
82-
with tempfile.TemporaryDirectory() as tmpdir:
82+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
8383
test_args = f"""
8484
examples/custom_diffusion/train_custom_diffusion.py
8585
--pretrained_model_name_or_path=hf-internal-testing/tiny-stable-diffusion-pipe

examples/dreambooth/test_dreambooth.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
class DreamBooth(ExamplesTestsAccelerate):
3737
def test_dreambooth(self):
38-
with tempfile.TemporaryDirectory() as tmpdir:
38+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
3939
test_args = f"""
4040
examples/dreambooth/train_dreambooth.py
4141
--pretrained_model_name_or_path hf-internal-testing/tiny-stable-diffusion-pipe
@@ -58,7 +58,7 @@ def test_dreambooth(self):
5858
self.assertTrue(os.path.isfile(os.path.join(tmpdir, "scheduler", "scheduler_config.json")))
5959

6060
def test_dreambooth_if(self):
61-
with tempfile.TemporaryDirectory() as tmpdir:
61+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
6262
test_args = f"""
6363
examples/dreambooth/train_dreambooth.py
6464
--pretrained_model_name_or_path hf-internal-testing/tiny-if-pipe
@@ -87,7 +87,7 @@ def test_dreambooth_checkpointing(self):
8787
instance_prompt = "photo"
8888
pretrained_model_name_or_path = "hf-internal-testing/tiny-stable-diffusion-pipe"
8989

90-
with tempfile.TemporaryDirectory() as tmpdir:
90+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
9191
# Run training script with checkpointing
9292
# max_train_steps == 4, checkpointing_steps == 2
9393
# Should create checkpoints at steps 2, 4
@@ -163,7 +163,7 @@ def test_dreambooth_checkpointing(self):
163163
self.assertTrue(os.path.isdir(os.path.join(tmpdir, "checkpoint-6")))
164164

165165
def test_dreambooth_checkpointing_checkpoints_total_limit(self):
166-
with tempfile.TemporaryDirectory() as tmpdir:
166+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
167167
test_args = f"""
168168
examples/dreambooth/train_dreambooth.py
169169
--pretrained_model_name_or_path=hf-internal-testing/tiny-stable-diffusion-pipe
@@ -186,7 +186,7 @@ def test_dreambooth_checkpointing_checkpoints_total_limit(self):
186186
)
187187

188188
def test_dreambooth_checkpointing_checkpoints_total_limit_removes_multiple_checkpoints(self):
189-
with tempfile.TemporaryDirectory() as tmpdir:
189+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
190190
test_args = f"""
191191
examples/dreambooth/train_dreambooth.py
192192
--pretrained_model_name_or_path=hf-internal-testing/tiny-stable-diffusion-pipe

examples/dreambooth/test_dreambooth_flux.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class DreamBoothFlux(ExamplesTestsAccelerate):
4040
script_path = "examples/dreambooth/train_dreambooth_flux.py"
4141

4242
def test_dreambooth(self):
43-
with tempfile.TemporaryDirectory() as tmpdir:
43+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
4444
test_args = f"""
4545
{self.script_path}
4646
--pretrained_model_name_or_path {self.pretrained_model_name_or_path}
@@ -63,7 +63,7 @@ def test_dreambooth(self):
6363
self.assertTrue(os.path.isfile(os.path.join(tmpdir, "scheduler", "scheduler_config.json")))
6464

6565
def test_dreambooth_checkpointing(self):
66-
with tempfile.TemporaryDirectory() as tmpdir:
66+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
6767
# Run training script with checkpointing
6868
# max_train_steps == 4, checkpointing_steps == 2
6969
# Should create checkpoints at steps 2, 4
@@ -139,7 +139,7 @@ def test_dreambooth_checkpointing(self):
139139
self.assertTrue(os.path.isdir(os.path.join(tmpdir, "checkpoint-6")))
140140

141141
def test_dreambooth_checkpointing_checkpoints_total_limit(self):
142-
with tempfile.TemporaryDirectory() as tmpdir:
142+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
143143
test_args = f"""
144144
{self.script_path}
145145
--pretrained_model_name_or_path={self.pretrained_model_name_or_path}
@@ -162,7 +162,7 @@ def test_dreambooth_checkpointing_checkpoints_total_limit(self):
162162
)
163163

164164
def test_dreambooth_checkpointing_checkpoints_total_limit_removes_multiple_checkpoints(self):
165-
with tempfile.TemporaryDirectory() as tmpdir:
165+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
166166
test_args = f"""
167167
{self.script_path}
168168
--pretrained_model_name_or_path={self.pretrained_model_name_or_path}

examples/dreambooth/test_dreambooth_lora.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
class DreamBoothLoRA(ExamplesTestsAccelerate):
3838
def test_dreambooth_lora(self):
39-
with tempfile.TemporaryDirectory() as tmpdir:
39+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
4040
test_args = f"""
4141
examples/dreambooth/train_dreambooth_lora.py
4242
--pretrained_model_name_or_path hf-internal-testing/tiny-stable-diffusion-pipe
@@ -68,7 +68,7 @@ def test_dreambooth_lora(self):
6868
self.assertTrue(starts_with_unet)
6969

7070
def test_dreambooth_lora_with_text_encoder(self):
71-
with tempfile.TemporaryDirectory() as tmpdir:
71+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
7272
test_args = f"""
7373
examples/dreambooth/train_dreambooth_lora.py
7474
--pretrained_model_name_or_path hf-internal-testing/tiny-stable-diffusion-pipe
@@ -102,7 +102,7 @@ def test_dreambooth_lora_with_text_encoder(self):
102102
self.assertTrue(is_correct_naming)
103103

104104
def test_dreambooth_lora_checkpointing_checkpoints_total_limit(self):
105-
with tempfile.TemporaryDirectory() as tmpdir:
105+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
106106
test_args = f"""
107107
examples/dreambooth/train_dreambooth_lora.py
108108
--pretrained_model_name_or_path=hf-internal-testing/tiny-stable-diffusion-pipe
@@ -125,7 +125,7 @@ def test_dreambooth_lora_checkpointing_checkpoints_total_limit(self):
125125
)
126126

127127
def test_dreambooth_lora_checkpointing_checkpoints_total_limit_removes_multiple_checkpoints(self):
128-
with tempfile.TemporaryDirectory() as tmpdir:
128+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
129129
test_args = f"""
130130
examples/dreambooth/train_dreambooth_lora.py
131131
--pretrained_model_name_or_path=hf-internal-testing/tiny-stable-diffusion-pipe
@@ -163,7 +163,7 @@ def test_dreambooth_lora_checkpointing_checkpoints_total_limit_removes_multiple_
163163
self.assertEqual({x for x in os.listdir(tmpdir) if "checkpoint" in x}, {"checkpoint-6", "checkpoint-8"})
164164

165165
def test_dreambooth_lora_if_model(self):
166-
with tempfile.TemporaryDirectory() as tmpdir:
166+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
167167
test_args = f"""
168168
examples/dreambooth/train_dreambooth_lora.py
169169
--pretrained_model_name_or_path hf-internal-testing/tiny-if-pipe
@@ -200,7 +200,7 @@ def test_dreambooth_lora_if_model(self):
200200

201201
class DreamBoothLoRASDXL(ExamplesTestsAccelerate):
202202
def test_dreambooth_lora_sdxl(self):
203-
with tempfile.TemporaryDirectory() as tmpdir:
203+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
204204
test_args = f"""
205205
examples/dreambooth/train_dreambooth_lora_sdxl.py
206206
--pretrained_model_name_or_path hf-internal-testing/tiny-stable-diffusion-xl-pipe
@@ -232,7 +232,7 @@ def test_dreambooth_lora_sdxl(self):
232232
self.assertTrue(starts_with_unet)
233233

234234
def test_dreambooth_lora_sdxl_with_text_encoder(self):
235-
with tempfile.TemporaryDirectory() as tmpdir:
235+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
236236
test_args = f"""
237237
examples/dreambooth/train_dreambooth_lora_sdxl.py
238238
--pretrained_model_name_or_path hf-internal-testing/tiny-stable-diffusion-xl-pipe
@@ -268,7 +268,7 @@ def test_dreambooth_lora_sdxl_with_text_encoder(self):
268268
self.assertTrue(starts_with_unet)
269269

270270
def test_dreambooth_lora_sdxl_custom_captions(self):
271-
with tempfile.TemporaryDirectory() as tmpdir:
271+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
272272
test_args = f"""
273273
examples/dreambooth/train_dreambooth_lora_sdxl.py
274274
--pretrained_model_name_or_path hf-internal-testing/tiny-stable-diffusion-xl-pipe
@@ -289,7 +289,7 @@ def test_dreambooth_lora_sdxl_custom_captions(self):
289289
run_command(self._launch_args + test_args)
290290

291291
def test_dreambooth_lora_sdxl_text_encoder_custom_captions(self):
292-
with tempfile.TemporaryDirectory() as tmpdir:
292+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
293293
test_args = f"""
294294
examples/dreambooth/train_dreambooth_lora_sdxl.py
295295
--pretrained_model_name_or_path hf-internal-testing/tiny-stable-diffusion-xl-pipe
@@ -313,7 +313,7 @@ def test_dreambooth_lora_sdxl_text_encoder_custom_captions(self):
313313
def test_dreambooth_lora_sdxl_checkpointing_checkpoints_total_limit(self):
314314
pipeline_path = "hf-internal-testing/tiny-stable-diffusion-xl-pipe"
315315

316-
with tempfile.TemporaryDirectory() as tmpdir:
316+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
317317
test_args = f"""
318318
examples/dreambooth/train_dreambooth_lora_sdxl.py
319319
--pretrained_model_name_or_path {pipeline_path}
@@ -345,7 +345,7 @@ def test_dreambooth_lora_sdxl_checkpointing_checkpoints_total_limit(self):
345345
def test_dreambooth_lora_sdxl_text_encoder_checkpointing_checkpoints_total_limit(self):
346346
pipeline_path = "hf-internal-testing/tiny-stable-diffusion-xl-pipe"
347347

348-
with tempfile.TemporaryDirectory() as tmpdir:
348+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
349349
test_args = f"""
350350
examples/dreambooth/train_dreambooth_lora_sdxl.py
351351
--pretrained_model_name_or_path {pipeline_path}

examples/dreambooth/test_dreambooth_lora_edm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
class DreamBoothLoRASDXLWithEDM(ExamplesTestsAccelerate):
3636
def test_dreambooth_lora_sdxl_with_edm(self):
37-
with tempfile.TemporaryDirectory() as tmpdir:
37+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
3838
test_args = f"""
3939
examples/dreambooth/train_dreambooth_lora_sdxl.py
4040
--pretrained_model_name_or_path hf-internal-testing/tiny-stable-diffusion-xl-pipe
@@ -67,7 +67,7 @@ def test_dreambooth_lora_sdxl_with_edm(self):
6767
self.assertTrue(starts_with_unet)
6868

6969
def test_dreambooth_lora_playground(self):
70-
with tempfile.TemporaryDirectory() as tmpdir:
70+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
7171
test_args = f"""
7272
examples/dreambooth/train_dreambooth_lora_sdxl.py
7373
--pretrained_model_name_or_path hf-internal-testing/tiny-playground-v2-5-pipe

0 commit comments

Comments
 (0)