算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
inference-visualization【设计与创意】Use MMDetection 3.3.0 public APIs for image, batch, folder, NumPy-array, video, large-image, visualization, prediction-dump, and deployment-route inference tasks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to run MMDetection inference, save predictions or visualizations, process arrays/videos/large images, or choose a deployment path. For config/model-zoo selection route to configuration-model-zoo; for training/testing route to training-testing; for dataset conversion and metrics route to datasets-evaluation.
mmdet.apis.DetInferencer; see references/api-reference.md and references/workflows.md.scripts/mmdet_infer_image.py for safe argparse around DetInferencer.return_datasamples=True or init_detector + inference_detector; see references/api-reference.md.out_dir, no_save_pred, and no_save_vis deliberately; see references/workflows.md.references/workflows.md.references/deployment.md.references/troubleshooting.md before debugging package, device, GUI, checkpoint, or ABI errors.from mmdet.apis import DetInferencer
inferencer = DetInferencer(model='rtmdet_tiny_8xb32-300e_coco', device='cpu')
result = inferencer('images/', batch_size=4, out_dir='outputs', no_save_pred=False, no_save_vis=True)
import mmcv
from mmdet.apis import init_detector, inference_detector
model = init_detector('config.py', 'checkpoint.pth', device='cpu')
image_bgr = mmcv.imread('image.jpg')
sample = inference_detector(model, image_bgr)
python scripts/mmdet_infer_image.py \
image_or_folder rtmdet_tiny_8xb32-300e_coco --device cpu \
--out-dir outputs --no-save-vis --save-pred
The helper uses public package APIs only and is safe for image files, image folders, model aliases, config files, local checkpoint files, and open-vocabulary prompt parameters supported by MMDetection.