![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
keras
Tron1994
这个作者很懒,什么都没留下…
展开
-
keras的零碎笔记
keras自定义目标损失函数from keras import backend as K def my_loss(y_true,y_pred): return K.mean((y_pred-y_true),axis = -1) model.compile(loss=my_loss, optimizer='SGD', metrics=['accuracy'])原创 2017-05-08 16:39:21 · 638 阅读 · 0 评论 -
keras环境配置小问题总结
系统安装问题 win10+ubuntu16.04 在win10在需要security boot设置成disable,否则安装完后无法设置启动项。 安装完ubuntu重启,系统会直接进入win10,需要使用EaeyBCD进行启动项设置。 进入ubuntu系统,校园网不要使用DSL联网,而是直接默认连上有线连接后在网页进行登录。 显卡驱动安装 第一步需要干掉nouveau,两种方法:一种禁用,一种移原创 2017-05-12 19:59:59 · 506 阅读 · 0 评论 -
SRGAN基于keras实现代码框架
class VGGNetwork: def append_vgg_network(self, x_in, true_X_input): return x #x is output of VGG def load_vgg_weight(self, model): return model class DiscriminatorNetwork: d原创 2017-05-08 23:02:18 · 2344 阅读 · 2 评论