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