0
import matplotlib.pyplot as plt
%matplotlib inline
for i in range(4):
img = X_train[(int)((n_train-1)/(i+1)),:,:,:]
plt.imshow(img)
當我運行這段代碼時,結果如下所示。它只顯示一張圖片。如何在單元格中ipython中一個接一個地顯示圖片(垂直或水平)?
import matplotlib.pyplot as plt
%matplotlib inline
for i in range(4):
img = X_train[(int)((n_train-1)/(i+1)),:,:,:]
plt.imshow(img)
當我運行這段代碼時,結果如下所示。它只顯示一張圖片。如何在單元格中ipython中一個接一個地顯示圖片(垂直或水平)?