{"id":29790,"date":"2024-10-28T03:00:04","date_gmt":"2024-10-28T03:00:04","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=29790"},"modified":"2024-11-26T06:51:22","modified_gmt":"2024-11-26T06:51:22","slug":"%ed%8c%8c%ec%9d%b4%ed%86%a0%ec%b9%98%eb%a5%bc-%ed%99%9c%ec%9a%a9%ed%95%9c-gan-%eb%94%a5%eb%9f%ac%eb%8b%9d-cyclegan%ec%9c%bc%eb%a1%9c-%eb%aa%a8%eb%84%a4-%ea%b7%b8%eb%a6%bc-%ea%b7%b8%eb%a6%ac%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/29790\/","title":{"rendered":"\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30"},"content":{"rendered":"<p><body><\/p>\n<p>\ub525\ub7ec\ub2dd \ubd84\uc57c\ub294 \ub370\uc774\ud130\uc640 \uc5f0\uc0b0 \ub2a5\ub825\uc758 \ubc1c\uc804\uc5d0 \ud798\uc785\uc5b4 \uc2e4\uc9c8\uc801\uc778 \uc131\uacfc\ub97c \ub9ce\uc774 \ub0b8 \ubd84\uc57c\uc785\ub2c8\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 GAN(Generative Adversarial Network)\uc740 \uac00\uc7a5 \ud601\uc2e0\uc801\uc778 \uacb0\uacfc\ub97c \ubcf4\uc5ec\uc900 \ubaa8\ub378 \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 \ub525\ub7ec\ub2dd \ud504\ub808\uc784\uc6cc\ud06c \uc911 \ud558\ub098\uc778 \ud30c\uc774\ud1a0\uce58(PyTorch)\ub97c \ud65c\uc6a9\ud558\uc5ec CycleGAN \ubaa8\ub378\uc744 \ud559\uc2b5\uc2dc\ucf1c \ubaa8\ub124(Monet) \uc2a4\ud0c0\uc77c\uc758 \uadf8\ub9bc\uc744 \uc0dd\uc131\ud558\ub294 \ubc29\ubc95\uc744 \uc18c\uac1c\ud560 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<h2>1. CycleGAN \uac1c\uc694<\/h2>\n<p>CycleGAN\uc740 \ub450 \uac1c\uc758 \ub3c4\uba54\uc778 \uac04 \ubcc0\ud658\uc744 \uc704\ud55c GAN\uc758 \uc77c\uc885\uc785\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ud604\uc2e4 \uc0ac\uc9c4\uc744 \ud654\ud48d\uc73c\ub85c \ubcc0\ud658\ud558\uac70\ub098 \ub0ae\uc758 \ud48d\uacbd\uc744 \ubc24\uc758 \ud48d\uacbd\uc73c\ub85c \ubcc0\ud658\ud558\ub294 \uc77c\uc5d0 \uc0ac\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. CycleGAN\uc758 \uc8fc\uc694 \ud2b9\uc9d5\uc740 \uc8fc\uc5b4\uc9c4 \ub450 \uac1c\uc758 \ub3c4\uba54\uc778 \uac04\uc758 &#8216;\uc21c\ud658 \ud559\uc2b5(cycle consistency)&#8217;\uc744 \ud1b5\ud574 \uac01\uac01\uc758 \ub3c4\uba54\uc778 \uc0ac\uc774\uc5d0\uc11c \ubcc0\ud658\uc758 \uc77c\uad00\uc131\uc744 \uc720\uc9c0\ud558\ub294 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<h3>1.1 CycleGAN \uad6c\uc870<\/h3>\n<p>CycleGAN\uc740 \ub450 \uac1c\uc758 \uc0dd\uc131\uae30(Generator)\uc640 \ub450 \uac1c\uc758 \ud310\ubcc4\uae30(Discriminator)\ub85c \uad6c\uc131\ub429\ub2c8\ub2e4. \uac01\uac01\uc758 \uc0dd\uc131\uae30\ub294 \ud55c \ub3c4\uba54\uc778\uc758 \uc774\ubbf8\uc9c0\ub97c \ub2e4\ub978 \ub3c4\uba54\uc778\uc73c\ub85c \ubcc0\ud658\ud558\uba70, \ud310\ubcc4\uae30\ub294 \uc0dd\uc131\ub41c \uc774\ubbf8\uc9c0\uac00 \uc9c4\uc9dc \uc774\ubbf8\uc9c0\uc778\uc9c0 \uad6c\ubd84\ud558\ub294 \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4.<\/p>\n<ul>\n<li><strong>Generator G:<\/strong> \ub3c4\uba54\uc778 X(\uc608: \uc0ac\uc9c4)\uc5d0\uc11c \ub3c4\uba54\uc778 Y(\uc608: \ubaa8\ub124 \uc2a4\ud0c0\uc77c\uc758 \uadf8\ub9bc)\uc73c\ub85c \ubcc0\ud658<\/li>\n<li><strong>Generator F:<\/strong> \ub3c4\uba54\uc778 Y\uc5d0\uc11c \ub3c4\uba54\uc778 X\ub85c \ubcc0\ud658<\/li>\n<li><strong>Discriminator D_X:<\/strong> \ub3c4\uba54\uc778 X\uc758 \uc9c4\uc9dc\uc640 \uc0dd\uc131\ub41c \uc774\ubbf8\uc9c0\ub97c \uad6c\ubd84<\/li>\n<li><strong>Discriminator D_Y:<\/strong> \ub3c4\uba54\uc778 Y\uc758 \uc9c4\uc9dc\uc640 \uc0dd\uc131\ub41c \uc774\ubbf8\uc9c0\ub97c \uad6c\ubd84<\/li>\n<\/ul>\n<h3>1.2 \uc190\uc2e4 \ud568\uc218<\/h3>\n<p>CycleGAN\uc758 \ud559\uc2b5 \uacfc\uc815\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uc190\uc2e4 \ud568\uc218 \uad6c\uc131\uc73c\ub85c \uc774\ub8e8\uc5b4\uc9d1\ub2c8\ub2e4.<\/p>\n<ul>\n<li><strong>Adversarial Loss:<\/strong> \uc0dd\uc131\ub41c \uc774\ubbf8\uc9c0\uac00 \uc5bc\ub9c8\ub098 \uc9c4\uc9dc \uac19\uc740\uc9c0\ub97c \ud310\ubcc4\uae30\uc5d0\uac8c \ud3c9\uac00\ubc1b\ub294 \uc190\uc2e4<\/li>\n<li><strong>Cycle Consistency Loss:<\/strong> \uc774\ubbf8\uc9c0 \ubcc0\ud658 \ud6c4 \uc6d0\ub798 \uc774\ubbf8\uc9c0\ub85c \ub2e4\uc2dc \ubcc0\ud658\ud588\uc744 \ub54c\uc758 \uc190\uc2e4<\/li>\n<\/ul>\n<p>\uc804\uccb4 \uc190\uc2e4\uc740 \ub2e4\uc74c\uacfc \uac19\uc774 \uc815\uc758\ub429\ub2c8\ub2e4:<\/p>\n<pre><code>L = L<sub>GAN<\/sub>(G, D<sub>Y<\/sub>, X, Y) + L<sub>GAN<\/sub>(F, D<sub>X<\/sub>, Y, X) + \u03bb(CycleLoss(G, F) + CycleLoss(F, G))<\/code><\/pre>\n<h2>2. \ud658\uacbd \uc124\uc815<\/h2>\n<p>\uc774\ubc88 \ud504\ub85c\uc81d\ud2b8\ub97c \uc704\ud574\uc11c\ub294 Python, PyTorch \ubc0f \ud544\uc694\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\ub4e4(\uc608: NumPy, Matplotlib)\uc774 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. \ud544\uc694\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc124\uce58\ud558\uae30 \uc704\ud55c \uba85\ub839\uc5b4\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>pip install torch torchvision numpy matplotlib<\/code><\/pre>\n<h2>3. \ub370\uc774\ud130\uc14b \uc900\ube44<\/h2>\n<p>\ubaa8\ub124 \uc2a4\ud0c0\uc77c\uc758 \uadf8\ub9bc\uacfc \uc0ac\uc9c4 \ub370\uc774\ud130\uc14b\uc774 \ud544\uc694\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, <strong>Monet Style<\/strong>\uc758 \uadf8\ub9bc\uc740 <a href=\"https:\/\/www.kaggle.com\/c\/monet-style\/images\" target=\"_blank\" rel=\"noopener\">Kaggle Monet Style Dataset<\/a>\uc5d0\uc11c \ub2e4\uc6b4\ub85c\ub4dc \ubc1b\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub610\ud55c, \uc77c\ubc18\uc801\uc778 \uc0ac\uc9c4 \uc774\ubbf8\uc9c0\ub294 \ub2e4\uc591\ud55c \uacf5\uac1c \uc774\ubbf8\uc9c0 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0\uc11c \uad6c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc774\ubbf8\uc9c0 \ub370\uc774\ud130\uc14b\uc774 \uc900\ube44\ub418\uc5c8\uc73c\uba74, \uc774\ub97c \uc801\uc808\ud55c \ud615\uc2dd\uc73c\ub85c \ub85c\ub4dc\ud558\uace0 \uc804\ucc98\ub9ac \ud574\uc918\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<h3>3.1 \ub370\uc774\ud130 \ub85c\ub4dc \ubc0f \uc804\ucc98\ub9ac<\/h3>\n<pre><code>import os\nimport glob\nimport random\nfrom PIL import Image\nimport torchvision.transforms as transforms\n\ndef load_data(image_path, image_size=(256, 256)):\n    images = glob.glob(os.path.join(image_path, '*.jpg'))\n    dataset = []\n    for img in images:\n        image = Image.open(img).convert('RGB')\n        transform = transforms.Compose([\n            transforms.Resize(image_size),\n            transforms.ToTensor(),\n        ])\n        image = transform(image)\n        dataset.append(image)\n    return dataset\n\n# \uc774\ubbf8\uc9c0 \uacbd\ub85c \uc124\uc815\nmonet_path = '.\/data\/monet\/'\nphoto_path = '.\/data\/photos\/'\n\nmonet_images = load_data(monet_path)\nphoto_images = load_data(photo_path)\n<\/code><\/pre>\n<h2>4. CycleGAN \ubaa8\ub378 \uad6c\ucd95<\/h2>\n<p>CycleGAN \ubaa8\ub378\uc744 \uad6c\ucd95\ud558\uae30 \uc704\ud574 \uae30\ubcf8\uc801\uc778 \uc0dd\uc131\uae30\uc640 \ud310\ubcc4\uae30\ub97c \uc815\uc758\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>4.1 \uc0dd\uc131\uae30 \uc815\uc758<\/h3>\n<p>\uc5ec\uae30\uc11c\ub294 U-Net \uad6c\uc870\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \uc0dd\uc131\uae30\ub97c \uc815\uc758\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>import torch\nimport torch.nn as nn\n\nclass UNetGenerator(nn.Module):\n    def __init__(self):\n        super(UNetGenerator, self).__init__()\n        self.encoder1 = self.contracting_block(3, 64)\n        self.encoder2 = self.contracting_block(64, 128)\n        self.encoder3 = self.contracting_block(128, 256)\n        self.encoder4 = self.contracting_block(256, 512)\n        self.decoder1 = self.expansive_block(512, 256)\n        self.decoder2 = self.expansive_block(256, 128)\n        self.decoder3 = self.expansive_block(128, 64)\n        self.decoder4 = nn.ConvTranspose2d(64, 3, kernel_size=3, stride=1, padding=1)\n\n    def contracting_block(self, in_channels, out_channels):\n        return nn.Sequential(\n            nn.Conv2d(in_channels, out_channels, kernel_size=4, stride=2, padding=1),\n            nn.BatchNorm2d(out_channels),\n            nn.ReLU(inplace=True)\n        )\n    \n    def expansive_block(self, in_channels, out_channels):\n        return nn.Sequential(\n            nn.ConvTranspose2d(in_channels, out_channels, kernel_size=4, stride=2, padding=1),\n            nn.BatchNorm2d(out_channels),\n            nn.ReLU(inplace=True)\n        )\n    \n    def forward(self, x):\n        e1 = self.encoder1(x)\n        e2 = self.encoder2(e1)\n        e3 = self.encoder3(e2)\n        e4 = self.encoder4(e3)\n        d1 = self.decoder1(e4)\n        d2 = self.decoder2(d1 + e3)  # Skip connection\n        d3 = self.decoder3(d2 + e2)  # Skip connection\n        output = self.decoder4(d3 + e1)  # Skip connection\n        return output\n<\/code><\/pre>\n<h3>4.2 \ud310\ubcc4\uae30 \uc815\uc758<\/h3>\n<p>\ud328\uce58 \uae30\ubc18 \uad6c\uc870\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud310\ubcc4\uae30\ub97c \uc815\uc758\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>class PatchDiscriminator(nn.Module):\n    def __init__(self):\n        super(PatchDiscriminator, self).__init__()\n        self.model = nn.Sequential(\n            nn.Conv2d(3, 64, kernel_size=4, stride=2, padding=1),\n            nn.LeakyReLU(0.2, inplace=True),\n            nn.Conv2d(64, 128, kernel_size=4, stride=2, padding=1),\n            nn.BatchNorm2d(128),\n            nn.LeakyReLU(0.2, inplace=True),\n            nn.Conv2d(128, 256, kernel_size=4, stride=2, padding=1),\n            nn.BatchNorm2d(256),\n            nn.LeakyReLU(0.2, inplace=True),\n            nn.Conv2d(256, 512, kernel_size=4, stride=2, padding=1),\n            nn.BatchNorm2d(512),\n            nn.LeakyReLU(0.2, inplace=True),\n            nn.Conv2d(512, 1, kernel_size=4, stride=1, padding=1)\n        )\n\n    def forward(self, x):\n        return self.model(x)\n<\/code><\/pre>\n<h2>5. \uc190\uc2e4 \ud568\uc218 \uad6c\ud604<\/h2>\n<p>CycleGAN\uc758 \uc190\uc2e4 \ud568\uc218\ub97c \uad6c\ud604\ud569\ub2c8\ub2e4. \uc0dd\uc131\uae30\uc758 \uc190\uc2e4\uacfc \ud310\ubcc4\uae30\uc758 \uc190\uc2e4\uc744 \ubaa8\ub450 \uace0\ub824\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>def compute_gan_loss(predictions, targets):\n    return nn.BCEWithLogitsLoss()(predictions, targets)\n\ndef compute_cycle_loss(real_image, cycled_image, lambda_cycle):\n    return lambda_cycle * nn.L1Loss()(real_image, cycled_image)\n\ndef compute_total_loss(real_images_X, real_images_Y, \n                       fake_images_Y, fake_images_X, \n                       cycled_images_X, cycled_images_Y, \n                       D_X, D_Y, lambda_cycle):\n    loss_GAN_X = compute_gan_loss(D_Y(fake_images_Y), torch.ones_like(fake_images_Y))\n    loss_GAN_Y = compute_gan_loss(D_X(fake_images_X), torch.ones_like(fake_images_X))\n    loss_cycle = compute_cycle_loss(real_images_X, cycled_images_X, lambda_cycle) + \\\n                compute_cycle_loss(real_images_Y, cycled_images_Y, lambda_cycle)\n    return loss_GAN_X + loss_GAN_Y + loss_cycle\n<\/code><\/pre>\n<h2>6. \ud559\uc2b5 \uacfc\uc815<\/h2>\n<p>\uc774\uc81c \ubaa8\ub378\uc744 \ud559\uc2b5\ud560 \ucc28\ub840\uc785\ub2c8\ub2e4. \ub370\uc774\ud130 \ub85c\ub354\ub97c \uc124\uc815\ud558\uace0, \ubaa8\ub378\uc744 \ucd08\uae30\ud654\ud55c \ud6c4, \uc190\uc2e4\uc744 \uc800\uc7a5\ud558\uace0 \uc5c5\ub370\uc774\ud2b8\ub97c \uc218\ud589\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>from torch.utils.data import DataLoader\n\ndef train_cyclegan(monet_loader, photo_loader, epochs=200, lambda_cycle=10):\n    G = UNetGenerator()\n    F = UNetGenerator()\n    D_X = PatchDiscriminator()\n    D_Y = PatchDiscriminator()\n\n    # Optimizers \uc124\uc815\n    optimizer_G = torch.optim.Adam(G.parameters(), lr=0.0002, betas=(0.5, 0.999))\n    optimizer_F = torch.optim.Adam(F.parameters(), lr=0.0002, betas=(0.5, 0.999))\n    optimizer_D_X = torch.optim.Adam(D_X.parameters(), lr=0.0002, betas=(0.5, 0.999))\n    optimizer_D_Y = torch.optim.Adam(D_Y.parameters(), lr=0.0002, betas=(0.5, 0.999))\n\n    for epoch in range(epochs):\n        for real_images_X, real_images_Y in zip(monet_loader, photo_loader):\n            # \uc0dd\uc131\uae30 \ud559\uc2b5\n            fake_images_Y = G(real_images_X)\n            cycled_images_X = F(fake_images_Y)\n\n            optimizer_G.zero_grad()\n            optimizer_F.zero_grad()\n            total_loss = compute_total_loss(real_images_X, real_images_Y, \n                                             fake_images_Y, fake_images_X, \n                                             cycled_images_X, cycled_images_Y, \n                                             D_X, D_Y, lambda_cycle)\n            total_loss.backward()\n            optimizer_G.step()\n            optimizer_F.step()\n\n            # \ud310\ubcc4\uae30 \ud559\uc2b5\n            optimizer_D_X.zero_grad()\n            optimizer_D_Y.zero_grad()\n            loss_D_X = compute_gan_loss(D_X(real_images_X), torch.ones_like(real_images_X)) + \\\n                        compute_gan_loss(D_X(fake_images_X.detach()), torch.zeros_like(fake_images_X))\n            loss_D_Y = compute_gan_loss(D_Y(real_images_Y), torch.ones_like(real_images_Y)) + \\\n                        compute_gan_loss(D_Y(fake_images_Y.detach()), torch.zeros_like(fake_images_Y))\n            loss_D_X.backward()\n            loss_D_Y.backward()\n            optimizer_D_X.step()\n            optimizer_D_Y.step()\n\n        print(f'Epoch [{epoch+1}\/{epochs}], Loss: {total_loss.item()}')\n<\/code><\/pre>\n<h2>7. \uacb0\uacfc \uc0dd\uc131<\/h2>\n<p>\ubaa8\ub378\uc774 \ud559\uc2b5\uc744 \ub9c8\uce58\uba74, \uc0c8\ub85c\uc6b4 \uc774\ubbf8\uc9c0\ub97c \uc0dd\uc131\ud558\ub294 \uacfc\uc815\uc744 \uc9c4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud14c\uc2a4\ud2b8 \uc774\ubbf8\uc9c0\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0dd\uc131\ub41c \ubaa8\ub124 \uc2a4\ud0c0\uc77c\uc758 \uadf8\ub9bc\uc744 \ud655\uc778\ud574\ubd05\uc2dc\ub2e4.<\/p>\n<pre><code>def generate_images(test_loader, model_G):\n    model_G.eval()\n    for real_images in test_loader:\n        with torch.no_grad():\n            fake_images = model_G(real_images)\n            # \uc774\ubbf8\uc9c0\ub97c \uc800\uc7a5\ud558\uac70\ub098 \uc2dc\uac01\ud654\ud558\ub294 \ucf54\ub4dc \ucd94\uac00\n<\/code><\/pre>\n<p>\uc774\ubbf8\uc9c0\ub97c \uc2dc\uac01\ud654\ud558\uae30 \uc704\ud55c \ub0b4\uc7a5 \ud568\uc218\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>import matplotlib.pyplot as plt\n\ndef visualize_results(real_images, fake_images):\n    plt.figure(figsize=(10, 5))\n    plt.subplot(1, 2, 1)\n    plt.title('Real Images')\n    plt.imshow(real_images.permute(1, 2, 0).numpy())\n    \n    plt.subplot(1, 2, 2)\n    plt.title('Fake Images (Monet Style)')\n    plt.imshow(fake_images.permute(1, 2, 0).numpy())\n    plt.show()\n<\/code><\/pre>\n<h2>8. \uacb0\ub860<\/h2>\n<p>\uc774 \uae00\uc5d0\uc11c\ub294 CycleGAN\uc744 \ud65c\uc6a9\ud558\uc5ec \ubaa8\ub124 \uc2a4\ud0c0\uc77c\uc758 \uadf8\ub9bc\uc744 \uc0dd\uc131\ud558\ub294 \uacfc\uc815\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc774 \ubc29\ubc95\ub860\uc740 \ub9ce\uc740 \uc751\uc6a9\uc774 \uac00\ub2a5\ud558\uba70, \ud5a5\ud6c4 \ub354 \ub9ce\uc740 \ub3c4\uba54\uc778 \uac04\uc758 \ubcc0\ud658 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ub370 \uc0ac\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. CycleGAN\uc758 \ud2b9\uc9d5\uc778 \uc21c\ud658 \uc77c\uad00\uc131 \ub610\ud55c \ub2e4\uc591\ud55c GAN \ubcc0\ud615\uc5d0 \uc801\uc6a9\ub420 \uc218 \uc788\uc5b4 \uc55e\uc73c\ub85c\uc758 \uc5f0\uad6c \ubc29\ud5a5\uc774 \uae30\ub300\ub429\ub2c8\ub2e4.<\/p>\n<p>\uc774 \uc608\uc81c\ub97c \ud1b5\ud574 \ud30c\uc774\ud1a0\uce58\uc5d0\uc11c CycleGAN\uc744 \uad6c\ud604\ud558\ub294 \uae30\ucd08\ub97c \uc2b5\ub4dd\ud558\uc168\uae38 \ubc14\ub78d\ub2c8\ub2e4. GAN\uc740 \ub192\uc740 \ud004\ub9ac\ud2f0\uc758 \uc774\ubbf8\uc9c0\ub97c \uc0dd\uc131\ud558\ub294 \ub370 \uc788\uc5b4 \ub9ce\uc740 \uac00\ub2a5\uc131\uc744 \uc9c0\ub2c8\uace0 \uc788\uc73c\uba70, \uc774 \uae30\uc220\uc758 \ubc1c\uc804\uc774 \ub354 \ub9ce\uc740 \ubd84\uc57c\uc5d0 \uc751\uc6a9\ub420 \uc218 \uc788\uc744 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub525\ub7ec\ub2dd \ubd84\uc57c\ub294 \ub370\uc774\ud130\uc640 \uc5f0\uc0b0 \ub2a5\ub825\uc758 \ubc1c\uc804\uc5d0 \ud798\uc785\uc5b4 \uc2e4\uc9c8\uc801\uc778 \uc131\uacfc\ub97c \ub9ce\uc774 \ub0b8 \ubd84\uc57c\uc785\ub2c8\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 GAN(Generative Adversarial Network)\uc740 \uac00\uc7a5 \ud601\uc2e0\uc801\uc778 \uacb0\uacfc\ub97c \ubcf4\uc5ec\uc900 \ubaa8\ub378 \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 \ub525\ub7ec\ub2dd \ud504\ub808\uc784\uc6cc\ud06c \uc911 \ud558\ub098\uc778 \ud30c\uc774\ud1a0\uce58(PyTorch)\ub97c \ud65c\uc6a9\ud558\uc5ec CycleGAN \ubaa8\ub378\uc744 \ud559\uc2b5\uc2dc\ucf1c \ubaa8\ub124(Monet) \uc2a4\ud0c0\uc77c\uc758 \uadf8\ub9bc\uc744 \uc0dd\uc131\ud558\ub294 \ubc29\ubc95\uc744 \uc18c\uac1c\ud560 \uac83\uc785\ub2c8\ub2e4. 1. CycleGAN \uac1c\uc694 CycleGAN\uc740 \ub450 \uac1c\uc758 \ub3c4\uba54\uc778 \uac04 \ubcc0\ud658\uc744 \uc704\ud55c GAN\uc758 \uc77c\uc885\uc785\ub2c8\ub2e4. \uc608\ub97c &hellip; <a href=\"https:\/\/atmokpo.com\/w\/29790\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[32],"tags":[],"class_list":["post-29790","post","type-post","status-publish","format-standard","hentry","category-gan--"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/29790\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ub525\ub7ec\ub2dd \ubd84\uc57c\ub294 \ub370\uc774\ud130\uc640 \uc5f0\uc0b0 \ub2a5\ub825\uc758 \ubc1c\uc804\uc5d0 \ud798\uc785\uc5b4 \uc2e4\uc9c8\uc801\uc778 \uc131\uacfc\ub97c \ub9ce\uc774 \ub0b8 \ubd84\uc57c\uc785\ub2c8\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 GAN(Generative Adversarial Network)\uc740 \uac00\uc7a5 \ud601\uc2e0\uc801\uc778 \uacb0\uacfc\ub97c \ubcf4\uc5ec\uc900 \ubaa8\ub378 \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 \ub525\ub7ec\ub2dd \ud504\ub808\uc784\uc6cc\ud06c \uc911 \ud558\ub098\uc778 \ud30c\uc774\ud1a0\uce58(PyTorch)\ub97c \ud65c\uc6a9\ud558\uc5ec CycleGAN \ubaa8\ub378\uc744 \ud559\uc2b5\uc2dc\ucf1c \ubaa8\ub124(Monet) \uc2a4\ud0c0\uc77c\uc758 \uadf8\ub9bc\uc744 \uc0dd\uc131\ud558\ub294 \ubc29\ubc95\uc744 \uc18c\uac1c\ud560 \uac83\uc785\ub2c8\ub2e4. 1. CycleGAN \uac1c\uc694 CycleGAN\uc740 \ub450 \uac1c\uc758 \ub3c4\uba54\uc778 \uac04 \ubcc0\ud658\uc744 \uc704\ud55c GAN\uc758 \uc77c\uc885\uc785\ub2c8\ub2e4. \uc608\ub97c &hellip; \ub354 \ubcf4\uae30 &quot;\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/29790\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-28T03:00:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:51:22+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/29790\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/29790\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30\",\"datePublished\":\"2024-10-28T03:00:04+00:00\",\"dateModified\":\"2024-11-26T06:51:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/29790\/\"},\"wordCount\":60,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"GAN \ub525\ub7ec\ub2dd \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/29790\/\",\"url\":\"https:\/\/atmokpo.com\/w\/29790\/\",\"name\":\"\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-28T03:00:04+00:00\",\"dateModified\":\"2024-11-26T06:51:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/29790\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/29790\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/29790\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/29790\/","og_locale":"ko_KR","og_type":"article","og_title":"\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ub525\ub7ec\ub2dd \ubd84\uc57c\ub294 \ub370\uc774\ud130\uc640 \uc5f0\uc0b0 \ub2a5\ub825\uc758 \ubc1c\uc804\uc5d0 \ud798\uc785\uc5b4 \uc2e4\uc9c8\uc801\uc778 \uc131\uacfc\ub97c \ub9ce\uc774 \ub0b8 \ubd84\uc57c\uc785\ub2c8\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 GAN(Generative Adversarial Network)\uc740 \uac00\uc7a5 \ud601\uc2e0\uc801\uc778 \uacb0\uacfc\ub97c \ubcf4\uc5ec\uc900 \ubaa8\ub378 \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 \ub525\ub7ec\ub2dd \ud504\ub808\uc784\uc6cc\ud06c \uc911 \ud558\ub098\uc778 \ud30c\uc774\ud1a0\uce58(PyTorch)\ub97c \ud65c\uc6a9\ud558\uc5ec CycleGAN \ubaa8\ub378\uc744 \ud559\uc2b5\uc2dc\ucf1c \ubaa8\ub124(Monet) \uc2a4\ud0c0\uc77c\uc758 \uadf8\ub9bc\uc744 \uc0dd\uc131\ud558\ub294 \ubc29\ubc95\uc744 \uc18c\uac1c\ud560 \uac83\uc785\ub2c8\ub2e4. 1. CycleGAN \uac1c\uc694 CycleGAN\uc740 \ub450 \uac1c\uc758 \ub3c4\uba54\uc778 \uac04 \ubcc0\ud658\uc744 \uc704\ud55c GAN\uc758 \uc77c\uc885\uc785\ub2c8\ub2e4. \uc608\ub97c &hellip; \ub354 \ubcf4\uae30 \"\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/29790\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-28T03:00:04+00:00","article_modified_time":"2024-11-26T06:51:22+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"4\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/29790\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/29790\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30","datePublished":"2024-10-28T03:00:04+00:00","dateModified":"2024-11-26T06:51:22+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/29790\/"},"wordCount":60,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["GAN \ub525\ub7ec\ub2dd \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/29790\/","url":"https:\/\/atmokpo.com\/w\/29790\/","name":"\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-28T03:00:04+00:00","dateModified":"2024-11-26T06:51:22+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/29790\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/29790\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/29790\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\ud30c\uc774\ud1a0\uce58\ub97c \ud65c\uc6a9\ud55c GAN \ub525\ub7ec\ub2dd, CycleGAN\uc73c\ub85c \ubaa8\ub124 \uadf8\ub9bc \uadf8\ub9ac\uae30"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/29790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=29790"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/29790\/revisions"}],"predecessor-version":[{"id":29791,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/29790\/revisions\/29791"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=29790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=29790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=29790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}