Views
No views yet
chungus_1cls_best.pt)swinv2_384_best.pt)scripts/run_video.sh)scripts/run_video.shbash scripts/run_video.sh /path/to/video.mp4 [optional_out_dir]$1 (required): video file path$2 (optional): output directory (defaults to runs/video_YYYYmmdd_HHMMSS)CONFIG=/path/to/config.json to use a different mode configscripts/run_images.shbash scripts/run_images.sh /path/to/images_dir [optional_out_dir]$1 (required): folder containing images (.jpg/.jpeg/.png/.bmp/.webp)$2 (optional): output directoryCONFIG=/path/to/config.json to use a different mode configscripts/run_from_config.pyscripts/run_from_config.py --config config/mode_video_default.json --video-input /path/to/video.mp4scripts/run_from_config.py --config config/mode_video_default.json --images-dir /path/to/images--config (required): mode config JSON--video-input (required for video mode): input video path--images-dir (required for image mode): image-folder path--out-dir (optional): explicit output folder--skip-convert (optional flag): skip dive convert and dive verify-dive-json--max-images (optional): runtime override for max frames/images processed--video-input or --images-dir.scripts/fetch_weights.shbash scripts/fetch_weights.shweights.*.hf_url and weights.*.local from configCONFIG=/path/to/config.json to fetch from a different confignumpytorchultralyticstimmtorchvisionopencv-pythonPillowpyyamlpython -m pip install numpy torch ultralytics timm torchvision opencv-python Pillow pyyamldive CLI is required only when conversion/verification is enabled.dive is unavailable, run with --skip-convert.config/mode_video_default.json:paths.python: Python executable for your environmentpaths.infer_script: path to infer_cascade_yolo_swin_to_viame.pypaths.dive_bin: dive binary name/pathweights.*.local: local weight pathsweights.*.hf_url: remote weight URLsconfig/mode_video_default.json under runtime and video.runtime.conf: detector confidence threshold (default 0.1 for reported comparison)runtime.imgsz: detector inference size (higher = more compute, often better recall)runtime.yolo_batch: detector batch sizeruntime.cls_batch: classifier batch sizeruntime.max_images: cap on total processed frames/images (0 = no cap)video.fps_sample: sampling rate for video frame extractionruntime.yolo_batch=1runtime.cls_batch=2 to 4runtime.imgsz (for example 960)video.fps_sample if throughput is lowruntime.yolo_batch=1runtime.cls_batch=8 to 16runtime.imgsz=1280 if memory allowsruntime.cls_batch firstruntime.yolo_batch to 2 if stableruntime.conf=0.1 if you want comparability with card metricsruntime.left_xmin, runtime.left_xmaxruntime.right_xmin, runtime.right_xmaxruntime.roi_ymin, runtime.roi_ymaxruntime.merge_iouruntime.class_thresholds (format: king=...,queen=...,dead=...,not_a_scallop=...)scallop_lr_teacher_1280_v2_heldout_4cls test subset.conf=0.1.argmax(softmax_prob[class] / class_threshold[class]),king=0.1, queen=0.7, dead=0.14, not_a_scallop=1.0.| Metric | Value |
|---|---|
| King F1 | 0.541 |
| Queen F1 | 0.773 |
| Dead F1 | 0.459 |
| Macro F1 (K/Q/D) | 0.591 |
| Source | king F1 | queen F1 | dead F1 | Macro F1 (K/Q/D) | Detector P | Detector R |
|---|---|---|---|---|---|---|
| Cascade conf=0.1 + normalized weighted argmax (this card) | 0.541 | 0.773 | 0.459 | 0.591 | 0.649 | 0.660 |
| Chungus 4cls detector-only baseline | 0.392 | 0.633 | 0.364 | 0.463 | 0.602 | 0.478 |
conf=0.1.0.350.8520.9920.917config/mode_video_default.json: default runtime modescripts/run_video.sh: one-command entrypointscripts/run_from_config.py: config runnerscripts/fetch_weights.sh: HF weight fetch helperexperimental/with_viame/cascade_teacher_yolo_swin.pipe: experimental VIAME/KWIVER pipeline scaffoldexperimental/with_viame/README.md: outstanding requirements for drop-in DIVE compatibilityweights/chungus_1cls_best.pt (local optional cache, ignored by git)weights/swinv2_384_best.pt (local optional cache, ignored by git)experimental/with_viame/cascade_teacher_yolo_swin.pipeexperimental/with_viame/README.md.pipe is intentionally marked experimental and is not guaranteed drop-in across all VIAME builds.numpytorchultralyticstimmtorchvisionopencv-pythonPillowpyyamldive) for optional conversion/verify.bash scripts/run_video.sh /path/to/video.mp4bash scripts/run_video.sh /path/to/video.mp4 /path/to/output_dirbash scripts/run_images.sh /path/to/images_dirbash scripts/run_images.sh /path/to/images_dir /path/to/output_dir