We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def training_step(self, batch): image, label = self.get_input(batch) x_start = label x_start = (x_start) * 2 - 1
why x_start = (x_start)*2 -1 ?
Can I use x_start directly, instead of two times and minus1?
The text was updated successfully, but these errors were encountered:
Yes, it's ok. This operator makes x_start in [-1, 1] range, bacause the diffusion model's input is usually in [-1, 1].
Sorry, something went wrong.
Thanks for your quick reply.
Another question: I was wondering if there should be some modification in the rest of coding on the condition of making x_start in [-1, 1] or not.
In Chinese: 把x_start 转化为[-1,1]和不转换,直接使用其值在[0,1],这两种情况,在代码上,是不是有什么地方需要做对应的修改?
No. You can train the model directly, and this operator only has a little change on the validation results.
Thanks!
No branches or pull requests
why x_start = (x_start)*2 -1 ?
Can I use x_start directly, instead of two times and minus1?
The text was updated successfully, but these errors were encountered: