FredZhang7 commited on
Commit
faa0371
1 Parent(s): 1c89148

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -9
README.md CHANGED
@@ -93,22 +93,22 @@ pipe = pipe.to("cuda")
93
  def random_seed():
94
  return random.randint(0, 2**32 - 1)
95
 
96
- # what you want to see
97
- prompt = "((oil painting)), gentle waves, bright blue sky, white sails billowing, sun glistening on the surface, salty sea air, distant horizon, calm breeze, birds soaring overhead, vibrant colors, artstation digital painting, high resolution, uhd, 4 k, 8k wallpaper"
98
 
99
- # what you don't want to see
100
- negative_prompt = ["low-res", "blurry", "haze", "dark clouds looming", "choppy waves", "engine failing", "sails tattered", "stormy winds", "fear of the unknown"]
 
 
 
 
101
 
102
- # replace with the desired seed if needed
103
- seed = random_seed()
104
 
105
  generator = torch.Generator("cuda").manual_seed(seed)
106
  with torch.autocast("cuda"):
107
  image = pipe(prompt=prompt,
108
- num_inference_steps=40,
109
- height=768, width=1280,
110
  generator=generator,
111
- guidance_scale=7.5).images[0]
112
 
113
  def generate_filename(string, seed):
114
  invalid_chars = ["<", ">", ":", '"', "/", "\\", "|", "?", "*"]
 
93
  def random_seed():
94
  return random.randint(0, 2**32 - 1)
95
 
 
 
96
 
97
+ prompt = "((oil painting)), gentle waves, bright blue sky, white sails billowing, sun glistening on the surface, salty sea air, distant horizon, calm breeze, birds soaring overhead, vibrant colors, artstation digital painting, high resolution, uhd, 4 k, 8k wallpaper" # what you want to see
98
+ negative_prompt = ["low-res", "blurry", "haze", "dark clouds looming", "choppy waves", "engine failing", "sails tattered", "stormy winds", "fear of the unknown"] # what you don't want to see
99
+ seed = random_seed() # replace with the desired seed if needed
100
+ width, height = 1280, 768 # width and height of the generated image
101
+ cfg_scale = 7.5 # classifer free guidance scale, 7 to 11 is usually a good range
102
+ num_inference_steps = 40 # sampling steps
103
 
 
 
104
 
105
  generator = torch.Generator("cuda").manual_seed(seed)
106
  with torch.autocast("cuda"):
107
  image = pipe(prompt=prompt,
108
+ num_inference_steps=num_inference_steps,
109
+ width=width, height=height,
110
  generator=generator,
111
+ guidance_scale=cfg_scale).images[0]
112
 
113
  def generate_filename(string, seed):
114
  invalid_chars = ["<", ">", ":", '"', "/", "\\", "|", "?", "*"]