mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-04-14 19:31:57 +02:00
predictor: disable rebatching (until we have flexible batch sizes)
This commit is contained in:
parent
219954d15b
commit
f44c39667e
1 changed files with 2 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ class Predictor(mp.context.SpawnProcess):
|
||||||
"binarization": 4,
|
"binarization": 4,
|
||||||
"enhancement": 4,
|
"enhancement": 4,
|
||||||
"reading_order": 4,
|
"reading_order": 4,
|
||||||
# medium size (672x672)...
|
# medium size (672x672x3)...
|
||||||
"textline": 2,
|
"textline": 2,
|
||||||
# large models...
|
# large models...
|
||||||
"table": 1,
|
"table": 1,
|
||||||
|
|
@ -119,6 +119,7 @@ class Predictor(mp.context.SpawnProcess):
|
||||||
"region_fl_np": 1,
|
"region_fl_np": 1,
|
||||||
"region_fl": 1,
|
"region_fl": 1,
|
||||||
}.get(self.name, 1)
|
}.get(self.name, 1)
|
||||||
|
REBATCH_SIZE = 1 # save VRAM; FIXME: re-enable w/ runtime parameter
|
||||||
if not len(shared_data):
|
if not len(shared_data):
|
||||||
#self.logger.debug("getting '%d' output shape of model '%s'", jobid, self.name)
|
#self.logger.debug("getting '%d' output shape of model '%s'", jobid, self.name)
|
||||||
result = self.model.output_shape
|
result = self.model.output_shape
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue