Commit 0797a429 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

colored weights, hardcoded dimensions

parent 7a9d4e6e
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1577,6 +1577,7 @@ with tf.Session() as sess:
        
        
            #l2 = NN_LAYOUT2.index(next(filter(lambda x: x!=0, NN_LAYOUT2)))
            #l2 = NN_LAYOUT2.index(next(filter(lambda x: x!=0, NN_LAYOUT2)))
            with tf.variable_scope('g_fc_inter'+str(l2),reuse=tf.AUTO_REUSE):
            with tf.variable_scope('g_fc_inter'+str(l2),reuse=tf.AUTO_REUSE):
                
                w = tf.get_variable('weights',shape=[400,NN_LAYOUT2[l2]])
                w = tf.get_variable('weights',shape=[400,NN_LAYOUT2[l2]])
                w = tf.transpose(w,(1,0))
                w = tf.transpose(w,(1,0))
                img2 = npw.tiles(npw.coldmap(w.eval(),zero_span=0.0002),(5,5,4,4),tiles_per_line=4,borders=True)
                img2 = npw.tiles(npw.coldmap(w.eval(),zero_span=0.0002),(5,5,4,4),tiles_per_line=4,borders=True)