Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
## Installation

```bash
pip install mmdet==${{ steps.get_version.outputs.version }}
pip install visdet==${{ steps.get_version.outputs.version }}
```

## Documentation
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Run tests with coverage
if: matrix.python-version == '3.14'
run: uv run pytest --cov=mmdet --cov-report=term-missing --cov-report=xml --ignore tests/test_modal_coco_training_on_modal.py
run: uv run pytest --cov=visdet --cov-report=term-missing --cov-report=xml --ignore tests/test_modal_coco_training_on_modal.py

- name: Upload coverage to Codecov
if: matrix.python-version == '3.14'
Expand Down
2 changes: 1 addition & 1 deletion docs/yaml_config_system.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ python tools/convert_config.py \
Run the test suite to verify the YAML system:

```bash
python scripts/test_yaml_simple.py
python scripts/test_yaml_config.py
```

This tests:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ addopts = "-v --tb=short --strict-markers"
norecursedirs = ["archive", ".git", ".venv", "build", "dist"]

[tool.coverage.run]
source = ["mmdet"]
source = ["visdet"]
omit = ["*/tests/*", "*/test_*.py"]

[tool.coverage.report]
Expand Down
33 changes: 23 additions & 10 deletions scripts/generate_model_zoo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Generate comprehensive model zoo documentation from config READMEs."""

import argparse
import re
from pathlib import Path
from typing import Dict, List, Tuple
Expand Down Expand Up @@ -185,18 +186,17 @@ def generate_model_zoo_page() -> str:
[
"## Using Pre-trained Models",
"",
"To use any pre-trained model from the model zoo:",
"To train with a preset from the model zoo:",
"",
"```python",
"from mmdet.apis import init_detector, inference_detector",
"from visdet import SimpleRunner",
"",
"# Load model",
"config_file = 'configs/models/faster_rcnn_r50.yaml'",
"checkpoint_file = 'checkpoints/faster_rcnn_r50_fpn_1x_coco.pth'",
"model = init_detector(config_file, checkpoint_file, device='cuda:0')",
"",
"# Run inference",
"result = inference_detector(model, 'demo/demo.jpg')",
"runner = SimpleRunner(",
" model='mask_rcnn_swin_s',",
" dataset='coco_instance_segmentation',",
" epochs=12,",
")",
"runner.train()",
"```",
"",
"## Training Custom Models",
Expand All @@ -213,12 +213,25 @@ def generate_model_zoo_page() -> str:
return "\n".join(lines)


def parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(description="Generate model-zoo documentation page.")
parser.add_argument(
"--output",
default="docs/model-zoo.md",
help="Output markdown path (default: docs/model-zoo.md)",
)
return parser.parse_args()


if __name__ == "__main__":
args = parse_args()

# Generate the page
content = generate_model_zoo_page()

# Write to docs
output_path = Path("mkdocs_docs/model-zoo.md")
output_path = Path(args.output)
output_path.parent.mkdir(parents=True, exist_ok=True)
output_path.write_text(content)

print(f"✓ Generated model zoo documentation: {output_path}")
Expand Down
221 changes: 0 additions & 221 deletions scripts/test_presets_simple.py

This file was deleted.

Loading