Commit
·
5407b39
1
Parent(s):
27cbdde
Add stage1 and stage2 configuration options to argument parser in app.py for enhanced flexibility in model configuration.
Browse files
app.py
CHANGED
@@ -118,6 +118,18 @@ def gen_image(input_image, seed, scale, step):
|
|
118 |
|
119 |
parser = argparse.ArgumentParser()
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
parser.add_argument("--device", type=str, default="cuda")
|
122 |
args = parser.parse_args()
|
123 |
|
|
|
118 |
|
119 |
parser = argparse.ArgumentParser()
|
120 |
|
121 |
+
parser.add_argument(
|
122 |
+
"--stage1_config",
|
123 |
+
type=str,
|
124 |
+
default="configs/nf7_v3_SNR_rd_size_stroke.yaml",
|
125 |
+
help="config for stage1",
|
126 |
+
)
|
127 |
+
parser.add_argument(
|
128 |
+
"--stage2_config",
|
129 |
+
type=str,
|
130 |
+
default="configs/stage2-v2-snr.yaml",
|
131 |
+
help="config for stage2",
|
132 |
+
)
|
133 |
parser.add_argument("--device", type=str, default="cuda")
|
134 |
args = parser.parse_args()
|
135 |
|