Skip to content

Commit a040682

Browse files
committed
Print progress
1 parent 2898cf2 commit a040682

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

colorization_benchmark/run_benchmark.py

+9
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ def unconditional_benchmark(colorizer: BaseColorizer, image_dir: Path, output_di
187187
web_root = output_dir.parent
188188
benchmark_type = "unconditional"
189189
method_name = colorizer.method_name
190+
print(benchmark_type, method_name)
191+
190192
experiment_root = output_dir / benchmark_type / method_name # save table here
191193
if not markdown_only and experiment_root.exists(): # delete only dirs with pictures
192194
[shutil.rmtree(item) for item in experiment_root.iterdir() if item.is_dir()]
@@ -196,6 +198,7 @@ def unconditional_benchmark(colorizer: BaseColorizer, image_dir: Path, output_di
196198

197199
rows = 0
198200
for task_name, tasks in tqdm(benchmark_pairs_unconditional.items()):
201+
print(task_name)
199202
image_id = 0
200203
for row in tasks:
201204
for task in row:
@@ -242,6 +245,8 @@ def single_reference_benchmark(colorizer: BaseColorizer, image_dir: Path, output
242245
web_root = output_dir.parent
243246
benchmark_type = "single_reference"
244247
method_name = colorizer.method_name
248+
print(benchmark_type, method_name)
249+
245250
experiment_root = output_dir / benchmark_type / method_name # save table here
246251
if not markdown_only and experiment_root.exists(): # delete only dirs with pictures
247252
[shutil.rmtree(item) for item in experiment_root.iterdir() if item.is_dir()]
@@ -250,6 +255,7 @@ def single_reference_benchmark(colorizer: BaseColorizer, image_dir: Path, output
250255
table_md += templating.table_header(["Task", "Image #1", "Image #2", "Image #3", "Image #4"])
251256
rows = 0
252257
for task_name, tasks in tqdm(benchmark_pairs_single.items()):
258+
print(task_name)
253259
image_id = 0
254260
for row in tasks:
255261
if rows == 2:
@@ -303,6 +309,8 @@ def multi_reference_benchmark(colorizer: BaseColorizer, image_dir: Path, output_
303309
web_root = output_dir.parent
304310
benchmark_type = "multi_reference"
305311
method_name = colorizer.method_name
312+
print(benchmark_type, method_name)
313+
306314
experiment_root = output_dir / benchmark_type / method_name # save table here
307315
if not markdown_only and experiment_root.exists(): # delete only dirs with pictures
308316
[shutil.rmtree(item) for item in experiment_root.iterdir() if item.is_dir()]
@@ -312,6 +320,7 @@ def multi_reference_benchmark(colorizer: BaseColorizer, image_dir: Path, output_
312320

313321
rows = 0
314322
for task_name, tasks in tqdm(benchmark_pairs_multi.items()):
323+
print(task_name)
315324
image_id = 0
316325
for row in tasks:
317326
if rows == 1:

0 commit comments

Comments
 (0)