Skip to main content
. 2024 May 8;14(5):478. doi: 10.3390/brainsci14050478
Algorithm 1: The Pipeline of the Image Generation Stage
1: input EEG xR1×128×440
2: do: Feature extraction and position embedding x0R77×768,x0qx0
3: do: FrozenCLIPEmbedder E(x0)
4: for t=1T, do:qx1:xTE(x0 =t=1Tqxtxt1 xTN(0,1)
5: for t=T1, zN(0,1) do:
6: xt1=1αtxt1αt1αt¯ϵθxt,tE(x0)Rh×w×3
7: do: AutoEncoderKL
8: return x0RH×W×3