界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

translation

translation

【效率与协作】Operate TLLib image/domain translation and style-transfer components: CycleGAN, FDA, CyCADA, and SPGAN.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: translation description: "Operate TLLib image/domain translation and style-transfer components: CycleGAN, FDA, CyCADA, and SPGAN." disable-model-invocation: true metadata: disco-role: operating license: MIT

Translation Sub-skill

Use this sub-skill when a task involves TLLib image/domain translation or style transfer components rather than classifier-only adaptation: CycleGAN generators/discriminators/losses, the Translation transform, FDA/Fourier amplitude transfer, CyCADA semantic consistency, or SPGAN Siamese/contrastive components.

Route first

Safe operating sequence

  1. Confirm tllib imports successfully in an environment compatible with TLLib 0.4-era PyTorch/TorchVision.

  2. Run the bundled component smoke before editing a user workflow:

    python scripts/tllib_translation_smoke.py
    

    It uses tiny synthetic tensors/images, creates only temporary files, and does not download data.

  3. Choose the smallest translation mechanism:

    • FDA for lightweight target-style amplitude transfer, especially segmentation preprocessing.
    • CycleGAN Translation for applying an already trained generator to PIL images or dataset items.
    • CyCADA SemanticConsistency when semantic labels/predictions must constrain image translation.
    • SPGAN Siamese/contrastive pieces when preserving person re-id identity similarity matters.
  4. Keep benchmark-scale CycleGAN/FDA/SPGAN training as optional, data/GPU-heavy work. Do not imply it was verified by the smoke script.

What this sub-skill does not claim

  • It does not provide dataset download instructions or benchmark reproduction guarantees.
  • It does not validate Detectron2/MMCV object-detection stacks, segmentation datasets, re-id datasets, or CUDA training throughput.
  • It does not require opening the original repository examples at runtime; the references here are self-contained distilled usage notes.
我的收藏