Skip to content

关于ddim时间步的问题 / Question about ddim_time_seq #19

@CuiEM

Description

@CuiEM

Q1: 为什么你们的diffusion反向推理的时候的 ddim_timestep_seq 是[991, 981, 971, ... , 11, 1],不应该是[1000, 990, 980, ... , 20, 10]吗?也就是说反向推理时高斯噪声对应的是 x_991 而不是 x_1000
Q2: 而且将时间作为求alpha的索引的时候不应该减 1 吗?

Q1: Why the ddim_timestep_seq in your diffusion reverse inference is [991, 981, 971, ... , 11, 1]? Shouldn't it be [1000, 990, 980, ... , 20, 10]? That is to say, when inferring backward, the Gaussian noise corresponds to x_991 instead of x_1000
Q2: And shouldn't 1 be subtracted when using time as the index for alpha?

你们的代码 / your code:
self.ddim_timestep_seq = np.asarray(list(range(0, self.noise_steps, self.noise_steps // self.ddim_timesteps))) + 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions