From 5cbc8f1c9f14934d6c43f1f3b060132221dc960b Mon Sep 17 00:00:00 2001 From: Tonks684 Date: Thu, 15 Aug 2024 16:50:08 +0000 Subject: [PATCH] Commit from GitHub Actions (Build Notebooks) --- exercise.ipynb | 20 ++++++++++---------- solution.ipynb | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/exercise.ipynb b/exercise.ipynb index 86bab94..d172378 100644 --- a/exercise.ipynb +++ b/exercise.ipynb @@ -94,7 +94,7 @@ "# TO DO: Change the path to the directory where the data and code is stored is stored.\n", "import os\n", "import sys\n", - "parent_dir = os.path.abspath(\"~/data/06_image_translation/part2/\")\n", + "parent_dir = os.path.abspath(\"~/data/06_image_translation/part2/GAN_code/GANs_MI2I/\")\n", "sys.path.append(parent_dir)" ] }, @@ -122,23 +122,23 @@ "warnings.filterwarnings('ignore')\n", "\n", "# Import all the necessary hyperparameters and configurations for training.\n", - "from GAN_code.GANs_MI2I.pix2pixHD.options.train_options import TrainOptions\n", - "from GAN_code.GANs_MI2I.pix2pixHD.options.test_options import TestOptions\n", + "from pix2pixHD.options.train_options import TrainOptions\n", + "from pix2pixHD.options.test_options import TestOptions\n", "\n", "# Import Pytorch dataloader and transforms.\n", - "from GAN_code.GANs_MI2I.pix2pixHD.data.data_loader_dlmbl import CreateDataLoader\n", + "from pix2pixHD.data.data_loader_dlmbl import CreateDataLoader\n", "\n", "# Import the model architecture.\n", - "from GAN_code.GANs_MI2I.pix2pixHD.models import create_model\n", + "from pix2pixHD.models import create_model\n", "\n", "# Import helper functions for visualization and processing.\n", - "from GAN_code.GANs_MI2I.pix2pixHD.util.visualizer import Visualizer\n", - "from GAN_code.GANs_MI2I.pix2pixHD.util import util\n", + "from pix2pixHD.util.visualizer import Visualizer\n", + "from pix2pixHD.util import util\n", "\n", "# Import train script.\n", - "from GAN_code.GANs_MI2I.pix2pixHD.train_dlmbl import train as train_model\n", - "from GAN_code.GANs_MI2I.pix2pixHD.test_dlmbl import inference as inference_model\n", - "from GAN_code.GANs_MI2I.pix2pixHD.test_dlmbl import sampling\n", + "from pix2pixHD.train_dlmbl import train as train_model\n", + "from pix2pixHD.test_dlmbl import inference as inference_model\n", + "from pix2pixHD.test_dlmbl import sampling\n", "\n", "# pytorch lightning wrapper for Tensorboard.\n", "from torch.utils.tensorboard import SummaryWriter\n", diff --git a/solution.ipynb b/solution.ipynb index 94edb6d..0ec66a6 100644 --- a/solution.ipynb +++ b/solution.ipynb @@ -94,7 +94,7 @@ "# TO DO: Change the path to the directory where the data and code is stored is stored.\n", "import os\n", "import sys\n", - "parent_dir = os.path.abspath(\"~/data/06_image_translation/part2/\")\n", + "parent_dir = os.path.abspath(\"~/data/06_image_translation/part2/GAN_code/GANs_MI2I/\")\n", "sys.path.append(parent_dir)" ] }, @@ -122,23 +122,23 @@ "warnings.filterwarnings('ignore')\n", "\n", "# Import all the necessary hyperparameters and configurations for training.\n", - "from GAN_code.GANs_MI2I.pix2pixHD.options.train_options import TrainOptions\n", - "from GAN_code.GANs_MI2I.pix2pixHD.options.test_options import TestOptions\n", + "from pix2pixHD.options.train_options import TrainOptions\n", + "from pix2pixHD.options.test_options import TestOptions\n", "\n", "# Import Pytorch dataloader and transforms.\n", - "from GAN_code.GANs_MI2I.pix2pixHD.data.data_loader_dlmbl import CreateDataLoader\n", + "from pix2pixHD.data.data_loader_dlmbl import CreateDataLoader\n", "\n", "# Import the model architecture.\n", - "from GAN_code.GANs_MI2I.pix2pixHD.models import create_model\n", + "from pix2pixHD.models import create_model\n", "\n", "# Import helper functions for visualization and processing.\n", - "from GAN_code.GANs_MI2I.pix2pixHD.util.visualizer import Visualizer\n", - "from GAN_code.GANs_MI2I.pix2pixHD.util import util\n", + "from pix2pixHD.util.visualizer import Visualizer\n", + "from pix2pixHD.util import util\n", "\n", "# Import train script.\n", - "from GAN_code.GANs_MI2I.pix2pixHD.train_dlmbl import train as train_model\n", - "from GAN_code.GANs_MI2I.pix2pixHD.test_dlmbl import inference as inference_model\n", - "from GAN_code.GANs_MI2I.pix2pixHD.test_dlmbl import sampling\n", + "from pix2pixHD.train_dlmbl import train as train_model\n", + "from pix2pixHD.test_dlmbl import inference as inference_model\n", + "from pix2pixHD.test_dlmbl import sampling\n", "\n", "# pytorch lightning wrapper for Tensorboard.\n", "from torch.utils.tensorboard import SummaryWriter\n",