# Device: [gpu:0, cpu:0] The default device is GPU. # - requirement.txt - GPU: tensorflow-gpu, CPU: tensorflow # - If you use the GPU version, you need to install some additional applications. # TrainRegex and TestRegex: Default matching apple_20181010121212.jpg file. # TrainsPath and TestPath: The local absolute path of your training and testing set. System: NeuralNet: 'CNNNet' Device: 'cpu:0' DeviceUsage: 0.9 TrainsPath: 'D:\train\1\' TrainRegex: '.*?(?=_.*\.)' TestPath: 'D:\train\2\' TestRegex: '.*?(?=_.*\.)'
# SavedStep: A Session.run() execution is called a Step, # - Used to save training progress, Default value is 100. # TestNum: The number of samples for each test batch. # - A test for every saved steps. # CompileAcc: When the accuracy reaches the set threshold, # - the model will be compiled together each time it is archived. # - Available for specific usage scenarios. # EndAcc: Finish the training when the accuracy reaches [EndAcc*100]%. # EndStep: Finish the training when the step is greater than the [-1: Off, EndStep >0: On] step. # LearningRate: Find the fastest relationship between the loss decline and the learning rate. Trains: SavedStep: 100 TestNum: 500 CompileAcc: 0.9 EndAcc: 0.95 EndStep: -1 LearningRate: 0.001
model.yaml
# Convolution: The number of layers is at least 3. # - The number below corresponds to the size of each layer of convolution. # Provide flexible neural network construction, # Adjust the neural network structure that suits you best # [Convolution, Pool, Optimization: {Dropout}] CNNNet: Layer: - Convolution: 32 - Pool: [1, 2, 2, 1] - Optimization: Dropout - Convolution: 64 - Pool: [1, 2, 2, 1] - Optimization: Dropout - Convolution: 64 - Pool: [1, 2, 2, 1] - Optimization: Dropout ConvCoreSize: 3 FullConnect: 1024
# ModelName: Corresponding to the model file in the model directory, # - such as YourModelName.pb, fill in YourModelName here. # CharSet: Provides a default optional built-in solution: # - [ALPHANUMERIC, ALPHANUMERIC_LOWER, ALPHANUMERIC_UPPER, NUMERIC] # - Or you can use your own customized character set like: ['a', '1', '2']. # ImageChannel: [1 - Gray Scale, 3 - RGB]. # CharLength: Captcha Length. Model: ModelName: GuoModel ImageChannel: 1 CharLength: 5 CharSet: NUMERIC
# ModelName: Corresponding to the model file in the model directory, # - such as YourModelName.pb, fill in YourModelName here. # CharSet: Provides a default optional built-in solution: # - [ALPHANUMERIC, ALPHANUMERIC_LOWER, ALPHANUMERIC_UPPER, NUMERIC] # - Or you can use your own customized char set like: ['a', '1', '2']. # ImageChannel: [1 - Gray Scale, 3 - RGB]. # CharLength: Captcha Length. Model: ModelName: GuoModel ImageChannel: 1 CharLength: 5 CharSet: NUMERIC