Video Watermark Removal — Detect Pipeline / 短剧滑动水印检测
Strictly reproducible snapshot of the sliding-watermark YOLOv8n detector used in a short-drama watermark removal pipeline (detect → track → mask).
Status (2026-10-22 Asia/Shanghai)
| Item | Value |
|---|---|
| Primary weights | detect_train_slide/runs/h100_wm_yolov8n_slide/weights/best.pt |
| Architecture | YOLOv8n, imgsz 640, batch 32 |
| Train hardware | NVIDIA H100 |
| Epochs | 26 / 30 (early stop patience=10) |
| Best epoch | 16 |
| Val mAP50 | 0.910 |
| Val mAP50-95 | 0.797 |
| Precision / Recall (best) | 0.898 / 0.876 |
| Wall time | ~0.16 h on H100 |
| Dataset | 3432 train / 480 val (55 continuous clips); dataset_slide.tar.gz (~521 MB) |
Classes: corner_logo | float_logo | float_text
Quick start
pip install -r requirements.txt
# extract sliding dataset
cd detect_train_slide && tar -xzf dataset_slide.tar.gz && cd ..
# infer with H100 best
yolo detect predict model=detect_train_slide/runs/h100_wm_yolov8n_slide/weights/best.pt \
source=sample.mp4 conf=0.35
Full train/infer steps: see REPRODUCE.md. Checksums: SHA256SUMS / MANIFEST.json.
Layout
- Root:
auto_mask_track*.py,precise_float_detect.py,sample.mp4,real_templates/ detect_train/: static synth baseline +bg_frames/+ CPU-era weightsdetect_train_slide/: sliding synth generator,dataset_slide.tar.gz, H100 run (primary)
Known gaps
- Synth motion is linear + sine drift along clip trajectories — real floaters can be more erratic / fade / morph.
- Old host geesefs (
/workspace~1P) was readable but writes hung; training used/dev/shm(volatile). Prefer local SSD on new machines. - Removal (inpaint) stage is not fully packaged here — this repo focuses on detect + tracking helpers.
License
MIT