example1 upd

This commit is contained in:
Johannes Stelzer 2023-01-09 08:52:53 +01:00
parent 27097c24ed
commit 03f31b96d1
1 changed files with 4 additions and 5 deletions

View File

@ -31,7 +31,7 @@ from stable_diffusion_holder import StableDiffusionHolder
torch.set_grad_enabled(False) torch.set_grad_enabled(False)
#%% First let us spawn a stable diffusion holder #%% First let us spawn a stable diffusion holder
device = "cuda:0" device = "cuda"
fp_ckpt = "../stable_diffusion_models/ckpt/v2-1_768-ema-pruned.ckpt" fp_ckpt = "../stable_diffusion_models/ckpt/v2-1_768-ema-pruned.ckpt"
fp_config = 'configs/v2-inference-v.yaml' fp_config = 'configs/v2-inference-v.yaml'
@ -40,12 +40,11 @@ sdh = StableDiffusionHolder(fp_ckpt, fp_config, device)
#%% Next let's set up all parameters #%% Next let's set up all parameters
quality = 'medium' quality = 'medium'
depth_strength = 0.35 # Specifies how deep (in terms of diffusion iterations the first branching happens) depth_strength = 0.65 # Specifies how deep (in terms of diffusion iterations the first branching happens)
fixed_seeds = [69731932, 504430820] fixed_seeds = [69731932, 504430820]
# prompt1 = "A person in an open filed of grass watching a television, red colors dominate the scene, eerie light, dark clouds on the horizon, artistically rendered by Richter" prompt1 = "photo of a beautiful cherry forest covered in white flowers, ambient light, very detailed, magic"
prompt1 = "A person in a bar, people around him, a glass of baer, artistically rendered in the style of Hopper" prompt2 = "photo of an golden statue with a funny hat, surrounded by ferns and vines, grainy analog photograph, mystical ambience, incredible detail"
prompt2 = "A person with a sad expression, looking at a painting of an older man, all in the style of Lucien Freud"
duration_transition = 12 # In seconds duration_transition = 12 # In seconds
fps = 30 fps = 30