Skip to content

Commit 65cbc0c

Browse files
committed
default recon loss in loss breakdown to zero until it is built
1 parent 11d96ab commit 65cbc0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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.5.2"
3+
version = "0.5.3"
44
description = "Transfusion in Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "lucidrains@gmail.com" }

transfusion_pytorch/transfusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class LossBreakdown(NamedTuple):
9090
text: Scalar
9191
flow: list[Scalar]
9292
velocity: list[Scalar] | None
93-
recon: list[Scalar] | None
93+
recon: list[Scalar] | None = None
9494

9595
class ModalityInfo(NamedTuple):
9696
encoder: Module | None

0 commit comments

Comments
 (0)