Repository navigation
添加配置验证和动态调整,添加批量处理和性能优化 - #4185
Merged
Merged
Conversation
donghaiwang
approved these changes
Dec 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改概述:
修改的详细描述
类型注解修复:将 tuple[bool, List[str]] 改为 Tuple[bool, List[str]]
导入typing模块:添加了必要的类型导入
条件导入yaml:添加了对PyYAML的可选支持
属性检查:在 merge_args 方法中添加了 hasattr 检查,确保参数存在
保持向后兼容:保留了原始的函数接口
data_validator.py
优化点:
增加验证过程的进度显示
添加更多验证规则(如图像分辨率、文件命名规范等)
优化验证性能,使用多线程或异步IO(由于GIL,这里使用线程池加速文件读取)
增加验证报告的详细程度
sensor_enhancer.py
优化点:
优化图像增强算法的性能,使用OpenCV加速
增加内存管理,避免大图像处理时的内存溢出
增加更多增强方法,并调整现有方法的参数
经过了什么样的测试?
运行效果
动图、视频、截图等
