Skip to content

Commit

Permalink
Add note about input image sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
enzymezoo-code committed Dec 22, 2023
1 parent 4f5e4c5 commit 32a38ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nbs/stable_video_v1_REST_API_alpha.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@
"}\n",
"host = f\"https://api.stability.ai/v2alpha/generation/image-to-video\"\n",
"\n",
"# Note:\n",
"# Valid input images must be 576x1024, 768x768, or 1024x576\n",
"# The method image_to_valid_bytes will resize to the nearest aspect ratio\n",
"init_image_bytes = image_to_valid_bytes(init_image)\n",
"\n",
"image_mime_type = mimetypes.guess_type(init_image)[0]\n",
"files = {\n",
" \"image\": (\"file\", init_image_bytes, image_mime_type),\n",
Expand Down

0 comments on commit 32a38ef

Please sign in to comment.