You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flowfusion is a Julia package for learning and sampling from conditional diffusion processes across continuous, discrete, and manifold spaces. It provides a unified framework for:
11
+
12
+
- Learning conditional flows between states
13
+
- Sampling from learned distributions
14
+
- Working with various state types (continuous, discrete, manifold)
15
+
- Handling partial observations and masked states
16
+
17
+
## Features
18
+
19
+
### Multiple State Types
20
+
- Continuous states (Euclidean spaces)
21
+
- Discrete states (categorical variables)
22
+
- Manifold states (probability simplexes, tori, rotations)
Copy file name to clipboardExpand all lines: src/mask.jl
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -64,10 +64,10 @@ unmask(X) = X
64
64
cmask!(Xt_state, X1_state, cmask)
65
65
cmask!(Xt, X1)
66
66
67
-
Applies, in place, a conditioning mask, forcing elements (or slices) of `Xt` to be equal to `X1`, where `cmask` is 1.
67
+
Applies, in place, a conditioning mask, where only elements (or slices) of `Xt` where `cmask` is 1 are noised. When `cmask` is 0, the elements are forced to be equal to `X1`.
If `Y` is a `MaskedState`, `mask(X, Y)` returns a `MaskedState` with the content of `X` where elements of `Y.cmask` are 0, and `Y` where `Y.cmask` is 1.
93
+
If `Y` is a `MaskedState`, `mask(X, Y)` returns a `MaskedState` with the content of `X` where elements of `Y.cmask` are 1, and `Y` where `Y.cmask` is 0.
94
94
`cmask` and `lmask` are inherited from `Y`.
95
95
If `Y` is not a `MaskedState`, `mask(X, Y)` returns `X`.
#Mask passthroughs, because the masking gets handled elsewhere:
109
109
step(P::UProcess, Xₜ::MaskedState, hat, s₁, s₂) =step(P, unmask(Xₜ), unmask(hat), s₁, s₂) #step is only called in gen, which handles the masking itself
0 commit comments