Path: blob/master/notebooks/book2/25/deblending-jax.ipynb
1192 views
Kernel: Python 3
Iterative α-(de)Blending
Jax version of: https://github.com/tchambon/IADB
In [2]:
In [3]:
In [4]:
In [5]:
Out[5]:
In [6]:
Out[6]:
In [7]:
Out[7]:
CPU times: user 1.32 s, sys: 19.9 ms, total: 1.34 s
Wall time: 1.38 s
Training
In [8]:
In [9]:
Out[9]:
{'params': {'Dense_0': {'bias': (64,), 'kernel': (3, 64)},
'Dense_1': {'bias': (64,), 'kernel': (64, 64)},
'Dense_2': {'bias': (64,), 'kernel': (64, 64)},
'Dense_3': {'bias': (64,), 'kernel': (64, 64)},
'Dense_4': {'bias': (2,), 'kernel': (64, 2)}}}
In [10]:
In [11]:
Out[11]:
CPU times: user 16.7 s, sys: 498 ms, total: 17.2 s
Wall time: 17.3 s
In [12]:
Out[12]:
[<matplotlib.lines.Line2D at 0x7a253c376b30>]
In [13]:
Out[13]:
sampling loop: 100%|██████████| 128/128 [00:03<00:00, 37.86it/s]
CPU times: user 3.18 s, sys: 174 ms, total: 3.36 s
Wall time: 3.39 s
In [14]:
Out[14]:
Animate!
In [15]:
In [16]:
Out[16]: