This commit is contained in:
Phil Wang
2022-04-12 10:12:42 -07:00
parent 2ab042b862
commit 24b428bdfc
2 changed files with 20 additions and 0 deletions

View File

@@ -42,6 +42,24 @@ def freeze_model_and_make_eval_(model):
# diffusion prior
class Transformer(nn.Module):
def __init__(
self,
*,
dim,
dim_head = 64,
heads = 8,
):
super().__init__()
def forward(
self,
x,
mask = None # we will need a mask here, due to variable length of the text encodings - also offer dalle1 strategy with padding token embeddings
):
return x
class DiffusionPrior(nn.Module):
def __init__(
self,