<jupyter_start><jupyter_text>Install<jupyter_code>!git clone https://github.com/derwind/PyTorch-GAN.git
import os
os.chdir("PyTorch-GAN")
!pip install -r requirements.txt<jupyter_output><empty_output><jupyter_text>Training<jupyter_code>os.chdir("implementations/cyclegan")
os.makedirs("../../data/monet2photo", exist_ok=True)
!curl https://people.eecs.berkeley.edu/~taesung_park/CycleGAN/datasets/monet2photo.zip -o ../../data/monet2photo.zip
!unzip ../../data/monet2photo.zip -d ../../data/
!rm ../../data/monet2photo.zip
!mkdir -p ../../data/monet2photo/train/A ../../data/monet2photo/train/B ../../data/monet2photo/test/A ../../data/monet2photo/test/B
!cp -r ../../data/monet2photo/trainA/*.* ../../data/monet2photo/train/A
!cp -r ../../data/monet2photo/trainB/*.* ../../data/monet2photo/train/B
!cp -r ../../data/monet2photo/testA/*.* ../../data/monet2photo/test/A
!cp -r ../../data/monet2photo/testB/*.* ../../data/monet2photo/test/B
!rm -rf ../../data/monet2photo/trainA ../../data/monet2photo/trainB ../../data/monet2photo/testA ../../data/monet2photo/testB

!python cyclegan.py<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.242152466367713, 'fraction_numerical': 0.01883408071748879, 'mean_word_length': 3.1641791044776117, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '302751', 'license': 'MIT', 'n_tokens_mistral': 458, 'n_tokens_neox': 430, 'n_words': 52, 'path': 'implementations/cyclegan/cyclegan.ipynb', 'repo_name': 'derwind/PyTorch-GAN', 'size': '1115'}