[Want random embedding and random seed]
[Want random embedding and random seed]
Do[Print[Now];Print[Range[1+k11,1+(k+1)*11-1]];With[{w=StableDiffusionSynthesize[Table[SeedRandom[2312];RandomReal[NormalDistribution[],{70,768}]->BlockRandom[SeedRandom[n];RandomVariate[NormalDistribution[],{4,64,64}]],{n,1+k11,1+(k+1)*11-1}],sdOptions]},Export[FileNameJoin[{"RandomEmbeddingSeedChanging",StringJoin[ToString[#[[1]]],".png"]}],#[[2]]]&/@Transpose[{Range[1+k11,1+(k+1)*11-1],w}];Print[Rasterize[w,RasterSize->800]]];NotebookSave[],{k,10}]
In[]:=
Directory[]
Out[]=
/home/sw/Dropbox/GeneralBox/Research/LLMScience/SWData
In[]:=
Do[Print[Now];With[{range=Range[11k,11(k+1)]},Print[range];With[{w=StableDiffusionSynthesize[Table[SeedRandom[n];(RandomReal[NormalDistribution[],{70,768}]->RandomVariate[NormalDistribution[],{4,64,64}]),{n,range}],BatchSize->11,ProgressReporting->False]},Export[FileNameJoin[{"BothRandomEmbeddings",StringJoin[ToString[#[[1]]],".png"]}],#[[2]]]&/@Transpose[{range,w}];Print[Rasterize[w,RasterSize->800]]]],{k,40}]
{11,12,13,14,15,16,17,18,19,20,21,22}
{22,23,24,25,26,27,28,29,30,31,32,33}
{33,34,35,36,37,38,39,40,41,42,43,44}
{44,45,46,47,48,49,50,51,52,53,54,55}
{55,56,57,58,59,60,61,62,63,64,65,66}
{66,67,68,69,70,71,72,73,74,75,76,77}
{77,78,79,80,81,82,83,84,85,86,87,88}
{88,89,90,91,92,93,94,95,96,97,98,99}
{99,100,101,102,103,104,105,106,107,108,109,110}