enable_static to export_model
This commit is contained in:
parent
0045e0894f
commit
f2c35f55a2
|
@ -15,6 +15,7 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
from ppocr.utils.utility import enable_static_mode
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -43,7 +44,6 @@ logger = initial_logger()
|
||||||
from ppocr.utils.save_load import init_model
|
from ppocr.utils.save_load import init_model
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
startup_prog, eval_program, place, config, _ = program.preprocess()
|
startup_prog, eval_program, place, config, _ = program.preprocess()
|
||||||
|
|
||||||
|
@ -72,4 +72,5 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
enable_static_mode()
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue