configuration-and-experiments
Configure a MedicalDetectionToolkit experiment, inspect its CLI and fold lifecycle, onboard a bounded toy fixture, and diagnose configuration or experiment-directory failures without entering model internals or running training.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- configuration-and-experiments
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Configure a MedicalDetectionToolkit experiment, inspect its CLI and fold lifecycle, onboard a bounded toy fixture, and diagnose configuration or experiment-directory failures without entering model internals or running training.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/cli-reference.md5.9 KB
- 参考文档references/configuration.md7.9 KB
- 参考文档references/experiment-layout.md6.5 KB
- 参考文档references/troubleshooting.md6.8 KB
- 脚本scripts/generate_toy_fixture.py2.6 KB
- 脚本scripts/inspect_cli.py7.2 KB
03 SKILL.md 正文
Configuration and experiments
Use this node when the task is to turn a detector idea into a checked
experiments/<name>/configs.py contract, choose a model and 2D/3D operating
dimension, create or inspect an experiment directory, select folds, or prepare a
small toy fixture. This repository is legacy and explicitly unmaintained; pin
the checkout/package version before treating a configuration as reproducible.
Do not start training, testing, analysis, or CUDA compilation while merely
validating configuration. The bundled scripts are safe inspection/fixture
helpers and do not import the source checkout.
Route by intent
- Need a config or model/dimension decision? Read configuration.md, then route detector-specific behavior to models-and-architectures and data shape/path behavior to data-and-preprocessing.
- Need an invocation or lifecycle decision? Read
cli-reference.md and
experiment-layout.md. Use
inspect_cli.py to print or validate the bounded
command contract without importing
exec.py. - Need toy onboarding? Read the toy section in
experiment-layout.md and use
generate_toy_fixture.py. It refuses to
overwrite existing fixture files and has hard count, shape, and size caps.
Adapt
n_train_val_datain a copied config to the fixture count before attempting any framework workflow. - A command/config fails? Read troubleshooting.md before changing paths or stored settings. Stop rather than silently switching folds, replacing a snapshot, or assuming a modern dependency is compatible.
Operating contract
- A config module exposes a lowercase
configssubclass with constructorconfigs(server_env=None). It setsself.modelandself.dim, then callsDefaultConfigs.__init__(self, self.model, server_env, self.dim)before applying experiment-specific paths, data, schedule, and model settings. - Supported configuration labels evidenced by the experiment files are
mrcnn,retina_net,retina_unet,detection_unet,ufrcnn, and in the shared default dispatchufrcnn_surroundingandprob_detector. Availability is version/config dependent; the dispatch key must exist or construction fails. dim=2uses 2D patch/list settings;dim=3uses 3D settings. This choice affects channels, patch shape, augmentation, anchors, and model-specific defaults. Do not infer 3D support from a successful CPU import; route runtime prerequisites to cuda-extensions and model details to models-and-architectures.- Paths are configuration data, not portable defaults. Replace example machine
paths with an existing preprocessed-data root and verify that its
input_df_name(normallyinfo_df.pickle) and expected.npyrecords exist. Do not point a new experiment at a snapshot or private dataset by accident. - Training/testing snapshot scripts into
exp_dir; testing then copies the stored model/backbone back to the source tree as temporary modules. This is a legacy mutable workflow. Inspect and obtain an explicit safe workspace before using it; this node does not perform those writes. n_cv_splitsdefaults to 5. With no--folds, train/test loops userange(cf.n_cv_splits). A supplied fold list is not range-validated by the CLI, so validate it yourself and ensure fold IDs matchfold_ids.picklewhen the experiment is not hold-out.--use_stored_settingsis a reproducibility choice, not a generic repair switch. Prefer the experiment snapshot for testing and for resumed work when it is complete; otherwise stop on missing or inconsistentconfigs.py,default_configs.py,model.py, orbackbone.py.- This node owns configuration/lifecycle routing only. It does not explain detector forward passes, data conversion, prediction consolidation, evaluation metrics, or custom-op builds; use the linked sibling nodes.
All detailed tables, source-backed values, and failure handling live in the four linked references so this file remains a router.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).