Skip to content

Commit

Permalink
fix split ratio for VLLM backend
Browse files Browse the repository at this point in the history
  • Loading branch information
aria-hacker committed Oct 4, 2024
1 parent 279ddbd commit 19f2ca9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion aria/vllm/aria.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,14 +902,25 @@ def split_image(
image: Image.Image,
split_image: bool,
split_ratio: List[List[int]] = [
[1, 1],
[1, 2],
[1, 3],
[1, 4],
[1, 5],
[1, 6],
[1, 7],
[1, 8],
[2, 4],
[2, 3],
[2, 2],
[2, 1],
[3, 1],
[3, 2],
[4, 1],
[4, 2],
[5, 1],
[6, 1],
[7, 1],
[8, 1],
],
patch_size: int = 980,
) -> List[Image.Image]:
Expand Down

0 comments on commit 19f2ca9

Please sign in to comment.