mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-03-13 02:31:56 +01:00
character list only needs be copied for cnn-rnn ocr model
This commit is contained in:
parent
ae3b6916ee
commit
4b80e45d91
1 changed files with 4 additions and 1 deletions
|
|
@ -136,7 +136,10 @@ def run_ensembling(dir_models, out, framework):
|
||||||
model.set_weights(new_weights)
|
model.set_weights(new_weights)
|
||||||
model.save(out)
|
model.save(out)
|
||||||
os.system('cp '+os.path.join(os.path.join(dir_models,model_name) , "config_eynollah.json ")+out)
|
os.system('cp '+os.path.join(os.path.join(dir_models,model_name) , "config_eynollah.json ")+out)
|
||||||
os.system('cp '+os.path.join(os.path.join(dir_models,model_name) , "characters_org.txt ")+out)
|
try:
|
||||||
|
os.system('cp '+os.path.join(os.path.join(dir_models,model_name) , "characters_org.txt ")+out)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
@click.option(
|
@click.option(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue