Skip to content

feat: add batch-size parameter and garbage collection#89

Merged
wangbinDL merged 1 commit intoopendatalab:mainfrom
jorgeolothar:main
Aug 27, 2024
Merged

feat: add batch-size parameter and garbage collection#89
wangbinDL merged 1 commit intoopendatalab:mainfrom
jorgeolothar:main

Conversation

@jorgeolothar
Copy link
Copy Markdown
Contributor

GPU memory use in the layout and formula detection loop increases without being released. This can cause out of CUDA memory errors in large documents. Added garbage collection after each image prediction.

Also added a batch-size parameter, to give some command line flexibility for GPUs with smaller RAM sizes.

@wangbinDL
Copy link
Copy Markdown
Member

LGTM

@wangbinDL wangbinDL closed this Aug 27, 2024
@wangbinDL wangbinDL reopened this Aug 27, 2024
@wangbinDL wangbinDL merged commit d4e9f3a into opendatalab:main Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants