-
Notifications
You must be signed in to change notification settings - Fork 0
/
paras.py
48 lines (46 loc) · 1.32 KB
/
paras.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import argparse
import os
def parse_args():
parser = argparse.ArgumentParser(description="Simple example of a training script.")
parser.add_argument(
"--resolution",
type=int,
default=1024,
help=(
"The resolution for input images, all the images in the train/validation dataset will be resized to this"
" resolution"
),
)
parser.add_argument(
"--output_dir",
type=str,
default="./",
help="The output directory where the model predictions and checkpoints will be written.",
)
parser.add_argument(
"--prompt",
type=str,
default="time magazine, top 100, leonardo dicaprio, highly realistic, detailed.",
)
parser.add_argument(
"--lora_path",
type=str,
)
parser.add_argument(
"--base_model_path",
type=str,
default="stabilityai/stable-diffusion-xl-base-1.0",
)
parser.add_argument(
"--batch_size",
type=int,
default=1,
)
parser.add_argument(
"--enable_xformers_memory_efficient_attention",
action="store_true",
help="Whether or not to use xformers."
)
parser.add_argument("--infer-steps", type=int, default=4, help="Inference steps")
args = parser.parse_args()
return args