Codebase Update via Noah's Refactored DDPM Notebook#64
Merged
mateibejan1 merged 16 commits intocodebasefrom Dec 23, 2022
Merged
Codebase Update via Noah's Refactored DDPM Notebook#64mateibejan1 merged 16 commits intocodebasefrom
mateibejan1 merged 16 commits intocodebasefrom
Conversation
Updated DDPM with the Noah's refactored notebook version. Preemptively added p2_weighting, need to figure out if/how it works on bit sequences.
| init_dim=None, | ||
| dim_mults=(1, 2, 4, 8), | ||
| channels = 3, | ||
| bits = BITS, |
Collaborator
There was a problem hiding this comment.
What is BITS ? I'm assuming it's meant to be a type hint but it isn't defined anywhere in this script.
| # input_channels =16 | ||
|
|
||
|
|
||
| init_dim = default(init_dim, dim) |
Collaborator
There was a problem hiding this comment.
What is default ?
src/models/diffusion/ddim.py
Outdated
| def ddim_sample(self, shape, classes, time_difference=None): | ||
| batch, device = shape[0], self.device | ||
|
|
||
| time_difference = default(time_difference, self.time_difference) |
src/models/diffusion/ddim.py
Outdated
|
|
||
| img = x_start * alpha_next + pred_noise * sigma_next | ||
|
|
||
| return bits_to_decimal(img) |
Collaborator
There was a problem hiding this comment.
What is bits_to_decimal ? some sorta utility function ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The following modules have been updated: