def style_loss(style, combination):
S = gram_matrix(style)
C = gram_matrix(combination)
channels = 3
size = ht * wd
return K.sum(K.square(S - C))/(4. *(channels ** 2)*(size ** 2))
# Feature Layers of VGG16 Trained Neural Network
ArtisticStyleTransfer.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录