In[]:=
standardcat=NetModel[{"CLIP Multi-domain Feature Extractor","InputDomain"->"Text","Architecture"->"ViT-L/14"}]["A cat in a party hat",NetPort[{"post_normalize","Output"}]];
In[]:=
standardcat
Out[]=
In[]:=
Dimensions[%]
Out[]=
{8,768}
GraphicsGrid[Partition[StableDiffusionSynthesize[Table[xcat+(1-x)dog->BlockRandom[SeedRandom[254345];RandomVariate[NormalDistribution[],{4,64,64}]],{x,0,1,1/11}],sdOptions],6]]
In[]:=
cat=NetModel[{"CLIP Multi-domain Feature Extractor","InputDomain"->"Text","Architecture"->"ViT-L/14"}]["A cat",NetPort[{"post_normalize","Output"}]];
In[]:=
dog=NetModel[{"CLIP Multi-domain Feature Extractor","InputDomain"->"Text","Architecture"->"ViT-L/14"}]["A dog",NetPort[{"post_normalize","Output"}]];
In[]:=
GraphicsGrid[Partition[StableDiffusionSynthesize[Table[xcat+(1-x)dog->BlockRandom[SeedRandom[254345];RandomVariate[NormalDistribution[],{4,64,64}]],{x,0,1,1/11}],sdOptions],6]]
Out[]=
Contents cannot be rendered at this time; please try again later
In[]:=
ImageAssemble[Take[Import["randomplane-100.wxf"],{3,-3},{3,-3}]]
Out[]=
Contents cannot be rendered at this time; please try again later
In[]:=
ImageAssemble[Take[Import["catplane-1024.wxf"],{3,-3},{3,-3}]]
Out[]=
Contents cannot be rendered at this time; please try again later
In[]:=
seedimage=BlockRandom[SeedRandom[33];RandomVariate[NormalDistribution[],{4,64,64}]];
In[]:=
catembedding=NetModel[{"CLIP Multi-domain Feature Extractor","InputDomain"->"Text","Architecture"->"ViT-L/14"}]["A cat in a party hat",NetPort["post_normalize","Output"]];
In[]:=
eplane=(SeedRandom[1024];{RandomReal[NormalDistribution[],Dimensions[catembedding]],RandomReal[NormalDistribution[],Dimensions[catembedding]]});
catplane=Table[StableDiffusionSynthesize[((#+catembedding)->seedimage)&/@(#.eplane&/@Table[{x,y},{x,-1,1,.2}]),sdOptions],{y,-1,1,.2}];
In[]:=
With[{y=0},StableDiffusionSynthesize[((#+catembedding)->seedimage)&/@(#.eplane&/@Table[{x,y},{x,-1,1,.2}]),"UnetBatchSize"->8,ProgressReporting->False,sdOptions]]
Out[]=
,,,,,,,,,,
Contents cannot be rendered at this time; please try again later
Contents cannot be rendered at this time; please try again later
Contents cannot be rendered at this time; please try again later
Contents cannot be rendered at this time; please try again later
Contents cannot be rendered at this time; please try again later
Contents cannot be rendered at this time; please try again later
Contents cannot be rendered at this time; please try again later
Contents cannot be rendered at this time; please try again later
Contents cannot be rendered at this time; please try again later
Contents cannot be rendered at this time; please try again later
Contents cannot be rendered at this time; please try again later