mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-24 01:29:57 +08:00
[Optimization] Deduplicate shared image/video utilities across VL processors (#6988)
* step1~3 * fix import path * 删除重复代码 * 删除重复代码 * 删除重复代码 * fix import path * update * fix import path * add unit test * fix * update * fix unit test
This commit is contained in:
@@ -22,14 +22,16 @@ from PIL import Image
|
||||
|
||||
from fastdeploy.input.ernie4_5_vl_processor.image_preprocessor.image_preprocessor_adaptive import (
|
||||
AdaptiveImageProcessor,
|
||||
make_batched_images,
|
||||
make_batched_videos,
|
||||
)
|
||||
from fastdeploy.input.image_processors.common import (
|
||||
ceil_by_factor,
|
||||
floor_by_factor,
|
||||
is_scaled_image,
|
||||
make_batched_images,
|
||||
make_batched_videos,
|
||||
round_by_factor,
|
||||
smart_resize,
|
||||
)
|
||||
from fastdeploy.input.image_processors.common import smart_resize_qwen as smart_resize
|
||||
|
||||
|
||||
class TestImagePreprocessorAdaptive(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user