Skip to content
Merged
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
8 changes: 8 additions & 0 deletions deepinv_bench/run.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os
import warnings
from pathlib import Path

import torch
Expand All @@ -7,6 +9,12 @@

BENCHMARK_ROOT = Path(__file__).parent / "benchmarks"

os.environ.setdefault(
"BENCHOPT_DATA_HOME", str(dinv.utils.get_cache_home() / "benchmarks")
)
# benchopt's env-var config check only knows abt globals
warnings.filterwarnings("ignore", message="data_home is set")


def run_benchmark(
model: dinv.models.Reconstructor | torch.nn.Module,
Expand Down
Loading