Skip to content

Commit

Permalink
fix inference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aria-hacker committed Oct 3, 2024
1 parent 99b879c commit c200b2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aria/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def parse_arguments():
)
parser.add_argument(
"--split_image",
type=bool,
help="Whether to split the image into patches",
action="store_true",
default=False,
Expand Down Expand Up @@ -124,7 +123,7 @@ def inference(

for i in range(inputs["input_ids"].shape[0]):
prompt_len = len(inputs["input_ids"][i])
output_text = tokenizer.decode(
output_text = processor.tokenizer.decode(
output[i][prompt_len:], skip_special_tokens=True
).replace("<|im_end|>", "")

Expand Down

0 comments on commit c200b2a

Please sign in to comment.