Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitba58ae0

Browse files
committed
add two asserts to diffusion prior to ensure matching image embedding dimensions for clip, diffusion prior network, and what was set on diffusion prior
1 parent1cc5d0a commitba58ae0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎dalle2_pytorch/dalle2_pytorch.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,10 @@ def __init__(
11661166

11671167
self.net=net
11681168
self.image_embed_dim=default(image_embed_dim,lambda:clip.dim_latent)
1169+
1170+
assertnet.dim==self.image_embed_dim,f'your diffusion prior network has a dimension of{net.dim}, but you set your image embedding dimension (keyword image_embed_dim) on DiffusionPrior to{self.image_embed_dim}'
1171+
assertnotexists(clip)orclip.dim_latent==self.image_embed_dim,f'you passed in a CLIP to the diffusion prior with latent dimensions of{clip.dim_latent}, but your image embedding dimension (keyword image_embed_dim) for the DiffusionPrior was set to{self.image_embed_dim}'
1172+
11691173
self.channels=default(image_channels,lambda:clip.image_channels)
11701174

11711175
self.text_cond_drop_prob=default(text_cond_drop_prob,cond_drop_prob)

‎dalle2_pytorch/version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__='1.10.0'
1+
__version__='1.10.1'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp