Untitled
unknown
plain_text
7 months ago
378 B
0
Indexable
Never
import matplotlib from matplotlib import pyplot n_filters = 6 ix = 1 fig = pyplot.figure(figsize=(15,10)) for i in range(n_filters): #get filters f = filters[:,:,:,i] for j in range(3): #subplot for 6 filters and 3 channels pyplot.subplot(n_filters,3,ix) pyplot.imshow(f[:,:,j],cmap='gray') ix+=1 # plot pyplot.show()
Leave a Comment