Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Tonks684/dlmbl_material
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonks684 committed Aug 20, 2024
2 parents 0231673 + 5cbc8f1 commit 833a54e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions exercise.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
]
},
Expand Down Expand Up @@ -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",
Expand Down
20 changes: 10 additions & 10 deletions solution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
]
},
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 833a54e

Please sign in to comment.