본문으로 건너뛰기
cccskills
무료GitHub에 공개

foolbox

Foolbox operating guidance for wrapping vision models, running adversarial attacks, measuring clean and robust accuracy, handling NumPy/PyTorch/TensorFlow/JAX backends, and loading Foolbox-compatible model-zoo repositories.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(24)

  • SKILL.md5.3 KB
  • references/api-reference.md4.2 KB
  • references/repo-provenance.md1.4 KB
  • references/repo-routing-metadata.json321 B
  • references/troubleshooting.md3.5 KB
  • scripts/check_optional_frameworks.py545 B
  • scripts/smoke.py1.8 KB
  • sub-skills/attacks/references/api-reference.md2.1 KB
  • sub-skills/attacks/references/attack-authoring.md1.3 KB
  • sub-skills/attacks/references/attack-overview.md2.3 KB
  • sub-skills/attacks/references/troubleshooting.md1.8 KB
  • sub-skills/attacks/references/workflows.md2.8 KB
  • sub-skills/attacks/scripts/smoke_attacks.py1.5 KB
  • sub-skills/attacks/SKILL.md3.7 KB
  • sub-skills/models/references/api-reference.md8.0 KB
  • sub-skills/models/references/troubleshooting.md7.6 KB
  • sub-skills/models/references/workflows.md8.3 KB
  • sub-skills/models/scripts/smoke_models.py3.6 KB
  • sub-skills/models/SKILL.md7.5 KB
  • sub-skills/zoo/references/api-reference.md1.2 KB
  • sub-skills/zoo/references/troubleshooting.md7.4 KB
  • sub-skills/zoo/references/workflows.md3.1 KB
  • sub-skills/zoo/scripts/check_local_zoo_model.py4.1 KB
  • sub-skills/zoo/SKILL.md3.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Foolbox

Foolbox 3.3.4 is an EagerPy-based library for generating and evaluating adversarial examples against image classifiers. Use this skill when a task mentions Foolbox, foolbox, adversarial examples, robust accuracy, attack budgets, LinfPGD/FGSM/DeepFool/BoundaryAttack, model wrappers, or Foolbox model-zoo repositories.

Command, cache, and output paths

The commands in this skill use the generated skill root, not the native Foolbox checkout and not the caller's current directory. From any cwd, set the root to the directory containing this SKILL.md and change into it before running a command that uses a relative skill path:

# Replace this non-executable placeholder with the absolute directory containing this SKILL.md.
export SKILL_ROOT=/path/to/installed/skills/disco/foolbox
cd "$SKILL_ROOT"

Use the actual installed skill-root path if it differs from the example above. The root scripts/ and sub-skills/ paths below are relative to SKILL_ROOT; an absolute path such as python "$SKILL_ROOT/scripts/smoke.py" is equivalent. Write generated plots and other artifacts only to an explicit absolute path or to a dedicated directory such as "$SKILL_ROOT/outputs/" (create it first); do not rely on an unspecified cwd and do not write into the native checkout or the skill's source/reference assets. Foolbox model-zoo clones and downloaded weights use Foolbox's own cache (typically under ~/.foolbox_zoo), not these relative paths; inspect the exact returned path and never delete the whole cache as cleanup.

Cloning a zoo repository or downloading/extracting weights is a networked, potentially untrusted external-state operation. Obtain explicit approval before calling zoo.get_model(...) or zoo.fetch_weights(...), even when a cache entry may already exist. The local zoo checker and bundled sample assets are the offline alternatives.

Install and verify

Install the package and the small helper dependencies only with the environment's package-install/network approval; otherwise use an existing environment:

cd "$SKILL_ROOT"
python -m pip install foolbox pillow matplotlib
python -c "import foolbox as fb; print(fb.__version__)"

PyTorch, TensorFlow, and JAX are deliberately not base dependencies. Install one separately using its own supported wheel/build when the selected model or gradient attack needs it. Run the bundled CPU-native check before a larger workflow:

cd "$SKILL_ROOT"
python scripts/smoke.py --help
python scripts/smoke.py

Read references/api-reference.md for the verified public signatures and output-shape rules. Read references/troubleshooting.md when imports, bounds, preprocessing, optional frameworks, or attack outputs fail.

Route by task

Core execution contract

  1. Make the model callable through the matching Foolbox wrapper and state its input bounds before attacking. Include preprocessing and data format when they are not already native to the model.
  2. Keep images and labels batched. Labels are a 1-D integer tensor aligned with the first dimension of model outputs.
  3. Choose an untargeted label criterion (labels passed directly) or an explicit TargetedMisclassification(target_classes) criterion.
  4. Call an attack with epsilons=<float>, epsilons=<sequence>, or None only when that attack supports minimization without a fixed budget.
  5. Interpret (raw, clipped, success): clipped results obey the requested distance budget; success is a boolean mask of actual adversarial examples. For a sequence of epsilons, raw/clipped are lists and success has shape (K, N); for one scalar, outputs are tensors and success has shape (N,).
  6. Report clean accuracy, attack family, distance, epsilon(s), backend, and robust accuracy (1 - success.float32().mean(axis=-1)) together.

Scope and limitations

The CPU/NumPy route and black-box/noise attacks are covered by the local smoke and native verification plan. Framework gradient attacks, EOT over stochastic models, and pretrained example models remain backend- and often network- dependent; do not claim them verified merely because import foolbox works. The model-zoo route can clone repositories or download weights and must be explicitly approved before network or external-state operations.

Provenance

Before using version-sensitive behavior or refreshing this skill, read references/repo-provenance.md.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa-v2

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

ab3dmot

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 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-Skill3382026년 9월 3일 업데이트

acme

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

VectorSpaceLab의 스킬 모두 보기

이 스킬의 문제 신고