Skip to content

Commit cc61cfa

Browse files
committed
printing fix
1 parent 9590fe9 commit cc61cfa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

visualbench/runs/benchpack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def logger_fn(value: float):
128128
os.rename(f'{video_path} __TEMP__.mp4', f'{video_path}.mp4')
129129

130130
if print_time:
131-
if print_progress: print("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t", end="\r")
131+
if print_progress: print(" ", end="\r")
132132
print(f"{task_name} took {(time.time() - start):.2f} s.")
133133

134134
self.run_bench = run_bench

visualbench/runs/mlbench.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ def run_visual(self):
8282
# basic
8383
# ------------------------------ Rosenbrock-256 ------------------------------ #
8484
bench = tasks.projected.Rosenbrock(384).to(CUDA_IF_AVAILABLE)
85-
self.run_bench(bench, 'S - Rosenbrock 384', passes=2000, sec=30, metrics='train loss', vid_scale=4, binary_mul=3)
85+
self.run_bench(bench, 'S - Rosenbrock 384', passes=2_000, sec=30, metrics='train loss', vid_scale=4, binary_mul=3)
8686

8787
# ------------------------------- neural drawer ------------------------------ #
8888
bench = tasks.NeuralDrawer(data.WEEVIL96, models.MLP([2,16,16,16,16,16,16,16,3], act_cls=nn.ReLU, bn=True), expand=48).to(CUDA_IF_AVAILABLE)
89-
self.run_bench(bench, 'Visual - NeuralDrawer - ReLU+bn', passes=2000, sec=60, metrics='train loss', vid_scale=2, binary_mul=3)
89+
self.run_bench(bench, 'Visual - NeuralDrawer - ReLU+bn', passes=2_000, sec=60, metrics='train loss', vid_scale=2, binary_mul=3)
9090

9191
# ------------------------------- Colorization ------------------------------- #
9292
# ndim = 1024

0 commit comments

Comments
 (0)