mirror of
https://github.com/lucidrains/DALLE2-pytorch.git
synced 2025-12-18 17:34:18 +01:00
more fixes to config
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
"dim_mults": [1, 2, 4, 8],
|
"dim_mults": [1, 2, 4, 8],
|
||||||
"attn_dim_head": 16,
|
"attn_dim_head": 16,
|
||||||
"attn_heads": 4,
|
"attn_heads": 4,
|
||||||
"self_attn": [false, true, true, true]
|
"self_attn": [false, true, true, true]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"clip": {
|
"clip": {
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ class UnetConfig(BaseModel):
|
|||||||
cond_on_text_encodings: Optional[bool] = None
|
cond_on_text_encodings: Optional[bool] = None
|
||||||
cond_dim: Optional[int] = None
|
cond_dim: Optional[int] = None
|
||||||
channels: int = 3
|
channels: int = 3
|
||||||
self_attn: ListOrTuple[int]
|
self_attn: ListOrTuple[bool]
|
||||||
attn_dim_head: int = 32
|
attn_dim_head: int = 32
|
||||||
attn_heads: int = 16
|
attn_heads: int = 16
|
||||||
init_cross_embed: bool = True
|
init_cross_embed: bool = True
|
||||||
@@ -245,7 +245,7 @@ class DecoderConfig(BaseModel):
|
|||||||
unets: ListOrTuple[UnetConfig]
|
unets: ListOrTuple[UnetConfig]
|
||||||
image_size: Optional[int] = None
|
image_size: Optional[int] = None
|
||||||
image_sizes: ListOrTuple[int] = None
|
image_sizes: ListOrTuple[int] = None
|
||||||
clip: Optional[AdapterConfig] # The clip model to use if embeddings are not provided
|
clip: Optional[AdapterConfig] = None # The clip model to use if embeddings are not provided
|
||||||
channels: int = 3
|
channels: int = 3
|
||||||
timesteps: int = 1000
|
timesteps: int = 1000
|
||||||
sample_timesteps: Optional[SingularOrIterable[Optional[int]]] = None
|
sample_timesteps: Optional[SingularOrIterable[Optional[int]]] = None
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = '1.15.4'
|
__version__ = '1.15.5'
|
||||||
|
|||||||
Reference in New Issue
Block a user