Path: blob/master/Deep-Convolutional-GAN/TensorFlow/DCGAN_Anime_Tensorflow.ipynb
3142 views
Kernel: Python 3 (ipykernel)
In [1]:
In [2]:
In [3]:
In [4]:
In [1]:
Out[1]:
2021-07-07 20:45:31.237798: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
In [2]:
In [3]:
In [4]:
Out[4]:
Found 63546 files belonging to 1 classes.
2021-07-07 20:46:02.965126: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set
2021-07-07 20:46:02.986875: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcuda.so.1
2021-07-07 20:46:03.041422: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-07-07 20:46:03.041976: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 1060 computeCapability: 6.1
coreClock: 1.6705GHz coreCount: 10 deviceMemorySize: 5.94GiB deviceMemoryBandwidth: 178.99GiB/s
2021-07-07 20:46:03.041997: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
2021-07-07 20:46:03.306729: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublas.so.11
2021-07-07 20:46:03.306790: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublasLt.so.11
2021-07-07 20:46:03.406084: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcufft.so.10
2021-07-07 20:46:03.466711: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcurand.so.10
2021-07-07 20:46:07.837548: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusolver.so.10
2021-07-07 20:46:09.354431: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusparse.so.11
2021-07-07 20:46:09.815921: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudnn.so.8
2021-07-07 20:46:09.816033: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-07-07 20:46:09.816627: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-07-07 20:46:09.912283: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1862] Adding visible gpu devices: 0
2021-07-07 20:46:10.120348: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set
2021-07-07 20:46:10.120472: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-07-07 20:46:10.121025: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 1060 computeCapability: 6.1
coreClock: 1.6705GHz coreCount: 10 deviceMemorySize: 5.94GiB deviceMemoryBandwidth: 178.99GiB/s
2021-07-07 20:46:10.121047: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
2021-07-07 20:46:10.121065: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublas.so.11
2021-07-07 20:46:10.121074: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublasLt.so.11
2021-07-07 20:46:10.121083: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcufft.so.10
2021-07-07 20:46:10.121091: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcurand.so.10
2021-07-07 20:46:10.121100: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusolver.so.10
2021-07-07 20:46:10.121108: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusparse.so.11
2021-07-07 20:46:10.121117: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudnn.so.8
2021-07-07 20:46:10.121168: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-07-07 20:46:10.121718: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-07-07 20:46:10.122051: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1862] Adding visible gpu devices: 0
2021-07-07 20:46:10.140161: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
2021-07-07 20:46:19.805534: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1261] Device interconnect StreamExecutor with strength 1 edge matrix:
2021-07-07 20:46:19.805554: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1267] 0
2021-07-07 20:46:19.805559: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1280] 0: N
2021-07-07 20:46:19.817677: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-07-07 20:46:19.818015: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-07-07 20:46:19.818307: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-07-07 20:46:19.818546: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1406] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 5545 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1060, pci bus id: 0000:01:00.0, compute capability: 6.1)
In [6]:
Out[6]:
In [7]:
Out[7]:
(128, 64, 64, 3)
In [8]:
Out[8]:
-1
In [9]:
In [10]:
In [11]:
Out[11]:
2021-07-07 20:47:31.942321: I tensorflow/core/kernels/data/shuffle_dataset_op.cc:177] Filling up shuffle buffer (this may take a while): 399 of 1000
2021-07-07 20:47:34.110951: I tensorflow/core/kernels/data/shuffle_dataset_op.cc:230] Shuffle buffer filled.
-1.0 1.0
In [12]:
In [13]:
In [14]:
In [15]:
Out[15]:
Model: "Generator"
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
input_layer (InputLayer) [(None, 1, 1, 100)] 0
_________________________________________________________________
conv_transpose_1 (Conv2DTran (None, 4, 4, 512) 819200
_________________________________________________________________
bn_1 (BatchNormalization) (None, 4, 4, 512) 2048
_________________________________________________________________
relu_1 (ReLU) (None, 4, 4, 512) 0
_________________________________________________________________
conv_transpose_2 (Conv2DTran (None, 8, 8, 256) 2097152
_________________________________________________________________
bn_2 (BatchNormalization) (None, 8, 8, 256) 1024
_________________________________________________________________
relu_2 (ReLU) (None, 8, 8, 256) 0
_________________________________________________________________
conv_transpose_3 (Conv2DTran (None, 16, 16, 128) 524288
_________________________________________________________________
bn_3 (BatchNormalization) (None, 16, 16, 128) 512
_________________________________________________________________
relu_3 (ReLU) (None, 16, 16, 128) 0
_________________________________________________________________
conv_transpose_4 (Conv2DTran (None, 32, 32, 64) 131072
_________________________________________________________________
bn_4 (BatchNormalization) (None, 32, 32, 64) 256
_________________________________________________________________
relu_4 (ReLU) (None, 32, 32, 64) 0
_________________________________________________________________
conv_transpose_5 (Conv2DTran (None, 64, 64, 3) 3072
=================================================================
Total params: 3,578,624
Trainable params: 3,576,704
Non-trainable params: 1,920
_________________________________________________________________
In [16]:
In [17]:
In [18]:
In [19]:
Out[19]:
Model: "Discriminator"
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
input_layer (InputLayer) [(None, 64, 64, 3)] 0
_________________________________________________________________
conv_1 (Conv2D) (None, 32, 32, 64) 3072
_________________________________________________________________
leaky_relu_1 (LeakyReLU) (None, 32, 32, 64) 0
_________________________________________________________________
conv_2 (Conv2D) (None, 16, 16, 128) 131072
_________________________________________________________________
bn_1 (BatchNormalization) (None, 16, 16, 128) 512
_________________________________________________________________
leaky_relu_2 (LeakyReLU) (None, 16, 16, 128) 0
_________________________________________________________________
conv_3 (Conv2D) (None, 8, 8, 256) 524288
_________________________________________________________________
bn_2 (BatchNormalization) (None, 8, 8, 256) 1024
_________________________________________________________________
leaky_relu_3 (LeakyReLU) (None, 8, 8, 256) 0
_________________________________________________________________
conv_4 (Conv2D) (None, 4, 4, 512) 2097152
_________________________________________________________________
bn_3 (BatchNormalization) (None, 4, 4, 512) 2048
_________________________________________________________________
leaky_relu_4 (LeakyReLU) (None, 4, 4, 512) 0
_________________________________________________________________
conv_5 (Conv2D) (None, 1, 1, 1) 8192
_________________________________________________________________
flatten (Flatten) (None, 1) 0
=================================================================
Total params: 2,767,360
Trainable params: 2,765,568
Non-trainable params: 1,792
_________________________________________________________________
In [20]:
In [21]:
In [22]:
In [23]:
In [24]:
In [25]:
In [26]:
In [27]:
In [28]:
In [29]:
In [31]:
Out[31]:
(25, 64, 64, 3)
In [ ]:
In [ ]: