Dreamify an Image
1 2 3 4 5 6 7 8 9 10 11 | deep_dreamify(
base_image_path,
output_image_path,
loss_and_grads = calc_loss_and_grads(model = load_imagenet_model(),
layer_contributions = list(mixed2 = 0.2, mixed3 = 3, mixed4 = 2, mixed5 = 1.5)),
step = 0.01,
num_octave = 3,
octave_scale = 1.4,
iterations = 20,
max_loss = 10
)
|
loss_and_grads |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.