You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for(leti=0;i<imgSize;i++){//loop through all pixels, and select the corresponding value for the vector with the randomness generated from our Noise Loop function
a[i]=n[i].value(angle);
}
2. In the video you asked about the diameter. You're right in that it kind of sets how much randomness there is - it determines the size of the walk through the simplex noise input space. Because the loop goes round using the angle, the diameter effectively kind of determines the noise octave/frequency and how much total variation there will be.
3. The image size has been conflated with the number of dimensions in the latent vector.
In StyleGAN, the latent vector has 512 dimensions. The size of the output image is independent to the latent vector and depends on the pretrained model used.
In stylegan-transition.js, the variable imgSize should instead be called something like latentDimensions. For example here there is a NoiseLoop for each dimension of the latent vector.
BTW good job with this, it's a great use for simplex noise. It's an elegant method of making random looping walks through latent space.
Just a few comments related to your code.
1. You no longer need
data/landscape.js
to set the starting latent becausea
is immediately overridden using the noise loops:runway-stylegan-animations/js/stylegan-transition.js
Lines 28 to 30 in fd2ca7e
2. In the video you asked about the diameter. You're right in that it kind of sets how much randomness there is - it determines the size of the walk through the simplex noise input space. Because the loop goes round using the angle, the diameter effectively kind of determines the noise octave/frequency and how much total variation there will be.
3. The image size has been conflated with the number of dimensions in the latent vector.
In StyleGAN, the latent vector has 512 dimensions. The size of the output image is independent to the latent vector and depends on the pretrained model used.
For example here are the sizes of the pretrained models from https://github.com/NVlabs/stylegan
In
stylegan-transition.js
, the variableimgSize
should instead be called something likelatentDimensions
. For example here there is a NoiseLoop for each dimension of the latent vector.runway-stylegan-animations/js/stylegan-transition.js
Lines 17 to 19 in fd2ca7e
The text was updated successfully, but these errors were encountered: