character list only needs be copied for cnn-rnn ocr model

This commit is contained in:
vahidrezanezhad 2026-03-03 13:20:22 +01:00
parent ae3b6916ee
commit 4b80e45d91

View file

@ -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(