keras模型
一些基于keras的神经网络模型
飞华1993
南京师范大学博士生
展开
-
keras_bert tf版本
1.安装keras_bertpip install keras_bert2.设置环境变量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 · 2999 阅读 · 2 评论 -
keras bert 事件抽取
1.数据读取"""@author: chenzhenhua@time: 2020/3/12 14:36@file: read_event_extraction.py@desc:"""import codecsimport pandas as pdfrom keras_bert import Tokenizerfrom tensorflow.python.keras.cal...原创 2020-03-31 16:25:16 · 2942 阅读 · 9 评论 -
tf.keras VGG16 imagenet
# @Author: ---chenzhenhua# @E-mail: ---945979936@qq.comfrom tensorflow.python.keras.layers import Conv2D, MaxPooling2Dfrom tensorflow.python.keras.layers import Dense, Dropout, Activation, Flatt...原创 2020-03-19 11:10:22 · 286 阅读 · 0 评论 -
tf.keras LeNet imagenet
lenet# @Author: ---chenzhenhua# @E-mail: ---945979936@qq.commodel = Sequential()model.add(Conv2D(6, (5, 5), padding='valid', activation = 'relu', kernel_initializer='he_normal', input_shape=(in...原创 2019-12-13 09:18:19 · 129 阅读 · 0 评论 -
tf.keras VGG19 imagenet
# @Author: ---chenzhenhua# @E-mail: ---945979936@qq.comfrom tf.python.keras.models import Sequentialfrom tf.python.keras.layers import Dense,Flatten,Dropoutfrom tf.python.keras.layers.convolutio...原创 2019-12-13 09:14:03 · 662 阅读 · 0 评论 -
tf.keras Unet
Unet代码# @Author: ---chenzhenhua# @E-mail: ---945979936@qq.comdef get_unet(): inputs = Input((img_rows*img_cols,)) inputs1 = Reshape((512,512,1))(inputs) print('shape:'...原创 2019-12-13 09:08:30 · 399 阅读 · 0 评论 -
tf.keras Resnet50 imagenet
Resnet50代码# @Author: ---chenzhenhua# @E-mail: ---945979936@qq.comdef identity_block(X, f, filters, stage, block): """ Implementation of the identity block as defined in Figure 4 Arg...原创 2019-12-13 09:04:51 · 510 阅读 · 0 评论 -
tf.keras SqueezeNet imagenet
squeezenet代码# @Author: ---chenzhenhua# @E-mail: ---945979936@qq.comdef 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 · 246 阅读 · 0 评论 -
tf.keras xception imagenet
xception代码# @Author: ---chenzhenhua# @E-mail: ---945979936@qq.comdef Xception(classes): # Determine proper input shape inputs = Input(shape=input_shape) if ReShape: X = Reshape(ReShape...原创 2019-12-13 08:58:31 · 245 阅读 · 0 评论 -
tf.keras inception_resnet_v1 cifar
inception_resnet_v1代码# @Author: ---chenzhenhua# @E-mail: ---945979936@qq.comimport os os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="3" import kerasimpo...原创 2019-12-09 11:28:15 · 251 阅读 · 0 评论