Skip to content

Commit

Permalink
Extra parameters for text to image model's request (Azure#2928)
Browse files Browse the repository at this point in the history
* add extra parameters information for text2img notebooks

* extra parameters in text to images notebooks

* code quality

* md

---------

Co-authored-by: grajguru <[email protected]>
  • Loading branch information
gauravrajguru and grajguru authored Jan 17, 2024
1 parent c7def74 commit a5c29c3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@
" \"columns\": [\"prompt\"],\n",
" \"data\": [\"a photo of an astronaut riding a horse on mars\"],\n",
" \"index\": [0],\n",
" \"parameters\": {\"num_inference_steps\": 50, \"guidance_scale\": 7.5},\n",
" }\n",
"}\n",
"\n",
Expand All @@ -556,6 +557,13 @@
" json.dump(request_json, request_file)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"> The `parameters` are optional inputs that support `num_inference_steps` and `guidance_scale`. If you need support for new parameters, please file a support ticket."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@
" \"columns\": [\"prompt\"],\n",
" \"data\": [\"a photograph of an astronaut riding a horse\"],\n",
" \"index\": [0],\n",
" \"parameters\": {\"num_inference_steps\": 50, \"guidance_scale\": 7.5},\n",
" }\n",
"}\n",
"\n",
Expand All @@ -284,6 +285,13 @@
" json.dump(request_json, request_file)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"> The `parameters` are optional inputs that support `num_inference_steps` and `guidance_scale`. If you need support for new parameters, please file a support ticket.\n"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit a5c29c3

Please sign in to comment.