
keras模型
一些基于keras的神经网络模型
飞华1993
南京师范大学博士生
展开
-
keras_bert tf版本
1.安装keras_bert pip install keras_bert 2.设置环境变量TF_KERAS=1,centos下输入 vim /etc/profile 打开文件后将 from tensorflow.python.keras import backend_config 修改为 from tensorflow.python.keras import backe...原创 2020-04-16 18:45:24 · 3043 阅读 · 2 评论 -
keras bert 事件抽取
1.数据读取 """ @author: chenzhenhua @time: 2020/3/12 14:36 @file: read_event_extraction.py @desc: """ import codecs import pandas as pd from keras_bert import Tokenizer from tensorflow.python.keras.cal...原创 2020-03-31 16:25:16 · 2986 阅读 · 9 评论 -
tf.keras VGG16 imagenet
# @Author: ---chenzhenhua # @E-mail: ---945979936@qq.com from tensorflow.python.keras.layers import Conv2D, MaxPooling2D from tensorflow.python.keras.layers import Dense, Dropout, Activation, Flatt...原创 2020-03-19 11:10:22 · 317 阅读 · 0 评论 -
tf.keras LeNet imagenet
lenet # @Author: ---chenzhenhua # @E-mail: ---945979936@qq.com model = Sequential() model.add(Conv2D(6, (5, 5), padding='valid', activation = 'relu', kernel_initializer='he_normal', input_shape=(in...原创 2019-12-13 09:18:19 · 152 阅读 · 0 评论 -
tf.keras VGG19 imagenet
# @Author: ---chenzhenhua # @E-mail: ---945979936@qq.com from tf.python.keras.models import Sequential from tf.python.keras.layers import Dense,Flatten,Dropout from tf.python.keras.layers.convolutio...原创 2019-12-13 09:14:03 · 700 阅读 · 0 评论 -
tf.keras Unet
Unet代码 # @Author: ---chenzhenhua # @E-mail: ---945979936@qq.com def get_unet(): inputs = Input((img_rows*img_cols,)) inputs1 = Reshape((512,512,1))(inputs) print('shape:'...原创 2019-12-13 09:08:30 · 419 阅读 · 0 评论 -
tf.keras Resnet50 imagenet
Resnet50代码 # @Author: ---chenzhenhua # @E-mail: ---945979936@qq.com def identity_block(X, f, filters, stage, block): """ Implementation of the identity block as defined in Figure 4 Arg...原创 2019-12-13 09:04:51 · 545 阅读 · 0 评论 -
tf.keras SqueezeNet imagenet
squeezenet代码 # @Author: ---chenzhenhua # @E-mail: ---945979936@qq.com def fire_module(x, fire_id, squeeze=squeeze, expand=expand): s_id = 'fire' + str(fire_id) + '/' if K.image_data_format...原创 2019-12-13 09:01:07 · 274 阅读 · 0 评论 -
tf.keras xception imagenet
xception代码 # @Author: ---chenzhenhua # @E-mail: ---945979936@qq.com def Xception(classes): # Determine proper input shape inputs = Input(shape=input_shape) if ReShape: X = Reshape(ReShape...原创 2019-12-13 08:58:31 · 273 阅读 · 0 评论 -
tf.keras inception_resnet_v1 cifar
inception_resnet_v1代码 # @Author: ---chenzhenhua # @E-mail: ---945979936@qq.com import os os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="3" import keras impo...原创 2019-12-09 11:28:15 · 279 阅读 · 0 评论