Skip to content

Only the FIRST image will be processed in batch inputs  #30

@Ucag

Description

@Ucag

I use code below:

    pdf_images = load_file(test_path, config={"page_range": "0-2"})
    manager = InferenceManager(method="hf")
    inputs = [BatchInputItem(image=img, prompt_type="ocr_layout") for img in pdf_images]
    results = manager.generate(inputs)

Length of the results is 1 and only the first image is processed. The PDF file contains 10 pages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions