|
@ -2,7 +2,7 @@ import glob |
|
|
import shutil |
|
|
import shutil |
|
|
from pathlib import Path |
|
|
from pathlib import Path |
|
|
|
|
|
|
|
|
from check import make_image |
|
|
from check import create_rectangle |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_exps(pattern: str, splitter: str = "_", dry_run: bool = True): |
|
|
def get_exps(pattern: str, splitter: str = "_", dry_run: bool = True): |
|
@ -33,8 +33,8 @@ def get_exps(pattern: str, splitter: str = "_", dry_run: bool = True): |
|
|
print(latest_checkpoint) |
|
|
print(latest_checkpoint) |
|
|
if not dry_run: |
|
|
if not dry_run: |
|
|
shutil.copy(source_path, dir_path) |
|
|
shutil.copy(source_path, dir_path) |
|
|
make_image(latest_checkpoint, f"out/version_{i}") |
|
|
create_rectangle(latest_checkpoint, f"out/version_{i}") |
|
|
# make_image(latest_checkpoint, f"out/version_{i}b", color=False) |
|
|
# create_rectangle(latest_checkpoint, f"out/version_{i}b", color=False) |
|
|
else: |
|
|
else: |
|
|
print("Would copy", source_path, dir_path) |
|
|
print("Would copy", source_path, dir_path) |
|
|
return H |
|
|
return H |