2022ǯ8·î¤Ë°ìÈ̸ø³«¤µ¤ì¤¿AI¡ÖStable Diffusion¡×¤Ï¡¢¡Öan astronaut riding a horse(ÇϤ˾è¤ë±§ÃèÈô¹Ô»Î)¡×¤ä¡Öelon musk as dr strange(¥É¥¯¥¿¡¼¥¹¥È¥ì¥ó¥¸¤Î³Ê¹¥¤ò¤·¤¿¥¤¡¼¥í¥ó¡¦¥Þ¥¹¥¯)¡×¤Ê¤É¤Îʸ»úÎó¤òÆþÎϤ¹¤ë¤È¡¢¤½¤ì¤Ë±þ¤¸¤¿²èÁü¤ò¼«Æ°¤ÇÀ¸À®¤·¤Æ¤¯¤ì¤Þ¤¹¡£¤½¤ó¤ÊStable Diffusion¤ò»È¤Ã¤Æ¥à¡¼¥Ó¡¼¤òºîÀ®¤Ç¤­¤ë¡Östable-diffusion-videos¡×¤¬¸ø³«¤µ¤ì¤¿¤Î¤Ç¡¢¼ÂºÝ¤Ë»È¤Ã¤Æ¤ß¤Þ¤·¤¿¡£

GitHub - nateraw/stable-diffusion-videos: Create ???? videos with Stable Diffusion by exploring the latent space and morphing between text prompts

https://github.com/nateraw/stable-diffusion-videos

stable-diffusion-videos¤Ï¡¢¥ª¥ó¥é¥¤¥ó¼Â¹Ô´Ä¶­¤Ç¤¢¤ëGoogle Colaboratory(Google Colab)¤ÇÆ°ºî¤¹¤ë¥Î¡¼¥È¥Ö¥Ã¥¯¤¬¸ø³«¤µ¤ì¤Æ¤ª¤ê¡¢Ä㥹¥Ú¥Ã¥¯PC¤Ç¤â̵ÎÁ¤Ç»îÍѤ¬²Äǽ¤Ç¤¹¡£

¥Î¡¼¥È¥Ö¥Ã¥¯¤òÍøÍѤ¹¤ëÁ°¤Ë¡¢AI´ØÏ¢¥³¥ß¥å¥Ë¥Æ¥£¥µ¥¤¥È¡¦Hugging Face¤Ë¤¢¤ëStable Diffusion¤Î¥Ú¡¼¥¸¤Ç¥È¡¼¥¯¥ó¤òȯ¹Ô¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤Þ¤º¤ÏHugging Face¤Ç¸ø³«¤µ¤ì¤Æ¤¤¤ëStable Diffusion¤Î¥Ú¡¼¥¸¤Ë¥¢¥¯¥»¥¹¤·¡¢¥í¥°¥¤¥ó¤·¤Þ¤¹¡£¥¢¥«¥¦¥ó¥È¤¬¤Ê¤¤¾ì¹ç¤Ï¡¢ÅÐÏ¿¥Ú¡¼¥¸¤Ç̵ÎÁ¥¢¥«¥¦¥ó¥È¤òºîÀ®¤·¤Æ¤¯¤À¤µ¤¤¡£

CompVis/stable-diffusion-v1-4 · Hugging Face

https://huggingface.co/CompVis/stable-diffusion-v1-4

¾åµ­¥Ú¡¼¥¸¤Ç¡Ö¥é¥¤¥»¥ó¥¹¤ËƱ°Õ¤¹¤ë¡×¤Ë¥Á¥§¥Ã¥¯¤òÆþ¤ì¤Æ¡¢¡ÖAccess repository¡×¤ò¥¯¥ê¥Ã¥¯¤·¤Þ¤¹¡£



³¤¤¤Æ±¦¾å¤Î¥æ¡¼¥¶¡¼¥¢¥¤¥³¥ó¤ò¥¯¥ê¥Ã¥¯¤·¡¢¡ÖSettings¡×¤òÁªÂò¤·¤Þ¤¹¡£



º¸¥«¥é¥à¤Ë¤¢¤ë¡ÖAccess Tokens¡×¤ò¥¯¥ê¥Ã¥¯¡£



¡ÖNew token¡×¤ò¥¯¥ê¥Ã¥¯¤·¤Þ¤¹¡£



¡ÖCreate a new access token¡×¤Î¥Ý¥Ã¥×¥¢¥Ã¥×¤¬É½¼¨¤µ¤ì¤ë¤Î¤Ç¡¢Name¤Ë̾Á°¤òÆþÎϤ·¡¢Role¤Ë¡Öread¡×¤òÁªÂò¤·¡¢¡ÖGenerate a token¡×¤ò¥¯¥ê¥Ã¥¯¤·¤Þ¤¹¡£Ì¾Á°¤ÏÆä˻ØÄê¤Ï¤Ê¤¤¤Î¤Ç¡¢º£²ó¤Ï¡Ötest¡×¤È¤·¤Æ¤¤¤Þ¤¹¡£



¤¹¤ë¤È¡¢°Ê²¼¤Î¤è¤¦¤Ë¥¢¥¯¥»¥¹¥È¡¼¥¯¥ó¤¬È¯¹Ô¤µ¤ì¤Þ¤·¤¿¡£¥È¡¼¥¯¥ó¤Î±¦Â¦¤Ë¤¢¤ë¥¢¥¤¥³¥ó¤ò¥¯¥ê¥Ã¥¯¤·¡¢¥È¡¼¥¯¥ó¤ò¥³¥Ô¡¼¤·¤Þ¤¹¡£



¼¡¤Ë¡¢Google¥¢¥«¥¦¥ó¥È¤Ë¥í¥°¥¤¥ó¤·¤¿¾õÂ֤ǡ¢°Ê²¼¤ÎGoogle Colab¤Î¥Î¡¼¥È¥Ö¥Ã¥¯¤Ë¥¢¥¯¥»¥¹¤·¤Þ¤¹¡£

stable_diffusion_videos.ipynb - Colaboratory

https://colab.research.google.com/github/nateraw/stable-diffusion-videos/blob/main/stable_diffusion_videos.ipynb

·Ù¹ð¤¬É½¼¨¤µ¤ì¤Þ¤¹¤¬¡¢¡Ö¤³¤Î¤Þ¤Þ¼Â¹Ô¡×¤ò¥¯¥ê¥Ã¥¯¡£



[ ]¤ÎÉôʬ¤Ë¥«¡¼¥½¥ë¤ò½Å¤Í¤ë¤ÈºÆÀ¸¥¢¥¤¥³¥ó¤¬É½¼¨¤µ¤ì¤ë¤Î¤Ç¡¢´ðËÜŪ¤Ë¤³¤ÎºÆÀ¸¥¢¥¤¥³¥ó¤ò¾å¤«¤é½çÈ֤˲¡¤·¤ÆƳÆþ¤ò¿Ê¤á¤Þ¤¹¡£



¡ÖAuthenticate with Hugging Face Hub¡×¤Î¹àÌܤǤϡ¢ºÆÀ¸¥¢¥¤¥³¥ó¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¼Â¹Ô¤¹¤ë¤È¡¢¥¢¥¯¥»¥¹¥È¡¼¥¯¥ó¤ÎÆþÎÏÍó¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£¤³¤³¤ËHugging Face¤ÇÆþ¼ê¤·¤¿¥¢¥¯¥»¥¹¥È¡¼¥¯¥ó¤òŽ¤êÉÕ¤±¤Æ¡¢¡ÖLogin¡×¤ò¥¯¥ê¥Ã¥¯¤·¤Þ¤¹¡£



Run the App¤Çstable-diffusion-videos¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Þ¤¹¡£



¤Þ¤¿¡¢À¸À®¤·¤¿¥à¡¼¥Ó¡¼¤òÊݸ¤¹¤ë¤¿¤á¤ËGoogle¥É¥é¥¤¥Ö¤ò¥Þ¥¦¥ó¥È¤¹¤ëɬÍפ¬¤¢¤ê¡¢Google¥É¥é¥¤¥Ö¤Ø¤Î¥¢¥¯¥»¥¹¤Îµö²Ä¤òµá¤á¤é¤ì¤Þ¤¹¡£¡ÖGoogle¥É¥é¥¤¥Ö¤ËÀܳ¡×¤ò¥¯¥ê¥Ã¥¯¡£



Google Colab¤Ë¥í¥°¥¤¥ó¤·¤Æ¤¤¤ë¥¢¥«¥¦¥ó¥È¤òÁªÂò¤·¤Þ¤¹¡£



¡Öµö²Ä¡×¤ò¥¯¥ê¥Ã¥¯¡£



¡ÖLaunch¡×¤ÎºÆÀ¸¥¢¥¤¥³¥ó¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢Google Colab¤Î¥Î¡¼¥È¥Ö¥Ã¥¯¾å¤Ë¥¦¥§¥ÖUI¤¬Î©¤Á¾å¤¬¤ê¤Þ¤¹¡£¤³¤³¤«¤é²èÁüÀ¸À®¤â²Äǽ¤Ç¤¹¤¬¶¹¤¤¤Î¤Ç¡¢¾åÉô¤Ëɽ¼¨¤µ¤ì¤Æ¤¤¤ëURL¤Ë¥¢¥¯¥»¥¹¤·¤Þ¤¹¡£



¥¦¥§¥ÖUI¤Ï¤³¤ó¤Ê´¶¤¸¡£¾åÉô¤Î¡ÖVideos!¡×¤Î¥¿¥Ö¤ò¥¯¥ê¥Ã¥¯¤·¡¢ÀßÄꤷ¤Æ¡ÖÁ÷¿®¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ì¤ÐOK¡£



ÀßÄê¹àÌܤϰʲ¼¤ÎÄ̤ꡣ

prompt1¡§1ËçÌܤβèÁü

seed1¡§1ËçÌܤβèÁüÀ¸À®¤Î¥·¡¼¥ÉÃÍ

prompt2¡§2ËçÌܤβèÁü

seed2¡§2ËçÌܤβèÁüÀ¸À®¤Î¥·¡¼¥ÉÃÍ

schedule¡§¥µ¥ó¥×¥é¡¼

guidance_scale¡§CFG¥¹¥±¡¼¥ë

num_inference_steps¡§¿äÄꥹ¥Æ¥Ã¥×¿ô

num_walk_steps¡§À¸À®¥¹¥Æ¥Ã¥×¿ô¡¢¤³¤ì¤¬Â礭¤±¤ì¤ÐÂ礭¤¤¤Û¤ÉÆ°²è¤¬Ä¹¤¯¤Ê¤ë

do_loop¡§¥ë¡¼¥×Æ°²è¤Ë¤¹¤ë

disable_tqdm¡§À¸À®¤Î¿ÊĽ¾õ¶·¥Ð¡¼¤òÈóɽ¼¨¤Ë¤¹¤ë

use_lerp_for_text¡§Àþ·ÁÊä´°¤ò»È¤¦

output_dir¡§½ÐÎÏÀè¥Ç¥£¥ì¥¯¥È¥ê

stable-diffusion-videos¤Ç¥à¡¼¥Ó¡¼À¸À®¤ò¼Â¹Ô¤¹¤ë¤È¡¢Google Colab¤Ë¿ÊĽ¥Ð¡¼¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£



Æ°²è¤Ç»ÈÍѤ¹¤ë¤¿¤á¤Î²èÁü¤ò10ËçÀ¸À®¤¹¤ë¤Î¤Ë¤À¤¤¤¿¤¤3ʬ¤Û¤É¤«¤«¤ê¡¢¡Ö¥Ö¥ë¡¼¥Ù¥ê¡¼¤Î¥¹¥Ñ¥²¥Æ¥£¤«¤é¥¤¥Á¥´¤Î¥¹¥Ñ¥²¥Æ¥£¤ËÊѲ½¤¹¤ë¥à¡¼¥Ó¡¼¡×¤¬À¸À®¤µ¤ì¤Þ¤·¤¿¡£



¤È¤¤¤¦¤ï¤±¤Ç¡Östable-diffusion-videos¡×¤¬À¸À®¤·¤¿¡Ö¥Ö¥ë¡¼¥Ù¥ê¡¼¤Î¥¹¥Ñ¥²¥Æ¥£¤¬¥¤¥Á¥´¤Î¥¹¥Ñ¥²¥Æ¥£¤ËÊѤï¤ë¥à¡¼¥Ó¡¼¡× ¤¬°Ê²¼¡£

AI¤¬¥à¡¼¥Ó¡¼¤ò¼«Æ°¤ÇÀ¸À®¤·¤Æ¤¯¤ì¤ë¡Östable-diffusion-videos¡×¤ÇºîÀ®¤·¤¿¡Ö¥Ö¥ë¡¼¥Ù¥ê¡¼¤Î¥¹¥Ñ¥²¥Æ¥£¤¬¥¤¥Á¥´¤Î¥¹¥Ñ¥²¥Æ¥£¤ËÊѤï¤ë¥à¡¼¥Ó¡¼¡× - YouTube

¥à¡¼¥Ó¡¼¤ò¥í¡¼¥«¥ë¤ËÊݸ¤·¤¿¤¤»þ¤Ï¡¢¥à¡¼¥Ó¡¼¤Î¾å¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¡¢¡Ö̾Á°¤òÉÕ¤±¤Æ¥Ó¥Ç¥ª¤òÊݸ¡×¤òÁªÂò¤¹¤ì¤ÐOK¡£



º£Å٤ϥ١¼¥È¡¼¥ô¥§¥ó¤«¤é¥â¡¼¥Ä¥¡¥ë¥È¤Ë´é¤¬ÊѤï¤ë¥à¡¼¥Ó¡¼¤òºî¤Ã¤Æ¤ß¤Þ¤·¤¿¡£prompt1¤ò¡Öbeethoven¡×¡¢prompt2¤ò¡Ömozart¡×¡¢guidance_scale¤ò10¤Ë¡¢num_inference_steps¤ò60¤Ë¡¢num_walk_steps¤ò15¤ËÀßÄê¡£



¼ÂºÝ¤Ëºî¤Ã¤Æ¤ß¤¿¡Ö¥Ù¡¼¥È¡¼¥ô¥§¥ó¤«¤é¥â¡¼¥Ä¥¡¥ë¥È¤Ë¥â¡¼¥Õ¥£¥ó¥°¤¹¤ë¥à¡¼¥Ó¡¼¡×¤¬°Ê²¼¡£¥¹¥Æ¥Ã¥×¿ô¤Ï¹ç·×30¤Ç¡¢¤ï¤º¤«1ÉäΥࡼ¥Ó¡¼¤òºî¤ë¤Î¤Ë¤«¤«¤Ã¤¿»þ´Ö¤Ï¤ª¤è¤½3ʬ¼å¤Ç¤·¤¿¡£

²èÁüÀ¸À®AI¡ÖStable Diffusion¡×¤Ç¥à¡¼¥Ó¡¼¤¬ºî¤ì¤ë¡Östable-diffusion-videos¡×¤Ç¥Ù¡¼¥È¡¼¥ô¥§¥ó¤«¤é¥â¡¼¥Ä¥¡¥ë¥È¤Î¥â¡¼¥Õ¥£¥ó¥°¥à¡¼¥Ó¡¼¤òºî¤Ã¤Æ¤ß¤¿ - YouTube