Comments (5)
在builders/label_map_builder.py里面,原始默认设置值所有可打印的ASCII字符:
elif config.built_in_set == label_map_pb2.CharacterSet.ALLCASES_SYMBOLS:
character_set = list(string.printable[:-6])
最终得到了character_set:
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', ':', ';', '<', '=', '>', '?', '@', '[', '\', ']', '^', '_', '`', '{', '|', '}', '~']
from aster.
在builders/label_map_builder.py里面,原始默认设置值所有可打印的ASCII字符:
elif config.built_in_set == label_map_pb2.CharacterSet.ALLCASES_SYMBOLS:
character_set = list(string.printable[:-6])
最终得到了character_set:
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', ':', ';', '<', '=', '>', '?', '@', '[', '', ']', '^', '_', '`', '{', '|', '}', '~']
请问如果训练中文的话,怎么修改呢?
from aster.
@xiaoaoran 可以将label映射为index的形式,用数字表示中文,因为core/label_map里面其实也是把字符转换为数字进行训练的
from aster.
@NK-Hubert 你训练过吗,这样子可以吗
from aster.
@NK-Hubert 你好,请问只有数字和小数点,具体应该怎么改
from aster.
Related Issues (20)
- Error occered When i execute train.py: trainval.prototxt; No such file or directory HOT 1
- can not build the protobuf files HOT 2
- Testing speed is slow HOT 1
- cuda and cudnn HOT 1
- Disable the rectification network HOT 2
- tensorflow.python.framework.errors_impl.NotFoundError HOT 3
- ValueError: Unsupported input_reader_config: None
- Didn't manage to run eagerly
- Get character level confidence score HOT 2
- Migration to TF 2.0 HOT 2
- 说实话,demo真的烂 HOT 3
- does this work run on windows HOT 1
- ModuleNotFoundError: No module named 'aster' HOT 2
- cannot import name 'pipeline_pb2'
- make: *** No targets specified and no makefile found. Stop.
- which model has less inference time tensorflow or pytorch ? can any one share the inference time here .
- About pretrain model
- CANNOT EXECUTE demo.py HOT 2
- convert Aster to tensorflow serving? HOT 2
- 运行 train.py or demo.py 出现以下错误 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aster.