by plussed_reader · 4y ago · 0 comments
Are the images part of the distributed data set? I thought it was values/coefficients that manifest from the algorithmic analysis of the source image?
On one hand, if you do a "this is the size of the net" and then divide it by the number of training images, its rather small amount of storage per image.
On the other hand, when I was playing with stable diffusion on the command line following the instructions of https://replicate.com/blog/run-stable-diffusion-on-m1-mac
python scripts/txt2img.py --prompt "wolf with bling walking down a street" --n_samples 6 --n_iter 1 --plms
I got: https://imgur.com/a/N1OufD1
Now, you tell me if there's a copyrighted image encoded in that data set or not.
- edit - please god tell me this is not an elaborate rick roll :)
stable-diffusion % python scripts/txt2img.py --prompt "Rick Astley Never Gonna Give You Up" --n_samples 1 --n_iter 1 --plms
is such that it triggers NSFW sometimes, then... I'm... let's say "confused" about what entails NSFW prompts.(digging through scroll back)
Creating invisible watermark encoder (see https://github.com/ShieldMnt/invisible-watermark)...
Sampling: 0%| | 0/1 [00:00<?, ?it/sData shape for PLMS sampling is (1, 4, 64, 64) | 0/1 [00:00<?, ?it/s]
Running PLMS Sampling with 50 timesteps
PLMS Sampler: 100%|| 50/50 [03:23<00:00, 4.06s/it]
Potential NSFW content was detected in one or more images. A black image will be returned instead. Try again with a different prompt and/or seed.:00, 3.99s/it]
data: 100%|| 1/1 [03:29<00:00, 209.20s/it]
Sampling: 100%|| 1/1 [03:29<00:00, 209.20s/it]
Your samples are ready and waiting for you here:
outputs/txt2img-samples
Apparently you're right... though the "black image" is a poor description of the image.The invocation of that run is still in my scroll back:
(venv) shagie@MacM1 stable-diffusion % python scripts/txt2img.py --prompt "wolf with bling walking down a street" --n_samples 6 --n_iter 1 --plms
Global seed set to 42
Loading model from models/ldm/stable-diffusion-v1/model.ckpt
Global Step: 470000
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
That's the only spot I see the seed mentioned and then it goes on with lots of other logging but nothing seed related that would indicate a way to reproduce it.---
(late edit) you can fairly accurately (so far 1 image out of 20) get that image out with the prompt "Rick Astley Never Gonna Give You Up"
Given:
Rick Astley Never Gonna Give You Up Steps: 20, Sampler: PLMS, CFG scale: 7, Seed: 4231695436, Size: 512x512, Batch size: 2, Batch pos: 0
I ran a couple of batches of 32 (64 images total): https://imgur.com/a/74IbCuD
(The images with the nonsensical but obvious Impact font that was learned from memes are quite funny, though)
If you can get a full set of parameters (size, sampler, seed, prompt, cfg scale) then I should hopefully be able to reproduce your results, though.