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

attention-gated-networks

Guides Attention-Gated Networks PyTorch medical imaging workflows for ultrasound classification, attention-gated U-Net segmentation, data layout, CUDA setup, and visualization helpers.

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

설치 방법 보기

포함된 파일(20)

  • SKILL.md5.6 KB
  • references/package-overview.md4.7 KB
  • references/repo-provenance.md2.2 KB
  • references/repo-routing-metadata.json525 B
  • references/troubleshooting.md4.2 KB
  • scripts/check_env.py8.3 KB
  • sub-skills/classification/references/api-reference.md6.5 KB
  • sub-skills/classification/references/data-layout.md3.3 KB
  • sub-skills/classification/references/troubleshooting.md4.1 KB
  • sub-skills/classification/references/workflows.md5.0 KB
  • sub-skills/classification/scripts/export_attention_overlay.py8.4 KB
  • sub-skills/classification/scripts/run_classifier.py13.4 KB
  • sub-skills/classification/SKILL.md5.3 KB
  • sub-skills/segmentation/references/api-reference.md6.1 KB
  • sub-skills/segmentation/references/data-layout.md3.2 KB
  • sub-skills/segmentation/references/troubleshooting.md4.6 KB
  • sub-skills/segmentation/references/workflows.md4.1 KB
  • sub-skills/segmentation/scripts/run_segmentation.py7.6 KB
  • sub-skills/segmentation/scripts/validate_and_export_maps.py11.3 KB
  • sub-skills/segmentation/SKILL.md5.0 KB

SKILL.md(원문)

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

Attention-Gated Networks

Use this repo skill when a task involves the Attention-Gated-Networks PyTorch repository or its medical imaging workflows: ultrasound scan-plane classification, Sononet Grid Attention, Attention U-Net style segmentation, NIfTI/HDF5 data layouts, CUDA setup, and attention or feature-map visualization.

Start here

  • Read package-overview.md for package purpose, installation guidance, config families, generated helpers, and the CUDA policy.
  • Read troubleshooting.md for cross-cutting install/import, CUDA, Visdom, dependency, and config portability failures.
  • Read repo-provenance.md before deciding whether this skill is current for a checkout or before running a refresh.
  • Use repo-routing-metadata.json only for router/import metadata.
  • Run check_env.py after installation to verify imports, CUDA, and tiny model smokes.

Route map

User requestRead
Train, test, debug, or configure ultrasound scan-plane classificationclassification
Use Sononet, Sononet2, Sononet Grid Attention, aggregated classifier, or attention overlaysclassification
Arrange ultrasound HDF5 splits, labels, class weights, or samplersclassification data layout
Train, validate, or configure 2D/3D U-Net segmentation modelssegmentation
Use CT deep supervision, multi-attention U-Net, non-local blocks, or NIfTI outputssegmentation
Export 3D attention maps, feature maps, NIfTI predictions, or validation metricssegmentation workflows
Diagnose shared install, CUDA, dependency, or config issuestroubleshooting

Minimal install check

After installing the repository and dependencies, run:

python scripts/check_env.py --repo-root /path/to/Attention-Gated-Networks --mode all

If the package is installed and importable without a checkout on sys.path, the helper can still run from any working directory; --repo-root is only needed to point at a local checkout during development or editable installs.

Successful output should include import success, CUDA availability, a tiny classification output, an attention-classifier output, a tiny segmentation output, and check-env-ok.

Runtime and external inputs

The helpers require the repository checkout on --repo-root (or an installed AttentionGatedNetworks package) plus the legacy runtime dependencies listed in package-overview.md. Datasets and trained weights/checkpoints are external inputs; this skill does not fabricate or bundle them. Stock configs contain private historical /vol/... paths and must be copied with data_path.* and output/checkpoint paths overridden.

For a config supplied as a relative path, always pass --repo-root; the helper resolves the config from that root and any relative data path from the config's parent, never from the process cwd. Validate before running:

python scripts/check_env.py --repo-root /path/to/Attention-Gated-Networks \
  --config configs/config_sononet_grid_att_8.json --mode imports

This intentionally fails fast on private or missing data paths. The original train_classifaction.py also contains a 10-hour final-epoch sleep; it is left untouched as source evidence, while the bundled runner omits that hold.

Important defaults

  • Distribution: AttentionGatedNetworks version 1.0.
  • Import packages: models, dataio, utils.
  • Required backend for the selected workflows: CUDA. The unmodified wrappers call .cuda() for models and tensors.
  • Core dependencies: PyTorch, torchvision, torchsample, NumPy/SciPy, matplotlib, scikit-image, h5py, pandas, tqdm, Visdom, nibabel, scikit-learn, OpenCV, dominate, and SimpleITK for validation exports.
  • Configs contain historical machine-specific dataset paths; copy the field structure but replace paths and output directories before use.
  • Use the bundled scripts under this generated skill rather than hard-coded source visualization/validation scripts.

Bundled helpers

  • scripts/check_env.py: import, CUDA, classification, attention-classifier, and segmentation smoke checks.
  • sub-skills/classification/scripts/run_classifier.py: training/testing replacement for classification workflows.
  • sub-skills/classification/scripts/export_attention_overlay.py: safe attention overlay export for grid-attention classifiers.
  • sub-skills/segmentation/scripts/run_segmentation.py: training replacement for segmentation workflows.
  • sub-skills/segmentation/scripts/validate_and_export_maps.py: validation, NIfTI export, and feature/attention-map helper.

Avoid when

Do not use this skill for unrelated modern MONAI/nnU-Net/TorchIO workflows unless the task explicitly names Attention-Gated Networks or needs to port ideas from this repository. Do not use it as proof that CPU-only execution works; the selected repo workflows were verified as CUDA-required.

리뷰

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

댓글

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

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

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

0 / 1,000자

이 양식은 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의 스킬 모두 보기

이 스킬의 문제 신고