Flow Gym
Francesco Banelli, Antonio Terpin, Alan Bonomi, Raffaello D'Andrea
TL;DR
Flow Gym presents a unified, RL-inspired framework for flow-field quantification that combines a FluidEnv deployment-style environment with a flexible Estimator interface, enabling both learning-based and classical estimators to be trained, evaluated, and benchmarked on SynthPix-generated images. The core architecture is implemented in JAX and designed to support both consecutive and independent estimation, with extensible pre-processing, processing, and post-processing pipelines and interoperability with OpenCV and PyTorch methods. Key contributions include the FluidEnv and Estimator abstractions, a config-driven deployment workflow, and wrappers around existing PIV technologies to facilitate fair comparisons and large-scale training with minimal storage. This framework aims to standardize, accelerate, and scale research and real-time applications in flow-field quantification, bridging the gap between algorithmic development and deployment.
Abstract
Flow Gym is a toolkit for research and deployment of flow-field quantification methods inspired by OpenAI Gym and Stable-Baselines3. It uses SynthPix as synthetic image generation engine and provides a unified interface for the testing, deployment and training of (learning-based) algorithms for flow-field quantification from a number of consecutive images of tracer particles. It also contains a growing number of integrations of existing algorithms and stable (re-)implementations in JAX.
