Skip to content

Commit 8c62a0a

Browse files
committed
fix zero dimensional test case, also default to false for now
1 parent b9b1868 commit 8c62a0a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "transfusion-pytorch"
3-
version = "0.14.2"
3+
version = "0.14.4"
44
description = "Transfusion in Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "lucidrains@gmail.com" }

transfusion_pytorch/transfusion.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,9 @@ def get_model_output_to_flow_fn(
632632
eps = 5e-2,
633633
return_decorator = False
634634
):
635+
if times.ndim == 0:
636+
times = rearrange(times, '-> 1')
637+
635638
def to_flow(out):
636639
nonlocal noised
637640
noised = noised.reshape_as(out)
@@ -1257,7 +1260,7 @@ def __init__(
12571260
*,
12581261
num_text_tokens,
12591262
transformer: dict | Transformer,
1260-
pred_clean = True, # https://arxiv.org/abs/2511.13720
1263+
pred_clean = False, # https://arxiv.org/abs/2511.13720
12611264
dim_latent: int | tuple[int, ...] | None = None,
12621265
channel_first_latent: bool | tuple[bool, ...] = False,
12631266
add_pos_emb: bool | tuple[bool, ...] = False,

0 commit comments

Comments
 (0)