1 Star 0 Fork 0

有匪君子/captcha_trainer-1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
constants.py 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
kerlomz 提交于 2019-05-11 15:07 . fix: remove CapsNet.
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Author: kerlomz <kerlomz@gmail.com>
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'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hohaijk/captcha_trainer-1.git
git@gitee.com:hohaijk/captcha_trainer-1.git
hohaijk
captcha_trainer-1
captcha_trainer-1
master

搜索帮助