img2prompt consumes 24GB of VRAM
A bug was discovered for images under seed 752.
Speeded up img2prompt to work in 2-3 seconds per case.
638 img2prompt results were obtained
Let's think about importing into Scrapbox in parallel with Instagram posts.
The Bernoulli distribution is used to determine whether an image is "good" or "not good".
Its conjugate prior distribution is a beta distribution
Thompson sampling to select the largest one by sampling
Sampling from a beta distribution can be done with numpy.random.beta
Let's say there are two slots here, one slot per 5 draws and one slot per 30 draws.
In [245]: [0 if beta(2, 5) > beta(31, 71) else 1 for i in range(20)]
Out[245]: [0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1]
- The former was chosen 11 out of 20 times.
This page is auto-translated from /nishio/日記2022-09-16 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.