From 87d376ff7929347865b199d05d003ab3b168f249 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Thu, 18 Aug 2022 08:15:28 +0200 Subject: [PATCH] Update. --- minidiffusion.py | 14 ++++++++------ minidiffusion_gaussian_mixture.pdf | Bin 10632 -> 10637 bytes minidiffusion_ramp.pdf | Bin 9540 -> 9582 bytes 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/minidiffusion.py b/minidiffusion.py index e7be8c1..066cbbb 100755 --- a/minidiffusion.py +++ b/minidiffusion.py @@ -66,12 +66,14 @@ def sample_mnist(nb): return result samplers = { - 'gaussian_mixture': sample_gaussian_mixture, - 'ramp': sample_ramp, - 'two_discs': sample_two_discs, - 'disc_grid': sample_disc_grid, - 'spiral': sample_spiral, - 'mnist': sample_mnist, + f.__name__.removeprefix('sample_') : f for f in [ + sample_gaussian_mixture, + sample_ramp, + sample_two_discs, + sample_disc_grid, + sample_spiral, + sample_mnist, + ] } ###################################################################### diff --git a/minidiffusion_gaussian_mixture.pdf b/minidiffusion_gaussian_mixture.pdf index 04d9b3d8a7ed67d6161c7feb3fea6ad92938e48d..4960e3e3a6c95e776ee472ad78dba126e18f275c 100644 GIT binary patch delta 2250 zcmZuvcUY5m7Zn**W)KXB1e7w>#5dzj@&-jKWkuPx0y3(|Fv>8g>?Zk2a)sk2`Pr2m61S z`rNtH5=F{7=JcM0SXg?nr^A==Vj=?3#eZNeksA=p?CTXe;%AMnT7b(ry`-(OG5VxzT+J=vmT+oY{w4pdz zn3r&hqqg68$TFv^XinshCZdXw1Mt97cBI(-?>RPPRR6`~pg3yq!+=m((|GH|f{GKoC1J*4z3Wdc*xdzRhJT4- zD?ak+`?>I8o6DiE3p#ubh*D$<&!L>Ve?D1SdsJI4)yLY`a*tRB?POiY zV7PeU^#QNh%97+Czot1^5NWmcqxYeDyx_qQ?By$qUE?b7nCq-qAL}LS6JYOxV!>-0 z*|7OotqSm0dR3f(N6HSnl6493K-PClc2|)E+f;7zrNk7!J0JG_eF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