Commit b1dba87
authored
fix: memory leak on chipper processor, beam search parameters, and bbox bug (#258)
This PR intends to solve the following issues:
* Memory leak in DonutProcessor when using large images in numpy format
* Use the right settings for beam search size > 1
* Solve a bug that in very rare cases made the last element predicted by
Chipper to have a bbox = None1 parent 63eecdf commit b1dba87
File tree
3 files changed
+11
-8
lines changed- unstructured_inference
- models
3 files changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 | | |
2 | 8 | | |
3 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 152 | + | |
156 | 153 | | |
157 | 154 | | |
158 | 155 | | |
| |||
177 | 174 | | |
178 | 175 | | |
179 | 176 | | |
180 | | - | |
| 177 | + | |
181 | 178 | | |
182 | | - | |
| 179 | + | |
183 | 180 | | |
184 | 181 | | |
185 | 182 | | |
| |||
304 | 301 | | |
305 | 302 | | |
306 | 303 | | |
307 | | - | |
| 304 | + | |
308 | 305 | | |
309 | 306 | | |
310 | 307 | | |
| |||
0 commit comments