Hi! How can I replace the random noise with actual images in the Bedroom generator of lesson 7? I’d like to feed in images of kitchens and use them as a base for image generation instead of noise. The goal is to make the kitchen images look like bedrooms. Below is the data function of the lesson 7 bedroom notebook. I haven’t found a way to replace the “noise_sz=100” of line 2 with a path to the kitchen images. Any ideas? Am I in a completely wrong direction? Thanks!
def get_data(bs, size):
return (GANItemList.from_folder(path_bedrooms, noise_sz=100)
.split_none()
.label_from_func(noop)
.transform(tfms=[[crop_pad(size=size, row_pct=(0,1), col_pct=(0,1))], []], size=size, tfm_y=True)
.databunch(bs=bs)
.normalize(stats = [torch.tensor([0.5,0.5,0.5]), torch.tensor([0.5,0.5,0.5])], do_x=False, do_y=True))