forked from kerlomz/captcha_trainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
54 lines (43 loc) · 1.11 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Author: kerlomz <[email protected]>
from enum import Enum, unique
@unique
class RunMode(Enum):
Test = 'test'
Trains = 'trains'
Predict = 'predict'
@unique
class CNNNetwork(Enum):
CNN5 = 'CNN5'
ResNet = 'ResNet'
DenseNet = 'DenseNet'
@unique
class RecurrentNetwork(Enum):
LSTM = 'LSTM'
BLSTM = 'BLSTM'
SRU = 'SRU'
BSRU = 'BSRU'
GRU = 'GRU'
@unique
class Optimizer(Enum):
AdaBound = 'AdaBound'
Adam = 'Adam'
Momentum = 'Momentum'
SGD = 'SGD'
AdaGrad = 'AdaGrad'
RMSProp = 'RMSProp'
@unique
class SimpleCharset(Enum):
NUMERIC = 'NUMBER'
ALPHANUMERIC = 'ALPHANUMERIC'
ALPHANUMERIC_LOWER = 'ALPHANUMERIC_LOWER'
ALPHANUMERIC_UPPER = 'ALPHANUMERIC_UPPER'
ALPHABET_LOWER = 'ALPHABET_LOWER'
ALPHABET_UPPER = 'ALPHABET_UPPER'
ALPHABET = 'ALPHABET'
ARITHMETIC = 'ARITHMETIC'
ALPHANUMERIC_LOWER_MIX_ARITHMETIC = 'ALPHANUMERIC_LOWER_MIX_ARITHMETIC'
FLOAT = 'FLOAT'
CHINESE_3500 = 'CHINESE_3500'
ALPHANUMERIC_LOWER_MIX_CHINESE_3500 = 'ALPHANUMERIC_LOWER_MIX_CHINESE_3500'