跳到正文
cccskills
免费在 GitHub 公开

fast-style-transfer

Guides TensorFlow Fast Style Transfer training, image stylization, and video stylization workflows from checkpoints, VGG/COCO assets, and script-oriented CLIs.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(31)

  • SKILL.md6.1 KB
  • references/repo-provenance.md2.2 KB
  • references/repo-routing-metadata.json431 B
  • references/setup-and-assets.md4.5 KB
  • references/troubleshooting.md3.7 KB
  • scripts/fast_style_transfer_runtime/evaluate.py8.6 KB
  • scripts/fast_style_transfer_runtime/optimize.py6.0 KB
  • scripts/fast_style_transfer_runtime/style.py6.3 KB
  • scripts/fast_style_transfer_runtime/transform_video.py2.2 KB
  • scripts/fast_style_transfer_runtime/transform.py2.8 KB
  • scripts/fast_style_transfer_runtime/utils.py1.2 KB
  • scripts/fast_style_transfer_runtime/vgg.py2.2 KB
  • scripts/inspect_fast_style_transfer.py5.3 KB
  • sub-skills/image-stylization/references/api-and-cli-reference.md2.7 KB
  • sub-skills/image-stylization/references/image-stylization-workflow.md3.6 KB
  • sub-skills/image-stylization/references/troubleshooting.md2.6 KB
  • sub-skills/image-stylization/scripts/run_image_stylization.py977 B
  • sub-skills/image-stylization/scripts/validate_image_stylization_inputs.py4.9 KB
  • sub-skills/image-stylization/SKILL.md4.1 KB
  • sub-skills/training/references/cli-reference.md2.9 KB
  • sub-skills/training/references/training-workflow.md4.1 KB
  • sub-skills/training/references/troubleshooting.md3.1 KB
  • sub-skills/training/scripts/run_training.py962 B
  • sub-skills/training/scripts/validate_training_inputs.py5.8 KB
  • sub-skills/training/SKILL.md4.3 KB
  • sub-skills/video-stylization/references/cli-reference.md2.4 KB
  • sub-skills/video-stylization/references/troubleshooting.md2.7 KB
  • sub-skills/video-stylization/references/video-stylization-workflow.md3.2 KB
  • sub-skills/video-stylization/scripts/run_video_stylization.py991 B
  • sub-skills/video-stylization/scripts/validate_video_stylization_inputs.py5.6 KB
  • sub-skills/video-stylization/SKILL.md3.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Fast Style Transfer Repo Skill

Use this skill when a task involves Logan Engstrom's TensorFlow Fast Style Transfer repository, real-time neural style transfer, the bundled training runtime, the bundled image stylization runtime, the bundled video stylization runtime, transform-network checkpoints, VGG19 .mat assets, or COCO-style training image directories.

This repo is script-oriented rather than an installable Python package. This skill is self-contained: the workflow details, adapted runtime wrappers, CLI flags, validation helpers, troubleshooting, and provenance needed for normal use are bundled here.

Read first

Route by task

User taskRead
Train a style transform network, choose loss weights, validate style/train/VGG inputs, or plan a long GPU runsub-skills/training/SKILL.md
Stylize one image or a directory of images from a trained checkpoint, debug dimensions, output paths, devices, or checkpoint restoresub-skills/image-stylization/SKILL.md
Stylize a video from a trained checkpoint, check moviepy/ffmpeg, plan batch/device settings, or debug video outputsub-skills/video-stylization/SKILL.md

Public prerequisites

The historical repository documentation names TensorFlow-era dependencies. For modern inspection and command planning, verify a Python environment with:

python - <<'PY'
import tensorflow as tf, numpy, scipy, imageio, PIL, moviepy
print('tensorflow', tf.__version__)
print('gpu devices', tf.config.list_physical_devices('GPU'))
PY

For practical full training or large video/image batches, use a compatible GPU TensorFlow stack. CPU can validate parsers and run small image inference, but full training on CPU is normally impractical.

Core runtime surfaces:

  • Training script: python sub-skills/training/scripts/run_training.py --checkpoint-dir ... --style ... --train-path ... --vgg-path ...
  • Image stylization script: python sub-skills/image-stylization/scripts/run_image_stylization.py --checkpoint ... --in-path ... --out-path ...
  • Video stylization script: python sub-skills/video-stylization/scripts/run_video_stylization.py --checkpoint ... --in-path ... --out-path ...
  • Bundled runtime modules used by those scripts: scripts/fast_style_transfer_runtime/transform.py, scripts/fast_style_transfer_runtime/optimize.py, scripts/fast_style_transfer_runtime/vgg.py, and scripts/fast_style_transfer_runtime/utils.py.

The generated validation helpers in this skill check paths, numeric options, media shapes, optional dependencies, and command readiness without running expensive neural style transfer.

Asset model

This skill does not bundle model weights, VGG networks, COCO data, checkpoints, or example media. Treat these as user-supplied runtime assets:

  • VGG19 .mat for training losses.
  • A directory of training content images such as COCO train2014 or an equivalent image corpus.
  • A style image used to train a new transform network.
  • A trained Fast Style Transfer checkpoint for image or video stylization.
  • ffmpeg/moviepy support for video workflows.

Minimum safe checks

Before a costly run, prefer these safe checks:

python scripts/inspect_fast_style_transfer.py --json
python sub-skills/training/scripts/validate_training_inputs.py --help
python sub-skills/image-stylization/scripts/validate_image_stylization_inputs.py --help
python sub-skills/video-stylization/scripts/validate_video_stylization_inputs.py --help

When a local checkout is available and you want source-surface inspection, pass its directory to the root inspector:

python scripts/inspect_fast_style_transfer.py --repo-root /path/to/fast-style-transfer --json

Do not use these checks as proof that pretrained checkpoints, VGG assets, COCO data, GPU speed, or full video encoding work; those require separate runtime assets and backend verification.

Common decisions

  • Need a checkpoint? Use the training sub-skill if creating one; use image/video sub-skills if consuming one.
  • Need the fastest path to stylize a still image? Use image-stylization; pass /cpu:0 only for small or debugging runs, and a GPU device for throughput when TensorFlow GPU is configured.
  • Need to process mixed-size image directories? Use image-stylization and either normalize image dimensions first or enable the script's different-dimensions grouping path.
  • Need video output? Use video-stylization; verify checkpoint, moviepy, ffmpeg, and device/batch choices before processing frames.
  • Need downloads? Read setup/assets guidance; do not run network or large-data downloads implicitly.

Do not use this skill when

  • The task is about a different style-transfer implementation, PyTorch neural style transfer, diffusion image generation, or a generic TensorFlow tutorial unrelated to this repository.
  • The user needs legal/commercial licensing advice beyond the repository's public research-use notice and citation metadata.
  • The task asks to modify the repository source code rather than use its public workflows; use a repository-maintenance workflow instead.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3402026年9月3日 更新

3ddfa

免费

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

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3402026年9月3日 更新

3ddfa-v2

免费

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

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3402026年9月3日 更新

ab3dmot

免费

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

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3402026年9月3日 更新

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.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3402026年9月3日 更新

acme

免费

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

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3402026年9月3日 更新

查看 VectorSpaceLab 的全部技能

报告此技能的问题