stylegan-v icon indicating copy to clipboard operation
stylegan-v copied to clipboard

Linearly spaced periods stated in Appendix B.3 is not correct

Open johannwyh opened this issue 1 year ago • 1 comments

Your equation in Appendix B.3 states that the sigma vector is linearly spaced between omega_min and omega_max.

However, your code in src/training/motion.py here implements frequencies as log-linearly spaced:

def construct_linspaced_frequencies(num_freqs: int, min_period_len: int, max_period_len: int) -> torch.Tensor:
    freqs = 2 * np.pi / (2 ** np.linspace(np.log2(min_period_len), np.log2(max_period_len), num_freqs)) # [num_freqs]
    freqs = torch.from_numpy(freqs[::-1].copy().astype(np.float32)).unsqueeze(0) # [1, num_freqs]

    return freqs

as the generated sequence satisfies that sigma_{i+1}/sigma_i = C

From my perspective, your code implementation makes more sense, so perhaps you should refine the paper?

johannwyh avatar Aug 31 '22 09:08 johannwyh

Hi @johannwyh , I apologize for not replying, I had quite some mess with my projects/deadlines and then lost this thread.

You are right about the error, thank you for point this out. We will update the paper.

universome avatar Dec 28 '22 12:12 universome