use Float instead of Number for downsample_ratio