Questions tagged [style-transfer]
45 questions
0
votes
0 answers
Setting up gradient-descent process
I am trying to set up gradient-descent process with Keras, I keep getting error:
from keras import backend as K
grads = K.gradients(loss, combination_image)[0]
fetch_loss_and_grads = K.function([combination_image], [loss, grads])
This is my error…
0
votes
1 answer
Fast Style Transfer in a for-loop. Each iteration takes longer. Why?
i want to run the image style transition in a for-loop. The problem is the following: Each iteration takes longer than the previous one. Why is that so? I just read another topic where someone proposed to use placeholders for the content image to…

beinando
- 477
- 4
- 18
0
votes
0 answers
How to deploy a pytorch model?
I trained a model for Style Transfer and trained it on 1000's of images. I saved the Model for every 1000 of images and also saved the Transform Network final weights. Now I want it to be saved as a model so that I can use it in an app but none of…

Stark_Tony
- 77
- 3
- 9
0
votes
1 answer
How to choose proper google style transfer model?
please help!
I've started to doing a task using Google steps from there:
https://www.tensorflow.org/tutorials/generative/style_transfer
Everything works fine with demo images which is stored by Google, but if i start to do the same job with my own…

ice1x
- 21
- 6
0
votes
2 answers
Style Transfer : Save&Restore checkpoint/model in tensorflow 1.15.0
i am a bit frustrated about saving and restoring models in tensorflow 1.15.0. I want to achieve it in a jupyter notebook / google colab notebook environment. The application is style-transfer of images.
I simply want to save the model and restore it…

beinando
- 477
- 4
- 18
0
votes
1 answer
Style transfer on large image. (in chunks?)
I am looking into various style transfer models and I noted that they all have limited resolution (when running on Pixel 3, for example, I couldn't go beyond 1,024x1,024, OOM otherwise).
I've noticed a few apps (eg this app) which appear to be doing…

Liudmila
- 13
- 1
0
votes
1 answer
Can someone explain me what happens in content loss, style loss and total loss
So I have been reading the paper published by Leon Gatys in 2016 explaing neural style transfer, but I still don't understand what is happening in content loss, style loss or total loss. Can someone explain it in simple terms what is happening in…

Stylie
- 1
0
votes
2 answers
Is it possible to perform style transfer on my own images?
I have a set of around 60 fractals (e.g
And a set of 60 snacks (e.g
And I want to apply the style of the fractal on the snack.
Is this possible?
Or must I take specifically images from an existing data set with a pre-trained images model?
Thanks

Cranjis
- 1,590
- 8
- 31
- 64
0
votes
1 answer
How to decide what layers to use for content and style loss in style transfer?
When you choose a pretrained network for style transfer to determine style and content loss you need to decide which layers best represent the perceived style and content and use them to make said losses. How does one go about choosing such layers?

Aviv Moshe Albeg
- 131
- 2
- 10
0
votes
0 answers
Large input image limitations for VGG19 transfer learning
I'm using the Tensorflow (using the Keras API) in Python 3.0. I'm using the VGG19 pre-trained network to perform style transfer on an Nvidia RTX 2070.
The largest input image that I have is 4500x4500 pixels (I have removed the fully-connected layers…

wandadars
- 1,113
- 4
- 19
- 37
0
votes
1 answer
Tiled Instance Normalization
I am currently implementing a few image style transfer algorithms for Tensorflow, but I would like to do it in tiles, so I don't have to run the entire image through the network. Everything works fine, however each image is normalized differently,…

Vitor Guizilini
- 31
- 2
0
votes
0 answers
what is mean by implement color_content_masks = deepcopy(color_content_masks) in the Torch7 code below?
if is_pooling then
for k = 1, #color_codes do
color_content_masks[k] = image.scale(color_content_masks[k], math.ceil(color_content_masks[k]:size(2)/2), math.ceil(color_content_masks[k]:size(1)/2))
color_style_masks[k] =…

Mark Ou
- 1
- 1
0
votes
1 answer
How to remove deconvolution noise in style-transfer neural network
Im studying style-transfer networks and right now working with this work and here is network description. The problem that even with adding TV loss there is still visible noise which is breaking quality of result.
Can someone recommend some articles…

Andrey Nikishaev
- 3,759
- 5
- 40
- 55
-1
votes
1 answer
How to stop "holes" from showing up in CycleGAN?
so I've been trying to create a CycleGAN PyTorch model from scratch and training it on the original vangogh2photo dataset provided by Berkeley. Admittedly, it's for fun and not for any research, but I still hate it when it doesn't work out. So, this…

Aritra Majumdar
- 19
- 3
-1
votes
1 answer
why to implement x=deepcopy(x) in the Torch7?
if is_pooling then
for k = 1, #color_codes do
color_content_masks[k] = image.scale(color_content_masks[k], math.ceil(color_content_masks[k]:size(2)/2), math.ceil(color_content_masks[k]:size(1)/2))
color_style_masks[k] =…

Mark Ou
- 1
- 1