In this assignment, we will try to create an image based on a sketch. First, we will invert a pre-trained generator to find a latent variable that closely reconstructs the given real image. In the second part, we will take a hand-drawn sketch and generate an image that fits the sketch accordingly.
Here is the target image.
Here are the results of using different weights of perceptual loss using vanilla gan (250 optimization step).
|
|
|
---|
|
|
|
---|
|
|
|
---|
|
|
|
---|
|
|
|
---|
Here are the results of using different weights of perceptual loss using stylegan and w+ latent space (1000 optimization step).
|
|
|
---|
Once again, the differences are subtle. It appears that using w+ space helps reconstruct certain aspects of the original image, like the color hue of the eyes. It is also worth noting that the optimization of w+ space is not as stable, as there is a slight chance that the output image does not resemble the target image.
Here are some interpolation results.
|
|
|
---|---|---|
|
|
|
|
|
|
Most interpolation results are very smooth. There are certain exceptions like the 3rd interpolation result. Because the color and eye color of the cats are too different, the interpolation result is not convincing.
The sketch 2 image process is almost identical to the reconstruction process, except it is trying to reconstruct the sketch under the filter of mask. Note that I did not use any regularization techniques.
Here are some of the sketch2image attempts.
|
|
</tr>
---|---|
|
|
</tr>
|
|
</tr>
|
|
</tr>
|
|
</tr>