Spaces:
Running
on
Zero
Running
on
Zero
Remove unsupported --logdir argument from sample.py command
Browse files
app.py
CHANGED
|
@@ -153,7 +153,6 @@ def generate_image(prompt, aspect_ratio, cfg, seed, checkpoint_file, config_path
|
|
| 153 |
output_dir.mkdir(exist_ok=True)
|
| 154 |
|
| 155 |
# Run sampling command
|
| 156 |
-
# Set logdir to outputs directory for easier file finding
|
| 157 |
cmd = [
|
| 158 |
"python", "sample.py",
|
| 159 |
"--model_config_path", config_path,
|
|
@@ -167,8 +166,7 @@ def generate_image(prompt, aspect_ratio, cfg, seed, checkpoint_file, config_path
|
|
| 167 |
"--finetuned_vae", "none",
|
| 168 |
"--jacobi", "1",
|
| 169 |
"--jacobi_th", "0.001",
|
| 170 |
-
"--jacobi_block_size", "16"
|
| 171 |
-
"--logdir", str(output_dir) # Set logdir to outputs
|
| 172 |
]
|
| 173 |
|
| 174 |
status_msg += "Running generation...\n"
|
|
|
|
| 153 |
output_dir.mkdir(exist_ok=True)
|
| 154 |
|
| 155 |
# Run sampling command
|
|
|
|
| 156 |
cmd = [
|
| 157 |
"python", "sample.py",
|
| 158 |
"--model_config_path", config_path,
|
|
|
|
| 166 |
"--finetuned_vae", "none",
|
| 167 |
"--jacobi", "1",
|
| 168 |
"--jacobi_th", "0.001",
|
| 169 |
+
"--jacobi_block_size", "16"
|
|
|
|
| 170 |
]
|
| 171 |
|
| 172 |
status_msg += "Running generation...\n"
|