Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
本指南面向 DLCv3-WebUI-Pytorch 贡献者,概述项目结构、常用命令与交付标准。Follow the sections below to keep every pull request focused, testable, and review-friendly。
Sign in to like and favorite skills
本指南面向 DLCv3-WebUI-Pytorch 贡献者,概述项目结构、常用命令与交付标准。Follow the sections below to keep every pull request focused, testable, and review-friendly。
Home.py 启动本地 Streamlit,适合快速验证 UI 交互与推理流程。pages/ 目录以数字前缀组织页面,例如 pages/1_Mouse_Scratch.py,保持导航顺序与命名清晰。src/core/:processing/ 负责姿态管线,helpers/ 与 utils/ 存放复用逻辑,gpu/ 提供可选 CUDA 加速,config/ 与 logging/ 统一配置输出。src/ui/;测试集合在 tests/ 与 tests/unit/,文档位于 docs/;运行数据分别归档至 data/、models/、logs/。__init__.py 暴露最小 API,避免跨层依赖。python -m venv .venv && source .venv/bin/activate:创建隔离环境,确保版本一致性。pip install -r requirements.txt 安装 runtime 依赖;pip install -e .[dev] 提供 lint、test、type-check 工具。streamlit run Home.py 打开主界面;streamlit run pages/<file>.py 可聚焦某一页面调试。pytest --cov=src --cov-report=term-missing 执行测试并显示缺失覆盖率;必要时追加 -k pattern 精准运行子集。black . && isort . && flake8 自动格式化并执行静态检查;mypy src 确保类型签名完整。数字_描述.py 模式。test_*.py;保持单测原子化,通过 fixtures 或 fake 对象隔离 GPU、I/O(参考 tests/unit/test_gpu_utils.py)。pyproject.toml 配置;若 term-missing 指向关键路径,请补充 case 或解释原因。pytest 与 mypy,确认 CPU-only 环境能够通过全部断言。feat: add scratch refinement pipeline 或 fix: guard gpu fallback。pytest、black/isort/flake8、mypy 全部通过,并根据需要更新 docs/ 与相关测试。Fixes #id)并列出潜在风险或后续计划,帮助维护者安排发布。src/core/config/config.yaml 仅为样例,实际秘钥放入本地忽略文件或环境变量。data/、models/,不要纳入 Git;logs/ 输出应在 .gitignore 控制范围内。git pull --rebase 保持分支同步,避免后续冲突;完成功能后使用 git status 与 git diff 自查更改范围。