CS/์ธ๊ณต์ง๋ฅ
2024. 5. 29.
[TensorFlow Keras] ์๊ธ์จ ์ด๋ฏธ์ง๋ฅผ ์์ฑํ๋ GAN model ๋ง๋ค๊ธฐ
๋ชฉํ- ์ง์ง ๊ฐ์ ์๊ธ์จ ์ด๋ฏธ์ง๋ฅผ ์์ฑํ๋ GAN model ๋ง๋ค๊ธฐ - 16๊ฐ ์ด๋ฏธ์ง ์ค์ 8๊ฐ ์ด์์ด ์ธ์๊ฐ๋ฅํ ์ซ์๋ฅผ ํฌํจํ๊ณ ์์ผ๋ฉด ๋๋ค. ํ์ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ importimport tensorflow as tfimport globimport imageioimport matplotlib.pyplot as pltimport numpy as npimport osimport PILfrom tensorflow.keras import layersimport time MNIST dataset ๋ก๋ (train_images, train_labels), (_, _) = tf.keras.datasets.mnist.load_data()train_images = train_images.reshape(train_image..