This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """CycleGAN: generate data + train. Run on RunPod GPU pod.""" | |
| import random,math,itertools,signal,sys,time,argparse | |
| from pathlib import Path | |
| import numpy as np,torch,torch.nn as nn | |
| from PIL import Image,ImageDraw | |
| from torch.utils.data import Dataset,DataLoader | |
| from tqdm import tqdm | |
| # === DATA GENERATION === |