scenic
Use Scenic, Google Research's JAX/Flax computer-vision research codebase, for configs, training, datasets, models, layers, baselines, and project-specific workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- scenic
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use Scenic, Google Research's JAX/Flax computer-vision research codebase, for configs, training, datasets, models, layers, baselines, and project-specific workflows.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/common-utilities.md1.7 KB
- 参考文档references/installation-and-environment.md4.2 KB
- 参考文档references/repo-provenance.md2.3 KB
- 参考文档references/repo-routing-metadata.json528 B
- 参考文档references/troubleshooting.md5.6 KB
03 SKILL.md 正文
Scenic Repo Skill
Use this skill when a task is about Scenic (google-research/scenic): JAX/Flax vision research experiments, Scenic config files, app/training runners, dataset registry errors, BaseModel/layer APIs, or choosing/adapting a Scenic baseline or project.
Scenic is both a lightweight shared library (common_lib, dataset_lib, model_lib, train_lib) and a large project zoo under scenic.projects. It favors project-level forking/copying for research code and keeps reusable patterns in the shared libraries.
Start here
- If setting up an environment or checking whether Scenic imports, read references/installation-and-environment.md and run scripts/inspect_scenic_package.py.
- If the task names
--config,--workdir,rng_seed,trainer_name,model_name,dataset_name, LR schedules, optimizers, checkpoints, or train launches, use sub-skills/running-and-training/SKILL.md. - If the task is about dataset registration, TFDS, FlexIO, COCO/TFRecord layouts,
DatasetRegistry,@add_dataset, or unknown dataset errors, use sub-skills/data-pipelines/SKILL.md. - If the task is about BaseModel contracts, registered model names, Flax modules, attention/layers, matchers, losses, metrics, or tiny model checks, use sub-skills/modeling-and-layers/SKILL.md.
- If the task asks which Scenic baseline/project to use, how a project-specific
main.py/config/registry works, or which optional dependencies a project needs, use sub-skills/baselines-and-projects/SKILL.md.
Safe core checks
Run these from any environment where Scenic is installed:
python scripts/inspect_scenic_package.py
python scripts/run_scenic_smoke.py
The smoke helper is self-contained: it imports safe modules, checks a tiny JAX calculation, validates LR schedule construction, and lists dataset/model registry names. It does not run training, load datasets, download checkpoints, or execute original repository tests.
For optional trainer-registry import diagnostics:
python scripts/inspect_scenic_package.py --check-trainers
python scripts/run_scenic_smoke.py --check-trainers
A trainer import failure can be an optional transfer/BigTransfer/TensorFlow Addons dependency issue rather than a core package failure. Read references/troubleshooting.md and the running-and-training troubleshooting reference before changing package versions.
Route by user intent
| User intent or signal | Read next |
|---|---|
"How do I run this config?", --config, --workdir, dataset_service_address, JAX backend flags |
running-and-training |
| Validate a config without launching a job | running-and-training and its scripts/scenic_config_probe.py |
Unknown dataset, custom dataset registration, TFDS/FlexIO/COCO/TFRecord data layout |
data-pipelines |
Unrecognized model, model registry names, BaseModel, metrics/losses, matchers/layers |
modeling-and-layers |
| Choose ViT/ResNet/DETR/CLIP/BERT/ViViT/MTV/OWL-ViT/UnLoc/Vid2Seq/DenseVOC/PixelLLM/etc. | baselines-and-projects |
| Optional dependencies such as DMVR, T5/T5X, CLIP/Torch, COCO/LVIS, pycocotools, TensorFlow Addons, BigVision | baselines-and-projects plus root troubleshooting |
| Shared image/video/debug/export helpers | references/common-utilities.md |
| Check whether this generated skill is stale for a checkout | references/repo-provenance.md |
Operating rules
- Do not launch full training/evaluation until config, dataset availability, checkpoint paths, backend devices, and project dependencies are all known.
- Treat CPU smoke checks as validation for API/config guidance only. They do not prove GPU/TPU performance or multi-host correctness.
- Do not install every project
requirements.txt. Pick the project/baseline first, then install the narrow optional dependency set it needs. - Do not run data-conversion tools unless input data, output paths, credentials, side effects, and dependencies are explicitly approved.
- For project-specific models/trainers/datasets, prefer the project
main.pyand project registry pattern instead of assuming the rootscenic.mainregistry knows every project object. - Keep source-code modification and contribution-policy tasks separate from user-facing Scenic experiment use; if the user is editing Scenic itself, verify with focused tests and current project instructions.
Provenance and routing metadata
- Read references/repo-provenance.md before refreshing or trusting this skill for a different Scenic checkout.
- references/repo-routing-metadata.json is the structured router metadata used by the managed repo-skill importer when import is explicitly requested in a later run.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.