We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8564f48 commit 0a87139Copy full SHA for 0a87139
examples/pytorch/diffusion_model/diffusers/flux/main.py
@@ -122,8 +122,7 @@ def tune():
122
if args.inference:
123
pipe = AutoPipelineForText2Image.from_pretrained(args.model, torch_dtype=torch.bfloat16)
124
125
- if not os.path.exists(args.output_image_path):
126
- os.makedirs(args.output_image_path)
+ os.makedirs(args.output_image_path, exist_ok=True)
127
128
if os.path.exists(args.output_dir) and os.path.exists(os.path.join(args.output_dir, "diffusion_pytorch_model.safetensors.index.json")):
129
print(f"Loading quantized model from {args.output_dir}")
0 commit comments