Skip to content
cccskills
FreePublished on GitHub

albumentations

Build, debug, serialize, and integrate Albumentations 2.x augmentation pipelines for images, masks, bboxes, keypoints, volumes, and PyTorch-style datasets.

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

See how to install

Files included (30)

  • SKILL.md4.7 KB
  • references/installation-and-maintenance.md2.1 KB
  • references/repo-provenance.md1.3 KB
  • references/repo-routing-metadata.json340 B
  • references/troubleshooting.md2.5 KB
  • scripts/albumentations_smoke_check.py1.4 KB
  • sub-skills/framework-integration/references/optional-dependencies.md3.5 KB
  • sub-skills/framework-integration/references/pytorch-integration.md5.9 KB
  • sub-skills/framework-integration/references/troubleshooting.md4.6 KB
  • sub-skills/framework-integration/scripts/pytorch_dataset_template.py4.8 KB
  • sub-skills/framework-integration/SKILL.md3.2 KB
  • sub-skills/pipeline-composition/references/composition-api.md10.7 KB
  • sub-skills/pipeline-composition/references/troubleshooting.md7.7 KB
  • sub-skills/pipeline-composition/scripts/check_pipeline_contract.py5.8 KB
  • sub-skills/pipeline-composition/SKILL.md2.7 KB
  • sub-skills/serialization-and-reproducibility/references/reproducibility.md4.9 KB
  • sub-skills/serialization-and-reproducibility/references/serialization-api.md6.0 KB
  • sub-skills/serialization-and-reproducibility/references/troubleshooting.md5.6 KB
  • sub-skills/serialization-and-reproducibility/scripts/roundtrip_pipeline.py2.5 KB
  • sub-skills/serialization-and-reproducibility/SKILL.md2.8 KB
  • sub-skills/targets-and-formats/references/data-formats.md8.9 KB
  • sub-skills/targets-and-formats/references/target-recipes.md8.2 KB
  • sub-skills/targets-and-formats/references/troubleshooting.md7.5 KB
  • sub-skills/targets-and-formats/scripts/validate_targets.py9.0 KB
  • sub-skills/targets-and-formats/SKILL.md3.1 KB
  • sub-skills/transform-catalog/references/recipes.md8.8 KB
  • sub-skills/transform-catalog/references/transform-reference.md13.9 KB
  • sub-skills/transform-catalog/references/troubleshooting.md7.4 KB
  • sub-skills/transform-catalog/scripts/transform_probe.py7.6 KB
  • sub-skills/transform-catalog/SKILL.md2.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Albumentations Repo Skill

Use this skill when a coding agent needs to work with Albumentations 2.x augmentation pipelines, choose transforms, validate targets, serialize/replay pipelines, or integrate augmentations into PyTorch-style data loading.

Albumentations is a NumPy/OpenCV-based augmentation library for computer vision and medical-imaging workflows. This skill covers the MIT-licensed albumentations package at version 2.0.8. The upstream README states that the original Albumentations repository is no longer maintained and points users to AlbumentationsX for active development; keep that maintenance status in mind when recommending new dependencies or migrations.

Quick Start

For deterministic/offline agent checks, suppress the package's import-time update check:

NO_ALBUMENTATIONS_UPDATE=1 python - <<'PY'
import albumentations as A
print(A.__version__)
PY

Minimal image pipeline:

import albumentations as A

transform = A.Compose(
    [
        A.Resize(256, 256),
        A.HorizontalFlip(p=0.5),
        A.RandomBrightnessContrast(p=0.2),
    ],
    strict=True,
    seed=137,
)
result = transform(image=image_np)
augmented = result["image"]

Install the base package for NumPy/OpenCV augmentation:

pip install albumentations

Install optional integrations only when needed:

pip install "albumentations[pytorch]"  # ToTensorV2 / ToTensor3D
pip install "albumentations[hub]"      # Hugging Face Hub helpers
pip install "albumentations[text]"     # text rendering helpers

Route By Task

  • Use sub-skills/pipeline-composition/ to build or debug Compose, ReplayCompose, OneOf, SomeOf, RandomOrder, Sequential, OneOrOther, SelectiveChannelTransform, strict validation, additional targets, seeds, and pipeline operator edits.
  • Use sub-skills/transform-catalog/ to choose transform families and parameters for pixel/color/noise/blur, crop/resize/pad/geometric, dropout, domain adaptation, spectrogram, text, and segmentation-safe pipelines.
  • Use sub-skills/targets-and-formats/ to handle input/output keys, masks, bboxes, keypoints, labels, additional targets, multiple images, volumes, and 3D masks.
  • Use sub-skills/serialization-and-reproducibility/ to save/load JSON or YAML configs, replay exact random choices, inspect applied parameters, handle custom Lambda objects, and reason about reproducibility.
  • Use sub-skills/framework-integration/ for PyTorch-style Dataset integration, ToTensorV2, ToTensor3D, optional extras, tensor shapes, dtype/range expectations, and DataLoader worker seeding.

Shared References And Helpers

  • references/installation-and-maintenance.md: package version, Python/dependency expectations, optional extras, maintenance status, and import/update-check behavior.
  • references/troubleshooting.md: cross-cutting install/import, OpenCV, optional dependency, offline, validation, and migration troubleshooting.
  • references/repo-provenance.md: source snapshot, evidence paths, and refresh baseline for staleness checks.
  • scripts/albumentations_smoke_check.py: tiny safe import and pipeline smoke check for installed environments.

Common Decision Points

  • Keep images as NumPy arrays in H,W,C until a final framework tensor transform; route tensor issues to framework-integration.
  • Use strict=True while developing pipelines to catch unknown keys and invalid transform arguments early; route Compose-level validation to pipeline-composition.
  • Declare bbox_params and keypoint_params on Compose whenever calls include bboxes or keypoints; route coordinate issues to targets-and-formats.
  • For segmentation masks, prefer nearest-neighbor mask interpolation and explicit fill_mask; route transform support decisions to transform-catalog.
  • For reproducible debugging, use seed, ReplayCompose, or save_applied_params=True depending on whether you need repeatable streams, exact replay, or sampled-parameter inspection.
  • Do not assume optional PyTorch, Hub, or text helpers are available from a base install; check extras and imports first.

Safety And Self-Containment

This generated skill is self-contained. Runtime instructions, references, and helper scripts live inside this skill directory and do not require opening the original repository checkout. Treat original tests and source files as provenance evidence only; use the bundled sub-skills and helpers for future work.

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-Skill339Updated 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-Skill339Updated 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-Skill339Updated 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-Skill339Updated 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-Skill339Updated 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-Skill339Updated Sep 3, 2026

See all skills by VectorSpaceLab

Report a problem with this skill