File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -333,6 +333,7 @@ def sample(
333
333
# %% [markdown]
334
334
# ### プロンプト埋め込みを取得する関数の定義
335
335
336
+
336
337
# %%
337
338
@torch .no_grad ()
338
339
def encode_prompt_embeds (
@@ -396,6 +397,7 @@ def apply_cfg(
396
397
# %% [markdown]
397
398
# ### 逆拡散過程の実行関数の定義
398
399
400
+
399
401
# %%
400
402
@torch .no_grad ()
401
403
def reverse_diffusion_step (
@@ -450,6 +452,7 @@ def reverse_diffusion_step(
450
452
# %% [markdown]
451
453
# ### 潜在表現から画像への変換関数の定義
452
454
455
+
453
456
# %%
454
457
@torch .no_grad ()
455
458
def decode_latents_to_images (
@@ -517,6 +520,7 @@ def decode_latents_to_images(
517
520
# %% [markdown]
518
521
# ### Inversion 実行関数の定義
519
522
523
+
520
524
# %%
521
525
def invert (
522
526
prompt : str ,
@@ -571,6 +575,7 @@ def invert(
571
575
# %% [markdown]
572
576
# ### 1 ステップの Inversion を実行する関数の定義
573
577
578
+
574
579
# %%
575
580
@torch .no_grad ()
576
581
def invert_step (
You can’t perform that action at this time.
0 commit comments