Skip to content

Conversation

pasindudarshana
Copy link

This pull request adds a requirements.txt file listing all Python packages required to run the notebooks in this repository.

Currently, both CycleGAN.ipynb and pix2pix.ipynb cannot run without these dependencies, because missing packages prevent test.py from executing properly, leading to FileNotFoundError when the notebooks try to display generated images.

Added Packages:

  • torch
  • torchvision
  • tqdm
  • Pillow
  • matplotlib
  • dominate

Examples of issues without dependencies:

  1. pix2pix.ipynb
    FileNotFoundError: [Errno 2] No such file or directory: './results/facades_label2photo_pretrained/test_latest/images/100_fake_B.png'
  • Occurs because test.py fails when dominate (and other packages) are missing, so no images are generated.
  1. CycleGAN.ipynb
    FileNotFoundError: [Errno 2] No such file or directory: './results/horse2zebra_pretrained/test_latest/images/n02381460_1010_fake.png'
  • Missing dependencies prevent test.py from generating images, causing the notebook to crash.

Benefits:

  • Users can install all required packages in one command: pip install -r requirements.txt
  • Ensures test.py runs successfully, generating images needed for notebook visualization
  • Prevents runtime errors like ModuleNotFoundError and FileNotFoundError
  • Makes the repository beginner-friendly and reproducible

Testing:

  • Verified both CycleGAN.ipynb and pix2pix.ipynb run successfully after installing dependencies via the new requirements.txt.
  • No errors or conflicts were observed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant