1. Home
  2. Explore
  3. Computer Science
  4. Visualizing Convolutional Networks

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Visualizing Convolutional Networks

  • 55Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Vision Tasks

What does semantic segmentation predict for an image?

55 questions

  1. 1

    What does semantic segmentation predict for an image?

    1. A

      A separate image-level category label for each object instance

    2. B

      A bounding box for each object, without labeling its individual pixels

    3. C

      A category label for every pixel, without distinguishing object instances

    4. D

      A fixed set of object labels and their corresponding bounding boxes

    Correct answer
    C

    A category label for every pixel, without distinguishing object instances

    Explanation

    Semantic segmentation assigns a label to every pixel but does not distinguish among separate instances of the same category.

  2. 2

    How does classification plus localization differ from object detection?

    1. A

      Classification plus localization detects instances, while detection predicts only one image label

    2. B

      Classification plus localization labels every pixel, while detection labels only image regions

    3. C

      Classification plus localization uses no class labels, while detection requires class labels

    4. D

      Classification plus localization assumes a fixed number of objects, while detection does not

    Correct answer
    D

    Classification plus localization assumes a fixed number of objects, while detection does not

    Explanation

    Classification plus localization assumes a fixed number of objects to locate; object detection must find instances when their number is not known in advance.

  3. 3

    In pose recognition, what does a model commonly regress?

    1. A

      The boundaries of every object instance

    2. B

      The category label of every image pixel

    3. C

      The coordinates of joints in a human body

    4. D

      The number of image regions containing a texture

    Correct answer
    C

    The coordinates of joints in a human body

    Explanation

    Pose recognition can be formulated as regression to the locations of different joints in a human body.

  4. 4

    Which feature is central to object detection as described in the lecture?

    1. A

      It assigns one label to the whole image and does not locate objects

    2. B

      It assigns a category to each pixel but does not distinguish instances

    3. C

      It predicts a fixed set of joint coordinates for a single person

    4. D

      It finds all instances of selected categories without knowing their number beforehand

    Correct answer
    D

    It finds all instances of selected categories without knowing their number beforehand

    Explanation

    Object detection identifies and localizes every instance of the categories of interest, even though the number of instances in an image is not known in advance.

  5. 5

    What does instance segmentation add to object detection?

    1. A

      It labels the pixels belonging to each detected object instance

    2. B

      It predicts joint locations instead of object locations

    3. C

      It requires the number of instances to be fixed in advance

    4. D

      It replaces object categories with a single image-level label

    Correct answer
    A

    It labels the pixels belonging to each detected object instance

    Explanation

    Instance segmentation combines detecting object instances with labeling the pixels that belong to each individual instance.

  6. 6

    What are the dimensions and number of filters in AlexNet's first convolutional layer, as described?

    1. A

      64 filters, each with dimensions 3×11×113 \times 11 \times 113×11×11

    2. B

      64 filters, each with dimensions 16×7×716 \times 7 \times 716×7×7

    3. C

      20 filters, each with dimensions 3×11×113 \times 11 \times 113×11×11

    4. D

      128 filters, each with dimensions 3×13×133 \times 13 \times 133×13×13

    Correct answer
    A

    64 filters, each with dimensions 3×11×113 \times 11 \times 113×11×11

    Explanation

    The lecture describes AlexNet's first convolutional layer as having 64 filters, each with dimensions 3×11×113 \times 11 \times 113×11×11.

  7. 7

    What patterns commonly appear when visualizing the learned filters in the first layer of image ConvNets?

    1. A

      Complete object silhouettes and scene layouts

    2. B

      Random noise with no recurring visual structure

    3. C

      Oriented edges and patterns involving opposing colors

    4. D

      Text regions and complete semantic segmentation masks

    Correct answer
    C

    Oriented edges and patterns involving opposing colors

    Explanation

    First-layer filters commonly resemble oriented edges and patterns with opposing colors, such as orange and blue.

  8. 8

    Why can a filter's weights indicate what the filter responds to?

    1. A

      The filter weights directly encode the class label predicted for an image

    2. B

      An input matching the filter weights produces a large inner product

    3. C

      A filter responds most strongly when its input is orthogonal to its weights

    4. D

      The filter weights show which training images were used most often

    Correct answer
    B

    An input matching the filter weights produces a large inner product

    Explanation

    A convolution computes inner products between filter weights and input patches. Under a norm constraint, an input matching the weights maximizes that inner product.

  9. 9

    Why is visualizing the first convolutional filters especially direct?

    1. A

      They are connected only to the network's predicted bounding boxes

    2. B

      They represent the final class scores of the network

    3. C

      They are trained without using any image data

    4. D

      They operate directly on the image's color channels

    Correct answer
    D

    They operate directly on the image's color channels

    Explanation

    The first convolutional layer acts directly on the image pixels and color channels, so its filters can be displayed as small color images.

  10. 10

    What does the similarity of first-layer filters across many ConvNets suggest?

    1. A

      Different image ConvNets always learn identical filters in every layer

    2. B

      The final layer is responsible for detecting all low-level edges

    3. C

      The training data and architecture have no effect on any learned feature

    4. D

      Different image ConvNets often learn oriented edges and color-opponent patterns early

    Correct answer
    D

    Different image ConvNets often learn oriented edges and color-opponent patterns early

    Explanation

    The lecture notes that first-layer filters often show similar edge and color-opponent patterns across architectures and training data, resembling early features in human vision.

  11. 11

    Why are the weights of an intermediate convolutional layer harder to interpret as images?

    1. A

      They are class scores rather than convolutional weights

    2. B

      They operate on learned feature activations rather than directly on image pixels

    3. C

      They are connected only to the input image's red channel

    4. D

      They contain no spatial structure and are always random

    Correct answer
    B

    They operate on learned feature activations rather than directly on image pixels

    Explanation

    Intermediate filters act on activations produced by earlier layers. Their weights therefore describe patterns in a learned feature representation, not directly in raw pixels.

  12. 12

    What is an important caveat when displaying convolutional weights as images?

    1. A

      The displayed colors always equal the filter's output probabilities

    2. B

      Weights may be rescaled for display, and visualizations may omit biases

    3. C

      The displayed weights are guaranteed to lie between zero and one

    4. D

      The visualization automatically includes every activation in the network

    Correct answer
    B

    Weights may be rescaled for display, and visualizations may omit biases

    Explanation

    Weights may have arbitrary ranges and are often rescaled for visualization; such displays may also omit layer biases.

  13. 13

    What can nearest neighbors in a trained network's feature space reveal compared with pixel-space neighbors?

    1. A

      They can be visually different in pixels yet similar in semantic content

    2. B

      They are guaranteed to belong to the same exact image instance

    3. C

      They reveal only the image's original file format

    4. D

      They must have nearly identical pixel values and backgrounds

    Correct answer
    A

    They can be visually different in pixels yet similar in semantic content

    Explanation

    Images that are distant in raw pixels can be close in a network's learned feature space when they have similar semantic content, such as elephants in different positions.

  14. 14

    Why may semantically similar images be close in AlexNet's feature space even though classification training did not explicitly enforce that closeness?

    1. A

      The classification loss always includes a nearest-neighbor constraint

    2. B

      The images are first replaced by identical pixel arrays

    3. C

      The similarity can emerge as a byproduct of supervised classification training

    4. D

      AlexNet was necessarily trained with a triplet loss

    Correct answer
    C

    The similarity can emerge as a byproduct of supervised classification training

    Explanation

    The lecture describes this feature-space similarity as a useful byproduct of classification training, not as an explicitly imposed requirement in AlexNet.

  15. 15

    How does t-SNE help visualize a high-dimensional feature representation?

    1. A

      It maps features into a lower-dimensional space for visualization while aiming to preserve neighborhood structure

    2. B

      It converts features into class labels without using image data

    3. C

      It reconstructs the exact original pixels from feature vectors

    4. D

      It assigns a separate convolutional filter to every training image

    Correct answer
    A

    It maps features into a lower-dimensional space for visualization while aiming to preserve neighborhood structure

    Explanation

    t-SNE is a nonlinear dimensionality-reduction method used to map high-dimensional features into a space, often two-dimensional, that can be visualized.

  16. 16

    What can clusters in a t-SNE visualization of raw handwritten-digit pixels indicate?

    1. A

      Every digit is represented by an identical point

    2. B

      The reduced axes directly correspond to specific pixel locations

    3. C

      The method has preserved all pairwise pixel distances exactly

    4. D

      Images of similar digits tend to group together in the reduced space

    Correct answer
    D

    Images of similar digits tend to group together in the reduced space

    Explanation

    When t-SNE is applied to handwritten-digit pixels, visually similar digits can form natural clusters in the two-dimensional visualization.

  17. 17

    What is an activation volume in a convolutional network?

    1. A

      The three-dimensional collection of outputs produced by a layer

    2. B

      The set of training labels assigned to an image

    3. C

      A two-dimensional display of the network's filter weights

    4. D

      A single class score produced by the final classifier

    Correct answer
    A

    The three-dimensional collection of outputs produced by a layer

    Explanation

    A layer's output can be viewed as a three-dimensional activation volume, with individual two-dimensional slices called activation maps.

  18. 18

    Does an activation map necessarily have the same width and height as the input image?

    1. A

      Yes; every layer preserves the input's exact spatial dimensions

    2. B

      Yes; activation maps are defined only for unpooled networks

    3. C

      No; activation maps always have only one spatial position

    4. D

      No; convolutional stride or pooling may reduce its spatial dimensions

    Correct answer
    D

    No; convolutional stride or pooling may reduce its spatial dimensions

    Explanation

    Stride and pooling can downsample feature maps, so their dimensions need not match the input, though they generally scale with input size.

  19. 19

    How can maximally activating patches help interpret a neuron or feature?

    1. A

      They identify the exact training examples that determined every network weight

    2. B

      They show image regions associated with the feature's strongest activations

    3. C

      They reveal the feature's output for every possible image

    4. D

      They guarantee that the feature detects a named object category

    Correct answer
    B

    They show image regions associated with the feature's strongest activations

    Explanation

    By finding highly activated locations across many images and displaying their corresponding input patches, one can infer what visual patterns a feature may respond to.

  20. 20

    Why can features in deeper layers respond to larger structures in an image?

    1. A

      Their neurons generally have larger receptive fields

    2. B

      They reuse the original pixels without earlier transformations

    3. C

      They always use larger input images than earlier layers

    4. D

      Their filters are necessarily wider than the image itself

    Correct answer
    A

    Their neurons generally have larger receptive fields

    Explanation

    Deeper neurons receive information through earlier layers and therefore generally have larger receptive fields, allowing them to respond to larger image regions.

  21. 21

    In a convolutional layer, how are neurons at different spatial positions within one channel related?

    1. A

      They all produce the same activation for every input

    2. B

      They are connected only to a single fixed pixel

    3. C

      They use the same filter weights at different image locations

    4. D

      They each have an independently learned filter for one image

    Correct answer
    C

    They use the same filter weights at different image locations

    Explanation

    Convolution shares a filter's weights across spatial locations, so positions in the same channel use the same learned filter on different parts of the input.

  22. 22

    In an occlusion experiment, what does a large drop in a class score after masking a region suggest?

    1. A

      The masked region must have been a dead ReLU for every input

    2. B

      The masked region was important to the network's prediction for that image

    3. C

      The masked region was necessarily classified as a separate object

    4. D

      The network has become invariant to the masked region

    Correct answer
    B

    The masked region was important to the network's prediction for that image

    Explanation

    Occlusion replaces a patch with a mean pixel value; if the class score changes greatly, the masked region likely contributed to that prediction.

  23. 23

    What does a saliency map based on the class-score gradient indicate?

    1. A

      The final class score after every possible occlusion

    2. B

      The exact category assigned independently to each pixel

    3. C

      Which training images were nearest to the current image

    4. D

      How sensitive the class score is to small changes in each input pixel

    Correct answer
    D

    How sensitive the class score is to small changes in each input pixel

    Explanation

    The gradient of a class score with respect to image pixels gives a first-order indication of how small pixel changes could affect that score.

  24. 24

    How does guided backpropagation differ from ordinary backpropagation through ReLUs?

    1. A

      It computes gradients only for the network's final weights

    2. B

      It passes negative gradients through ReLUs while blocking positive gradients

    3. C

      It replaces all ReLU outputs with class probabilities

    4. D

      It passes positive gradients through ReLUs while blocking negative gradients

    Correct answer
    D

    It passes positive gradients through ReLUs while blocking negative gradients

    Explanation

    Guided backpropagation modifies the backward pass through ReLUs by keeping positive gradients and not propagating negative ones, so it is not the true gradient.

  25. 25

    Which statement best describes using saliency with an interactive segmentation method such as GrabCut?

    1. A

      It can help isolate an object, but may be less reliable than supervised segmentation

    2. B

      It always produces accurate masks without any additional method

    3. C

      It replaces the need for image pixels with class labels alone

    4. D

      It guarantees instance boundaries for every object category

    Correct answer
    A

    It can help isolate an object, but may be less reliable than supervised segmentation

    Explanation

    Saliency can be combined with GrabCut to produce object segments, but the approach is brittle and generally less reliable than a network trained with segmentation supervision.

  26. 26

    In gradient-based image synthesis, what is optimized when a pretrained network's weights are held fixed?

    1. A

      The network's training labels are adjusted to improve its predictions

    2. B

      The input image pixels are adjusted to increase a chosen neuron value or class score

    3. C

      The filter weights are retrained to match a new image

    4. D

      The number of layers is changed until a class score increases

    Correct answer
    B

    The input image pixels are adjusted to increase a chosen neuron value or class score

    Explanation

    The network weights remain fixed; gradient ascent updates the pixels of a synthesized image to increase a selected score or activation.

  27. 27

    What is the basic iterative procedure for synthesizing an image that maximizes a network response?

    1. A

      Mask every input patch, choose the lowest score, then freeze the image

    2. B

      Reduce the image to two dimensions, then copy the nearest training image

    3. C

      Initialize new network weights, compute a label, then retrain on one image

    4. D

      Initialize an image, compute its response and pixel gradient, then update its pixels repeatedly

    Correct answer
    D

    Initialize an image, compute its response and pixel gradient, then update its pixels repeatedly

    Explanation

    The procedure initializes an image, runs it through the fixed network, computes the response gradient with respect to pixels, and makes repeated gradient-ascent updates.

  28. 28

    Why add a regularizer when synthesizing an image to maximize a class score?

    1. A

      To guarantee that the generated image matches a training example exactly

    2. B

      To ensure the network's weights change during image optimization

    3. C

      To discourage unnatural images that exploit peculiarities of the network

    4. D

      To remove the need to calculate gradients with respect to pixels

    Correct answer
    C

    To discourage unnatural images that exploit peculiarities of the network

    Explanation

    Without regularization, optimization can produce images that score highly but resemble noise rather than natural images.

  29. 29

    What limitation does a simple L2L_2L2​ image regularizer have in class visualization?

    1. A

      It directly forces the image to match a particular class prototype

    2. B

      It prevents the image from changing during gradient ascent

    3. C

      It ensures all synthesized images have realistic object shapes and colors

    4. D

      It can help constrain the image but does not by itself provide a strong natural-image prior

    Correct answer
    D

    It can help constrain the image but does not by itself provide a strong natural-image prior

    Explanation

    The lecture describes an L2L_2L2​ penalty as an early, simple regularizer that can be useful but is not by itself a semantically strong way to ensure natural-looking images.

  30. 30

    Why can unconstrained gradient ascent produce unusual colors or pixel values?

    1. A

      Gradient ascent automatically sets all pixels to their dataset mean

    2. B

      The class score contains no information about the input image

    3. C

      The optimization may not enforce the valid pixel range of natural images

    4. D

      Convolutional networks cannot process images with color channels

    Correct answer
    C

    The optimization may not enforce the valid pixel range of natural images

    Explanation

    Valid images have bounded pixel values, but unconstrained optimization may move pixels outside that range, so displayed colors may be misleading.

  31. 31

    What is the purpose of operations such as blurring and clipping small values during image optimization?

    1. A

      They force every generated pixel to equal the original image

    2. B

      They remove all high-level features from the network

    3. C

      They turn gradient ascent into nearest-neighbor classification

    4. D

      They act as additional constraints that encourage smoother, cleaner images

    Correct answer
    D

    They act as additional constraints that encourage smoother, cleaner images

    Explanation

    Periodic blurring and clipping can serve as projection-like regularizers, encouraging spatial smoothness and reducing unhelpful pixel patterns.

  32. 32

    Why can class visualizations for one category have multiple distinct appearances?

    1. A

      The feature space has no relationship to image content

    2. B

      The network necessarily assigns a different label to every pixel

    3. C

      A category can contain multiple visual modes, so optimization may find different kinds of examples

    4. D

      The image regularizer forces every class into one fixed appearance

    Correct answer
    C

    A category can contain multiple visual modes, so optimization may find different kinds of examples

    Explanation

    A class may be multimodal; for example, grocery-store images can show either produce displays or people shopping. Different modes can lead to different visualizations.

  33. 33

    What is a fooling image in the described experiment?

    1. A

      A slightly altered image that people perceive similarly but a network classifies as another category

    2. B

      A masked image that always receives a lower confidence score

    3. C

      An image with its class label removed before network training

    4. D

      A random image that every network classifies as the same category

    Correct answer
    A

    A slightly altered image that people perceive similarly but a network classifies as another category

    Explanation

    Gradient-based changes can cause an image, such as an elephant, to be classified as a different category even though the altered image still looks much the same to people.

  34. 34

    What is the main operation in DeepDream?

    1. A

      Minimizing the distance between two class labels

    2. B

      Finding the nearest training image in raw pixel space

    3. C

      Replacing all activations at a chosen layer with zeros

    4. D

      Amplifying activations already present at a chosen network layer

    Correct answer
    D

    Amplifying activations already present at a chosen network layer

    Explanation

    DeepDream uses a layer's activations to guide updates to the input, amplifying features the network already detects in the image.

  35. 35

    What does setting the backward signal to a layer's activation in DeepDream encourage?

    1. A

      An increase in the magnitude of the features at that layer

    2. B

      A decrease in every activation at that layer

    3. C

      A change in the network's learned filter weights

    4. D

      An exact reconstruction of the network's training labels

    Correct answer
    A

    An increase in the magnitude of the features at that layer

    Explanation

    This procedure corresponds to increasing the norm of the layer's feature activations, thereby amplifying patterns already detected in the image.

  36. 36

    Why can DeepDream applied to an ImageNet-trained network often produce dog-like patterns?

    1. A

      DeepDream is trained only on dog images

    2. B

      Many ImageNet categories are dog breeds, so dog-related features are common

    3. C

      The network has no features for objects other than dogs

    4. D

      The method replaces every non-dog activation with a dog label

    Correct answer
    B

    Many ImageNet categories are dog breeds, so dog-related features are common

    Explanation

    The lecture notes that roughly 200 of ImageNet's 1,000 categories are dogs, which helps explain why dog-like patterns appear frequently in these visualizations.

  37. 37

    How can DeepDream results differ when applied to a network trained on scene categories rather than ImageNet object categories?

    1. A

      They cannot be generated because scene networks have no convolutional layers

    2. B

      They show only the exact pixel values of the network's inputs

    3. C

      They must show the same dog-like patterns because training data cannot matter

    4. D

      They may emphasize scene-related structures such as buildings, bridges, or mountains

    Correct answer
    D

    They may emphasize scene-related structures such as buildings, bridges, or mountains

    Explanation

    A network trained on scene categories can amplify features related to scenes, producing patterns such as buildings, bridges, or mountain ranges.

  38. 38

    What does feature inversion attempt to do?

    1. A

      Recover the network's training set from its filter weights

    2. B

      Find a class label whose score matches the input image's pixel values

    3. C

      Create an image whose network features match those recorded from a target image

    4. D

      Create a new feature vector with no corresponding image

    Correct answer
    C

    Create an image whose network features match those recorded from a target image

    Explanation

    Feature inversion records a target image's representation and optimizes a new image to match that representation.

  39. 39

    What does a nearly exact reconstruction from an early network layer suggest?

    1. A

      That layer's features retain much of the image's low-level information

    2. B

      That the reconstruction was generated from class labels alone

    3. C

      That later layers necessarily preserve more pixel detail than earlier ones

    4. D

      That the layer has already discarded nearly all spatial information

    Correct answer
    A

    That layer's features retain much of the image's low-level information

    Explanation

    In the described feature-inversion results, an early layer can preserve enough information to reconstruct the image almost exactly.

  40. 40

    What may be lost when reconstructing an image from deeper network features?

    1. A

      Some precise pixel, color, and texture details, while broad semantic structure remains

    2. B

      The class label, while every pixel is reproduced exactly

    3. C

      Only the image's file name and original storage location

    4. D

      All information about the image's general objects and spatial layout

    Correct answer
    A

    Some precise pixel, color, and texture details, while broad semantic structure remains

    Explanation

    Deeper features can preserve broad spatial and semantic structure while losing details such as exact colors, textures, and pixel values.

  41. 41

    What does a total variation regularizer encourage in a synthesized image?

    1. A

      Large differences between every pair of neighboring pixels

    2. B

      A fixed number of object instances in the image

    3. C

      Similarity between neighboring pixels, promoting spatial smoothness

    4. D

      A match between the image and the network's class probabilities

    Correct answer
    C

    Similarity between neighboring pixels, promoting spatial smoothness

    Explanation

    Total variation penalizes differences between adjacent pixels, encouraging spatial smoothness in the generated image.

  42. 42

    How does the classical texture-synthesis approach described in the lecture build an image?

    1. A

      It copies the entire input texture patch without changing its arrangement

    2. B

      It optimizes a neural network's class score for every pixel

    3. C

      It predicts each pixel independently from a class label

    4. D

      It fills pixels in scan-line order using patches similar to already generated neighborhoods

    Correct answer
    D

    It fills pixels in scan-line order using patches similar to already generated neighborhoods

    Explanation

    The classical method proceeds pixel by pixel, using a neighborhood of already generated pixels to find a similar patch and copy a pixel from the input texture.

  43. 43

    How is a Gram matrix used as a texture descriptor in a convolutional network?

    1. A

      It stores the class score for each feature channel

    2. B

      It measures only the nearest-neighbor distance between input images

    3. C

      It records the exact spatial coordinate of every image pixel

    4. D

      It aggregates pairwise co-occurrences of feature channels across spatial locations

    Correct answer
    D

    It aggregates pairwise co-occurrences of feature channels across spatial locations

    Explanation

    The Gram matrix aggregates products of feature activations across spatial positions, describing how features tend to co-occur.

  44. 44

    What is an important consequence of averaging feature co-occurrences to form a Gram matrix?

    1. A

      It guarantees that two images with the same Gram matrix have identical pixels

    2. B

      It discards the original spatial arrangement while retaining feature co-occurrence statistics

    3. C

      It converts the feature map into a class label

    4. D

      It preserves every feature's exact position in the image

    Correct answer
    B

    It discards the original spatial arrangement while retaining feature co-occurrence statistics

    Explanation

    A Gram matrix summarizes feature co-occurrences across the image, so it does not retain the original spatial layout.

  45. 45

    Why can a Gram matrix be computed efficiently from a feature volume?

    1. A

      The feature volume can be reshaped into a matrix and multiplied by its transpose

    2. B

      All spatial feature vectors can be discarded before calculation

    3. C

      It can be computed without evaluating any network features

    4. D

      The method requires only the image's class label

    Correct answer
    A

    The feature volume can be reshaped into a matrix and multiplied by its transpose

    Explanation

    Reshaping the feature volume into a channel-by-spatial-position matrix allows the Gram matrix to be computed with a matrix product.

  46. 46

    How can the choice of network layer affect neural texture synthesis?

    1. A

      Deeper layers always preserve more exact pixel positions than earlier ones

    2. B

      Only the first layer can represent any color or texture information

    3. C

      Every layer produces exactly the same texture descriptor

    4. D

      Different layers capture patterns at different scales, with deeper layers often representing larger structures

    Correct answer
    D

    Different layers capture patterns at different scales, with deeper layers often representing larger structures

    Explanation

    Matching Gram matrices at different layers can emphasize different scales of texture; deeper layers can capture larger patterns such as whole rocks or cranberries.

  47. 47

    What are the two main ingredients in the described neural style-transfer objective?

    1. A

      An object-detection loss and a joint-location loss

    2. B

      A pixel-space nearest-neighbor match and a class-label match

    3. C

      A content-feature match and a style Gram-matrix match

    4. D

      A saliency-map match and an occlusion-probability match

    Correct answer
    C

    A content-feature match and a style Gram-matrix match

    Explanation

    Style transfer combines a feature reconstruction objective for the content image with a Gram-matrix objective for the style image.

  48. 48

    How can the relative strength of content and style in a transferred image be adjusted?

    1. A

      By changing the number of class labels in the content image

    2. B

      By ensuring the two losses have identical values at every iteration

    3. C

      By replacing the style image with the network's final layer

    4. D

      By changing the relative weights of the content and style losses

    Correct answer
    D

    By changing the relative weights of the content and style losses

    Explanation

    The balance between content preservation and style matching can be adjusted by changing the weights assigned to their respective loss terms.

  49. 49

    What effect can resizing a style image have before computing its Gram matrices?

    1. A

      It changes the content image's class label

    2. B

      It can affect the scale of style features represented in the output

    3. C

      It removes the need for a content-feature loss

    4. D

      It forces the output to reproduce the style image's exact spatial layout

    Correct answer
    B

    It can affect the scale of style features represented in the output

    Explanation

    Resizing the style image changes the scale of the patterns captured by its features and can therefore influence the scale of style in the result.

  50. 50

    Why can optimization-based style transfer be slow?

    1. A

      It cannot use a pretrained network to compute features

    2. B

      It requires many forward and backward passes for each generated image

    3. C

      It needs a separate human label for every output pixel

    4. D

      It requires training a new classifier for every content image

    Correct answer
    B

    It requires many forward and backward passes for each generated image

    Explanation

    The optimization-based method repeatedly evaluates the network and updates image pixels, which can be especially costly for high-resolution images.

  51. 51

    How does a feed-forward style-transfer network speed up image generation?

    1. A

      It learns to produce a stylized image directly from the content image in one forward pass

    2. B

      It performs more optimization steps but uses no network features

    3. C

      It replaces the content image with its nearest training example

    4. D

      It skips all image processing and returns the style image unchanged

    Correct answer
    A

    It learns to produce a stylized image directly from the content image in one forward pass

    Explanation

    After training, the feed-forward network produces a stylized output directly, avoiding a separate iterative optimization for each new image.

  52. 52

    How is the feed-forward stylization network trained in the described approach?

    1. A

      Its weights are updated using content and style losses

    2. B

      It is trained by copying a fixed output image for every input

    3. C

      It is trained only to predict the original image's category

    4. D

      Its weights are frozen while only test-image pixels are optimized

    Correct answer
    A

    Its weights are updated using content and style losses

    Explanation

    The training process uses the content and style losses to calculate gradients that update the feed-forward network's weights.

  53. 53

    What architectural and normalization choices are described for a fast style-transfer network?

    1. A

      An encoder-decoder-like network with upsampling and instance normalization

    2. B

      A single fully connected layer that outputs a class label

    3. C

      A detection network with bounding-box outputs and batch normalization only

    4. D

      A nearest-neighbor classifier with max pooling and no learned layers

    Correct answer
    A

    An encoder-decoder-like network with upsampling and instance normalization

    Explanation

    The described feed-forward network resembles an encoder-decoder, with downsampling and upsampling; instance normalization was reported to improve results compared with batch normalization.

  54. 54

    What limitation did early feed-forward style-transfer methods have?

    1. A

      They required a new network for every content image

    2. B

      They preserved style but could not accept a content image

    3. C

      A separate network was needed for each style to be applied

    4. D

      They could not produce an image from a forward pass

    Correct answer
    C

    A separate network was needed for each style to be applied

    Explanation

    The early approach trained one feed-forward network for each fixed style, which could be costly when many styles were needed.

  55. 55

    What capability can a conditional multi-style network provide?

    1. A

      It guarantees that every style produces the same output

    2. B

      It removes the need to identify which style is requested

    3. C

      One trained network can apply different styles, or blends of styles, at test time

    4. D

      One style image can be applied only to one fixed content image

    Correct answer
    C

    One trained network can apply different styles, or blends of styles, at test time

    Explanation

    The described approach conditions on the requested style and can use one trained network to apply multiple styles, including blends, at test time.

Question 1 of 55
Question 1 of 55

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent