Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runs/exp02_one_layer/evaluate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
from pathlib import Path

import matplotlib.pyplot as plt
Expand Down Expand Up @@ -94,7 +93,8 @@ def load_checkpoint_and_evaluate(test_loader: DataLoader, checkpoint_path: Path,
from config import CONFIG
from dataset import XRR1LayerDataset

exp_dir = Path(os.environ["DATA"], r"XRR_AI\data\one_layer\run")
# The run main.py trains, not another experiment's folder.
exp_dir = CONFIG["base_dir"] / CONFIG["exp_name"]
h5_file = exp_dir / "dataset.h5"
stats_file = exp_dir / "stats.pt"
checkpoint_file = exp_dir / "best.pt"
Expand Down
4 changes: 3 additions & 1 deletion runs/exp02_one_layer/evaluate_with_real_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,13 @@ def evaluate_with_plots(model, data_loader: DataLoader, stats_path: Path, out_pr
# Example usage block (사용자 환경에 맞게 수정)
# ------------------------------
if __name__ == "__main__":
from config import CONFIG
from model import XRR1DRegressor
# -----------------------------
# 경로 설정
# -----------------------------
exp_dir = Path(os.environ["DATA"], r"XRR_AI\data\one_layer\run")
# The run main.py trains, not another experiment's folder.
exp_dir = CONFIG["base_dir"] / CONFIG["exp_name"]
stats_file = exp_dir / "stats.pt"
checkpoint_file = exp_dir / "best.pt"
out_dir = exp_dir / "eval_real"
Expand Down
4 changes: 2 additions & 2 deletions runs/exp04_one_genx/evaluate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
from pathlib import Path

import matplotlib.pyplot as plt
Expand Down Expand Up @@ -94,7 +93,8 @@ def load_checkpoint_and_evaluate(test_loader: DataLoader, checkpoint_path: Path,
from config import CONFIG
from dataset import XRR1LayerDataset

exp_dir = Path(os.environ["DATA"], r"XRR_AI\data\one_layer\run")
# The run main.py trains, not another experiment's folder.
exp_dir = CONFIG["base_dir"] / CONFIG["exp_name"]
h5_file = exp_dir / "dataset.h5"
stats_file = exp_dir / "stats.pt"
checkpoint_file = exp_dir / "best.pt"
Expand Down
4 changes: 3 additions & 1 deletion runs/exp04_one_genx/evaluate_with_real_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,13 @@ def evaluate_with_plots(model, data_loader: DataLoader, stats_path: Path, out_pr
# Example usage block (사용자 환경에 맞게 수정)
# ------------------------------
if __name__ == "__main__":
from config import CONFIG
from model import XRR1DRegressor
# -----------------------------
# 경로 설정
# -----------------------------
exp_dir = Path(os.environ["DATA"], r"XRR_AI\data\one_layer\run")
# The run main.py trains, not another experiment's folder.
exp_dir = CONFIG["base_dir"] / CONFIG["exp_name"]
stats_file = exp_dir / "stats.pt"
checkpoint_file = exp_dir / "best.pt"
out_dir = exp_dir / "eval_real"
Expand Down
Loading