normalize names and artifact paths
This commit is contained in:
@@ -262,7 +262,7 @@ def ensure_remote_artifacts(args):
|
||||
|
||||
def remote_case_paths(args, case_name: str):
|
||||
network_dir = Path(args.network_dir)
|
||||
root = Path(args.remote_project) / network_dir
|
||||
root = Path(args.remote_project) / network_dir / "artifacts"
|
||||
return {
|
||||
"root": root,
|
||||
"runner": root / "runner" / "build" / "runner",
|
||||
@@ -272,7 +272,7 @@ def remote_case_paths(args, case_name: str):
|
||||
"input_csv": root / "real_image_validation" / "inputs" / f"{case_name}.csv",
|
||||
"ref_dir": root / "real_image_validation" / "reference" / case_name,
|
||||
"sim_dir": root / "real_image_validation" / "simulation" / case_name,
|
||||
"sim_input": root / "real_image_validation" / "simulation" / case_name / "input.bin",
|
||||
"sim_input": root / "real_image_validation" / "simulation" / case_name / "input_0.bin",
|
||||
"sim_bin": root / "real_image_validation" / "simulation" / case_name / "out.bin",
|
||||
}
|
||||
|
||||
@@ -331,7 +331,7 @@ PY
|
||||
f"cd {quoted_project}/backend-simulators/pim/pim-simulator && "
|
||||
f"cargo run --no-default-features --release --package pim-simulator --bin pim-simulator -- "
|
||||
f"-f {quoted_pim} -o {quoted_sim_bin} -d {dump_range} "
|
||||
f"--mode latency --input {shlex.quote(str(paths['sim_input']))}"
|
||||
f"--mode latency --batch-size 1 --input-dir {shlex.quote(str(paths['sim_input'].parent))}"
|
||||
)
|
||||
remote_bash(args.ssh_key, args.remote_host, sim_command)
|
||||
return paths
|
||||
@@ -408,7 +408,7 @@ def main():
|
||||
parser.add_argument("--core-count", type=int, default=144)
|
||||
parser.add_argument("--command-timeout-seconds", type=int, default=7200)
|
||||
parser.add_argument("--skip-compile", action="store_true")
|
||||
parser.add_argument("--annotated-dir", default="validation/networks/yolo11n/depth_51/real_image_validation/annotated")
|
||||
parser.add_argument("--annotated-dir", default="validation/networks/yolo11n/depth_51/artifacts/real_image_validation/annotated")
|
||||
args = parser.parse_args()
|
||||
|
||||
args.ssh_key = str(Path(args.ssh_key).expanduser())
|
||||
|
||||
Reference in New Issue
Block a user