[llava] one pixel is missing from padding when length is odd (#37819)
* [fix] one pixel should be added when length is odd * [fix] add vision_aspect_ratio args & typo * [fix] style * [fix] do not fix fast file directly * [fix] convert using modular * remove duplicate codes * match unpad logic with pad logic * test odd-sized images for llava & aria * test unpad odd-sized padding for llava family * fix style * add kwarg to onvision modular * move vision_aspect_ratio from image_processor to processor (llava_onevision)
This commit is contained in:
7
setup.py
7
setup.py
@@ -466,7 +466,12 @@ setup(
|
||||
package_data={"": ["**/*.cu", "**/*.cpp", "**/*.cuh", "**/*.h", "**/*.pyx", "py.typed"]},
|
||||
zip_safe=False,
|
||||
extras_require=extras,
|
||||
entry_points={"console_scripts": ["transformers=transformers.commands.transformers_cli:main", "transformers-cli=transformers.commands.transformers_cli:main_cli"]},
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
"transformers=transformers.commands.transformers_cli:main",
|
||||
"transformers-cli=transformers.commands.transformers_cli:main_cli",
|
||||
]
|
||||
},
|
||||
python_requires=">=3.9.0",
|
||||
install_requires=list(install_requires),
|
||||
classifiers=[
|
||||
|
||||
Reference in New Issue
Block a user