-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
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
mint adaption for dit/animatediff #790
base: master
Are you sure you want to change the base?
Conversation
self.embed_dim = embed_dim | ||
if colorize_nlabels is not None: | ||
assert type(colorize_nlabels) == int | ||
self.register_buffer("colorize", ms.ops.standard_normal(3, colorize_nlabels, 1, 1)) | ||
self.register_buffer("colorize", mint.randn(3, colorize_nlabels, 1, 1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
random算子最好先不切
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
mean, logvar = mint.split(moments, moments.shape[1] // 2, dim=1) | ||
logvar = mint.clamp(logvar, -30.0, 20.0) | ||
std = mint.exp(0.5 * logvar) | ||
x = mean + std * mint.randn(*mean.shape) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
8d7a3da
to
0c0153d
Compare
What does this PR do?
Fixes # (issue)
Adds # (feature)
Before submitting
What's New
. Here are thedocumentation guidelines
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@xxx