Neural Style Transfer
← Question BankSign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark
Deep Learning & Generative AI
Convolution Neural Networks
Interview questions on Convolution Neural Networks.
5 questions
Sign in to bookmark
Neural Style Transfer
Q2. Complete the sentence: When using the VGG-19 CNN for neural-style transfer, there different images are involved. Namely they are: `[...]`, `[...]` and `[...]`
Neural Style Transfer
Q3. Refer to below figure and answer the following questions: <table align='center'> <tr> <td align="center"> <img src="img/nst-1.png" alt= "Artistic style transfer using the style of Francis Picabia’s Udnie painting" style="max-width:70%;" /> </td> </tr> <tr> <td align="center">Artistic style transfer using the style of Francis Picabia’s Udnie painting</td> </tr> </table> 1. Which loss is being utilized during the training process? 2. Briefly describe the use of activations in the training process.
Neural Style Transfer
Q4. Still referring to above image: 1. How are the activations utilized in comparing the content of the content image to the content of the combined image? 2. How are the activations utilized in comparing the style of the content image to the style of the combined image?
Neural Style Transfer
Q5. Still referring to the image in **Q18**. For a new style transfer algorithm, a data scientist extracts a feature vector from an image using a pre-trained `ResNet34 CNN`. ```python import torchvision.models as models ... res_model = models.resnet34(pretrained=True) ``` He then defines the cosine similarity between two vectors: $u = {u_1,u_2,....,u_N}$ $v = {v_1,v_2,....,v_N}$ as:$$
sim(u, v) = \frac{u.v}{|u||v|} = \frac{\sum_{i=1}^Nu_iv_i}{\sqrt{(\sum_{i=1}^Nu_i^2)(\sum_{i=1}^Nv_i^2)}}