Search arXiv⌕ Search

arXiv subjects

HaoYuan Ma

Publications and source records attributed to HaoYuan Ma.

2 recordsLinked to original sources

DreamCount: Imagine Before You Count

Text-guided open-vocabulary object counting (TOOC) methods perform well in familiar domains but struggle when the requested counting unit changes, when targets change in appearance, or when they blend into the background. A target state derived from text may only partly capture the target content (the category and intended counting unit) or the target's appearance in a particular image. We propose DreamCount, a model-agnostic framework for adapting a counting model's target state to the query and the image. Latent Dream generates target prototypes from Gaussian noise through conditional flow matching, using both text and image context. Lucid Guidance amplifies the difference between the text-conditioned and null-text velocities while keeping the image context fixed. Refine then adapts the prototypes to the observed target appearance using local visual evidence. We also introduce PolyCount, WaterCount, and CamoCount to evaluate granularity shifts, underwater appearance changes, and camouflage. Across five open-vocabulary hosts, DreamCount lowers mean absolute error (MAE) relative to the host baselines on the FSC-147 test split, on CARPK, and on all three new benchmarks. The largest reduction is 72.0% for CountSE on CARPK. On REC-8K, it reduces test MAE by 5.0% and 4.0% for GroundingREC and CAD-GD, respectively. An interactive demo accompanies this preprint.

cs.CV↗

Count Once, Carry Through: A Training-Free Framework for Numerically Aligned Text-to-Video Generation

Text-to-video diffusion models often struggle to generate the specified number of objects and maintain that count throughout a video. A key challenge is that count estimates are less reliable early in denoising, whereas the global layout is already difficult to revise in later steps. We introduce OTC (Observe, Think, and Carry), a training-free framework that separates numerically aligned anchor generation from temporal propagation. Observe identifies instances in a draft anchor latent by associating self-attention clusters with object categories through cross-attention. Think performs localized edits and verifies their outcomes by recounting. Carry uses the resulting numerical anchor latent as a spatial reference during video generation. Carry Guidance (Carry-CFG) combines text guidance with the contrast between predictions conditioned on the clean anchor and its re-noised counterpart, allocating stronger anchor guidance to instance regions. Experiments on CountBench across four video diffusion backbones show average gains of 9.0 and 6.6 percentage points in counting accuracy and temporal count consistency, respectively, over the corresponding base configurations. Under the same evaluation settings, OTC also outperforms NUMINA.

cs.CV↗