TF之DD:利用Inception模型+GD算法生成更大尺寸的Deep Dream精美图片

 

 

目录

输出结果

设计思路

部分代码


 

 

 

 

输出结果

TF之DD:利用Inception模型+GD算法生成更大尺寸的Deep Dream精美图片_TF

设计思路

TF之DD:利用Inception模型+GD算法生成更大尺寸的Deep Dream精美图片_TF_02

 

部分代码

TF之TFDeepDream:生成更大尺寸的Deep Dream图像
from __future__ import print_function
……
import tensorflow as tf

# 1、创建图和Session
graph = tf.Graph()
sess = tf.InteractiveSession(graph=graph)

……


    channel = 1?9

    layer_output = graph.get_tensor_by_name("import/%s:0" % name)

……
    
    7、
    render_multiscale(layer_output[:, :, :, channel], img_noise, iter_n=20)

 

 

 

 

更多文章请关注《万象专栏》