Skip to content
cccskills
FreePublished on GitHub

fcos

Routes FCOS object-detection repo tasks for inference demos, config/data setup, training/evaluation, ONNX export, and legacy PyTorch internals.

The English summary is being prepared. Showing the original description.

See how to install

Files included (38)

  • SKILL.md4.7 KB
  • references/repo-provenance.md1.9 KB
  • references/repo-routing-metadata.json409 B
  • references/troubleshooting.md3.0 KB
  • scripts/check_fcos_environment.py3.4 KB
  • sub-skills/data-configs/references/configuration.md1.7 KB
  • sub-skills/data-configs/references/data-formats.md1.5 KB
  • sub-skills/data-configs/references/model-catalog.md1.3 KB
  • sub-skills/data-configs/references/troubleshooting.md1.3 KB
  • sub-skills/data-configs/scripts/validate_dataset_layout.py1.6 KB
  • sub-skills/data-configs/scripts/validate_fcos_config.py2.1 KB
  • sub-skills/data-configs/SKILL.md1.9 KB
  • sub-skills/inference-demo/references/api-reference.md2.5 KB
  • sub-skills/inference-demo/references/model-overview.md1.5 KB
  • sub-skills/inference-demo/references/troubleshooting.md1.5 KB
  • sub-skills/inference-demo/references/workflows.md2.0 KB
  • sub-skills/inference-demo/scripts/fcos_cli_safe_wrapper.py2.8 KB
  • sub-skills/inference-demo/scripts/prepare_image_for_fcos.py2.0 KB
  • sub-skills/inference-demo/SKILL.md2.6 KB
  • sub-skills/internals-maintenance/references/api-reference.md1.7 KB
  • sub-skills/internals-maintenance/references/architecture.md1.5 KB
  • sub-skills/internals-maintenance/references/testing-reference.md1.1 KB
  • sub-skills/internals-maintenance/references/troubleshooting.md1.3 KB
  • sub-skills/internals-maintenance/scripts/inspect_fcos_components.py2.2 KB
  • sub-skills/internals-maintenance/SKILL.md1.8 KB
  • sub-skills/onnx-export/references/output-contract.md1.0 KB
  • sub-skills/onnx-export/references/troubleshooting.md1.0 KB
  • sub-skills/onnx-export/references/workflows.md1.3 KB
  • sub-skills/onnx-export/scripts/build_onnx_export_command.py1.2 KB
  • sub-skills/onnx-export/SKILL.md1.6 KB
  • sub-skills/training-evaluation/references/checkpoints.md1.1 KB
  • sub-skills/training-evaluation/references/cli-reference.md2.1 KB
  • sub-skills/training-evaluation/references/troubleshooting.md1.4 KB
  • sub-skills/training-evaluation/references/workflows.md1.7 KB
  • sub-skills/training-evaluation/scripts/build_eval_command.py1.5 KB
  • sub-skills/training-evaluation/scripts/build_train_command.py1.4 KB
  • sub-skills/training-evaluation/scripts/remove_solver_states.py1.5 KB
  • sub-skills/training-evaluation/SKILL.md2.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

FCOS Repo Skill

Use this skill when a task is about FCOS: Fully Convolutional One-Stage Object Detection, the legacy PyTorch/maskrcnn-benchmark implementation for anchor-free object detection. It covers using the public fcos package/API, selecting and validating configs, preparing dataset layouts, building training/evaluation commands, exporting ONNX models, and maintaining FCOS internals.

First Checks

  1. Confirm the user is asking about FCOS-style object detection, FCOS configs, fcos / fcos_core, maskrcnn-benchmark-derived training scripts, or errors such as missing fcos_core._C.
  2. Check the runtime with scripts/check_fcos_environment.py when import, CUDA, extension, or config availability matters.
  3. Read references/repo-provenance.md before deciding whether this skill matches a current checkout or should be refreshed.
  4. For cross-cutting install/import/build failures, read references/troubleshooting.md before changing code or dependencies.

Public Package Baseline

FCOS is a legacy source-install package named fcos with import roots fcos and fcos_core. A practical installation usually needs:

pip install torch torchvision ninja yacs cython matplotlib tqdm opencv-python scikit-image
pip install git+https://github.com/tianzhi0549/FCOS.git
python - <<'PY'
from fcos_core.config import cfg
print(cfg.MODEL.FCOS_ON)
PY

For real model inference/training, a compiled fcos_core._C extension and a PyTorch/CUDA combination compatible with this older maskrcnn-benchmark code are required. Modern PyTorch releases can need compatibility patches; do not promise that a CPU import proves real detector inference.

Route Map

  • Image inference, demos, and public FCOS API → sub-skills/inference-demo/SKILL.md. Use this for installed fcos CLI usage, FCOS.detect, model-name choices, image preprocessing, CPU/GPU selection, output boxes, visualization, and demo troubleshooting.
  • Training, evaluation, distributed launch, checkpoints → sub-skills/training-evaluation/SKILL.md. Use this for --config-file, MODEL.WEIGHT, OUTPUT_DIR, TEST.IMS_PER_BATCH, multi-GPU launch, OOM mitigation, and stripping solver states.
  • Configs, model catalog, and dataset layouts → sub-skills/data-configs/SKILL.md. Use this for configs/fcos selection, MODEL.FCOS keys, COCO/VOC/Cityscapes layout validation, custom dataset planning, and config merge diagnostics.
  • ONNX export and ONNX evaluation planning → sub-skills/onnx-export/SKILL.md. Use this for FCOS ONNX export commands, output tensor names, dummy input constraints, and Caffe2/backend limitations.
  • Source internals and repo maintenance → sub-skills/internals-maintenance/SKILL.md. Use this for FCOS head/loss/postprocess internals, BoxList, compiled extension issues, tests, and porting to newer PyTorch.

Common Decisions

  • If the user only wants to detect objects in one image, route to inference-demo and prefer the high-level fcos.FCOS API or the installed fcos CLI.
  • If the user mentions COCO/VOC/Cityscapes paths, config overrides, class counts, or YAML errors, route to data-configs before training.
  • If the user asks for AP numbers, model weights, batch sizes, or an evaluation command, route to training-evaluation and remind them that datasets and weights are not bundled.
  • If the user asks for ONNX, do not treat it as normal PyTorch evaluation; route to onnx-export because the export script emits backbone/head tensors and the test script does PyTorch post-processing.
  • If the user is editing FCOS code or seeing _C, compiler, torch._six, libc10, or NumPy ABI errors, route to internals-maintenance plus the root troubleshooting reference.

Safety and Scope Notes

  • Do not download pretrained weights, datasets, or run long training/evaluation unless the user approves the cost and runtime.
  • Do not open GUI windows or webcams by default; use no-display/API paths for automated agents.
  • Do not claim benchmark reproduction unless the required dataset, weights, compiled extension, and GPU runtime were actually verified.
  • The bundled scripts are safe diagnostics and command builders. They are replacements for routine guidance, not large model weights or datasets.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill338Updated Sep 3, 2026

3ddfa

Free

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill338Updated Sep 3, 2026

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill338Updated Sep 3, 2026

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill338Updated Sep 3, 2026

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill338Updated Sep 3, 2026

acme

Free

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill338Updated Sep 3, 2026

See all skills by VectorSpaceLab

Report a problem with this skill