We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b8e941 commit 1323d9dCopy full SHA for 1323d9d
vllm/benchmarks/datasets.py
@@ -547,10 +547,11 @@ def get_image_sampling_params(
547
limit_images_per_prompt)
548
# ensure min num images is zero
549
min_num_images = max(int(num_images * (1 - num_images_range_ratio)), 0)
550
- # assert min_num_images <= max_num_images
551
- assert min_num_images <= max_num_images, (
552
- "min_num_images must be <= max_num_images"
553
- )
+ # raise error if min_num_images > max_num_images
+ if min_num_images > max_num_images:
+ raise ValueError(
+ "min_num_images must be <= max_num_images"
554
+ )
555
# Enforce dimension_range_ratio < 1
556
assert dimension_range_ratio < 1.0, (
557
"dimension_range_ratio must be < 1.0 to ensure a valid sampling "
0 commit comments