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

bi-ref-net

Route BiRefNet image segmentation, matting, inference, configuration, training, evaluation, and model-export workflows.

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

연동 도구Hugging Face
설치 방법 보기

포함된 파일(30)

  • SKILL.md5.8 KB
  • references/environment-and-install.md4.1 KB
  • references/repo-provenance.md2.6 KB
  • references/repo-routing-metadata.json323 B
  • references/troubleshooting.md4.1 KB
  • scripts/check_birefnet_environment.py7.4 KB
  • sub-skills/configuration-and-data/references/configuration.md4.2 KB
  • sub-skills/configuration-and-data/references/data-formats.md3.3 KB
  • sub-skills/configuration-and-data/references/troubleshooting.md3.0 KB
  • sub-skills/configuration-and-data/scripts/birefnet_config_summary.py7.0 KB
  • sub-skills/configuration-and-data/scripts/birefnet_dataset_check.py10.6 KB
  • sub-skills/configuration-and-data/SKILL.md3.1 KB
  • sub-skills/inference-and-postprocessing/references/inference-workflows.md4.3 KB
  • sub-skills/inference-and-postprocessing/references/troubleshooting.md3.3 KB
  • sub-skills/inference-and-postprocessing/references/video-workflows.md2.0 KB
  • sub-skills/inference-and-postprocessing/scripts/birefnet_image_infer.py18.7 KB
  • sub-skills/inference-and-postprocessing/scripts/birefnet_refine_smoke.py3.6 KB
  • sub-skills/inference-and-postprocessing/SKILL.md3.1 KB
  • sub-skills/model-architecture/references/api-reference.md6.9 KB
  • sub-skills/model-architecture/references/backbones-and-architecture.md8.6 KB
  • sub-skills/model-architecture/references/onnx-and-export-notes.md5.6 KB
  • sub-skills/model-architecture/references/troubleshooting.md6.6 KB
  • sub-skills/model-architecture/scripts/birefnet_model_probe.py11.5 KB
  • sub-skills/model-architecture/SKILL.md3.5 KB
  • sub-skills/training-and-evaluation/references/evaluation-workflows.md2.9 KB
  • sub-skills/training-and-evaluation/references/metrics-reference.md3.3 KB
  • sub-skills/training-and-evaluation/references/training-workflows.md4.1 KB
  • sub-skills/training-and-evaluation/references/troubleshooting.md4.1 KB
  • sub-skills/training-and-evaluation/scripts/birefnet_metric_smoke.py11.0 KB
  • sub-skills/training-and-evaluation/SKILL.md2.6 KB

SKILL.md(원문)

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

BiRefNet Repo Skill

Use this skill when a task involves BiRefNet / BiRefNet-style high-resolution binary image segmentation, background removal, dichotomous image segmentation, camouflaged object detection, salient object detection, or trimap-free matting.

BiRefNet is a source-code-first PyTorch repository plus Hugging Face model-family workflow. Prefer self-contained instructions and bundled helpers here instead of reopening the original repository notebooks or shell scripts.

First checks

  1. Read references/repo-provenance.md when checking whether this skill matches a checkout or before refreshing it.
  2. Read references/environment-and-install.md before installing dependencies, choosing CPU/CUDA, or using the Hugging Face one-line model path.
  3. Run scripts/check_birefnet_environment.py when you need a safe dependency/import/backend probe.
  4. Use references/troubleshooting.md for cross-cutting install, import, backend, data, and model-asset failures.

Minimal source-code inspection check for a checkout:

python scripts/check_birefnet_environment.py --repo-root /path/to/BiRefNet --check-source

Minimal dependency-only check:

python scripts/check_birefnet_environment.py

Route map

  • Use configuration-and-data when the task is about Config, tasks/testsets, dataset roots, im/gt layout, dynamic size, loss/backbone knobs, or preflight data validation.
  • Use model-architecture when the task is about BiRefNet, backbones, decoder flags, checkpoint key cleanup, weight compatibility, Hugging Face loading choices, or ONNX/export planning.
  • Use inference-and-postprocessing when the task is about image/video inference, masks, foreground refinement, alpha/comparison outputs, device selection, or adapting the notebook inference flow.
  • Use training-and-evaluation when the task is about fine-tuning, train.py/launcher semantics, checkpoints/resume epochs, metrics, eval_existingOnes.py, or best-epoch selection.

Common task routing

User asks for...Go to
"How do I format custom data for BiRefNet?"configuration-and-data
"Which config fields change task, backbone, size, or losses?"configuration-and-data plus model-architecture
"Load a BiRefNet checkpoint or fix state-dict key mismatches"model-architecture
"Run background removal on images or save masks/foregrounds"inference-and-postprocessing
"Process videos with BiRefNet"inference-and-postprocessing
"Fine-tune from existing weights"training-and-evaluation plus configuration-and-data
"Evaluate predictions or choose the best epoch"training-and-evaluation
"Convert to ONNX or plan deployment"model-architecture with inference constraints from inference-and-postprocessing

Verification-friendly helpers

Use these bundled scripts before recommending expensive work:

  • scripts/check_birefnet_environment.py --check-source --repo-root <checkout> checks dependencies, source imports, torch backend visibility, state-dict prefix cleanup, and patch helpers.
  • sub-skills/configuration-and-data/scripts/birefnet_dataset_check.py checks custom dataset im/gt pairing without training.
  • sub-skills/model-architecture/scripts/birefnet_model_probe.py verifies checkpoint-prefix cleanup and can instantiate BiRefNet(bb_pretrained=False) when memory is acceptable.
  • sub-skills/inference-and-postprocessing/scripts/birefnet_image_infer.py --dry-run plans image mask outputs without loading model weights.
  • sub-skills/training-and-evaluation/scripts/birefnet_metric_smoke.py verifies metric dependencies with tiny masks.

When not to use this skill

Do not use this skill as the primary guide for SAM, YOLO, Detectron2, MMSegmentation, or another segmentation package unless the user is specifically comparing those tools to BiRefNet. Do not use it for generic PyTorch training advice that does not involve BiRefNet config, checkpoints, data layout, or metrics. Use a deployment-specific skill when the user asks primarily about TensorRT, GGUF, web APIs, or a third-party serving platform rather than BiRefNet itself.

Dependency and backend stance

  • The repository documents Python 3.11 and pip install -r requirements.txt with PyTorch >= 2.5.0.
  • CPU is enough for import checks, config/data validation, metric smoke tests, patch-helper probes, and CPU foreground refinement.
  • Practical full-resolution inference, GPU refinement, DDP/Accelerate training, and ONNX GPU conversion are CUDA-sensitive. Do not claim they are locally verified unless you run an explicit backend check with model/data assets.
  • The README's AutoModelForImageSegmentation.from_pretrained(..., trust_remote_code=True) path requires transformers, which is not listed in the repository requirements file.

Self-containment rules

  • Use bundled references/scripts instead of telling future agents to open source notebooks or shell scripts.
  • When a helper needs source modules, pass an explicit --repo-root for the user's current BiRefNet checkout or use a Hugging Face model path; never depend on the checkout that produced this skill.
  • Do not run long training, model/data downloads, Slurm jobs, cleanup scripts, or ONNX conversion unless the user explicitly provides assets, hardware, and approval.

리뷰

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

댓글

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

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

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. 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의 스킬 모두 보기

이 스킬의 문제 신고