Skip to content

Commit

Permalink
chore: fixed a small bug in existing colab
Browse files Browse the repository at this point in the history
  • Loading branch information
todd-elvers committed Oct 2, 2023
1 parent cde43e1 commit e8c9145
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nbs/Fine_Tuning_REST_API_External_Test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -608,13 +608,13 @@
"dimensions=\"1024x1024\" #@param ['1024x1024', '1152x896', '1216x832', '1344x768', '1536x640', '640x1536', '768x1344', '832x1216', '896x1152']\n",
"#@markdown > The dimensions of the image to generate, in pixels, and in the format width x height.\n",
"samples=1 #@param {type:\"slider\", min:1, max:10, step:1}\n",
"#@markdown > The number of images to generate.\n",
"#@markdown > The number of images to generate. Requesting a large number of images may negatively response time.\n",
"steps=32 #@param {type:\"slider\", min:30, max:60, step:1}\n",
"#@markdown > The number inference steps performed during diffusion.\n",
"cfg_value=7 #@param {type:\"slider\", min:0, max:35, step:1}\n",
"#@markdown > How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt).\n",
"#@markdown > The number of iterations or stages a diffusion model goes through in the process of generating an image from a given text prompt. Lower steps will generate more quickly, but if steps are lowered too much, image quality will suffer. Images with higher steps take longer to generate, but often give more detailed results.\n",
"cfg_scale=7 #@param {type:\"slider\", min:0, max:35, step:1}\n",
"#@markdown > CFG (Classifier Free Guidance) scale determines how strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt).\n",
"seed=42 #@param {type:\"number\"}\n",
"#@markdown > Random noise seed (use 0 for a random seed)\n",
"#@markdown > The noise seed to use during diffusion. Using `0` means a random seed will be generated for each image. If you provide a non-zero value, images will be far less random.\n",
"\n",
"params = TextToImageParams(\n",
" fine_tunes=[\n",
Expand Down Expand Up @@ -642,7 +642,7 @@
" samples=samples,\n",
" steps=steps,\n",
" seed=seed,\n",
" cfg_value=cfg_value,\n",
" cfg_scale=cfg_scale,\n",
" width=int(dimensions.split(\"x\")[0]),\n",
" height=int(dimensions.split(\"x\")[1]),\n",
" sampler=Sampler.K_DPMPP_2S_ANCESTRAL\n",
Expand Down

0 comments on commit e8c9145

Please sign in to comment.