Tweaking the params
Making the most out of torch-dreams.
import matplotlib.pyplot as plt
import torchvision.models as models
from torch_dreams.dreamer import dreamermodel = models.inception_v3(pretrained=True)
dreamy_boi = dreamer(model)Config
config = {
"image_path": "your_image.jpg",
"layers": [model.Mixed_6c.branch1x1],
"octave_scale": 1.2,
"num_octaves": 10,
"iterations": 20,
"lr": 0.03,
"custom_func": None,
"max_rotation": 0.5,
"gradient_smoothing_coeff": 0.1,
"gradient_smoothing_kernel_size": 3
}Last updated