{"id":1039,"date":"2023-03-25T02:58:00","date_gmt":"2023-03-25T02:58:00","guid":{"rendered":"https:\/\/rawbytes.org\/?p=1039"},"modified":"2025-11-24T02:59:32","modified_gmt":"2025-11-24T02:59:32","slug":"stable-diffusion-webui%e3%82%92ubuntu-pyenv-virtualenv%e3%81%ae%e7%92%b0%e5%a2%83%e3%81%a7%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/rawbytes.org\/?p=1039","title":{"rendered":"Stable Diffusion WebUI\u3092ubuntu, pyenv virtualenv\u306e\u74b0\u5883\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f"},"content":{"rendered":"<p>&nbsp;Stable Diffusion WebUI\u3092Ubuntu\u3068pyenv-virtualenv\u306e\u74b0\u5883\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002<br \/><a href=\"https:\/\/github.com\/AUTOMATIC1111\/stable-diffusion-webui\/wiki\/Install-and-Run-on-NVidia-GPUs\" target=\"_blank\">\u516c\u5f0f\u306e\u30de\u30cb\u30e5\u30a2\u30eb<\/a>\u3069\u304a\u308a\u3067\u306f\u3046\u307e\u304f\u884c\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u6b63\u3057\u3044\u306e\u304b\u306f\u308f\u304b\u3063\u3066\u306a\u3044\u3051\u3069\u3068\u308a\u3042\u3048\u305a\u52d5\u3044\u305f\u306e\u3067\u5dee\u5206\u306e\u30e1\u30e2\u3092\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u8a66\u3057\u305f\u306e\u306f2023\/3\/25\u3002<\/p>\n<p>Ubuntu\u306e\u74b0\u5883\u306f\u4ee5\u4e0b\u306e\u901a\u308a<br \/>$ cat \/etc\/os-release<br \/>NAME=&#8221;Ubuntu&#8221;<br \/>VERSION=&#8221;20.04.3 LTS (Focal Fossa)&#8221;<\/p>\n<p>1. \u307e\u305apyenv virutualenv\u3067\u5c02\u7528\u306e\u74b0\u5883\u3092\u4f5c\u308b\u3002\u73fe\u6642\u70b9\u3067\u8981\u6c42\u306epython\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c3.10.6\u3068\u306e\u3053\u3068\u3060\u3063\u305f\u306e\u3067\u5f93\u3046<\/p>\n<p>$ pyenv virtualenv 3.10.6 stable-diffusion-webui<br \/>\u307f\u305f\u3044\u306b\u3057\u3066\u30013.10.6\u3092\u30d9\u30fc\u30b9\u306b\u3057\u305fvirtualenv\u74b0\u5883\u3092\u4f5c\u3063\u3066\u304a\u304f\u3002<\/p>\n<\/p>\n<\/p>\n<p>&nbsp;<\/p>\n<p>2. &#8220;Automatic Installation on Linux&#8221;\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u8d77\u52d5\u6642\u306bstable diffusion\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u51fa\u3066\u8d77\u52d5\u3067\u304d\u306a\u304b\u3063\u305f\u3002\u4ed5\u65b9\u304c\u306a\u3044\u306e\u3067<a href=\"https:\/\/github.com\/AUTOMATIC1111\/stable-diffusion-webui\/wiki\/Install-and-Run-on-NVidia-GPUs\">\u3053\u3053<\/a>\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\uff84\u306b\u3042\u308bManual Install\u306e\u65b9\u3092\u8a66\u3057\u305f\u3002<\/p>\n<p>3.\u3053\u308c\u306f\u5358\u7d14\u306b\u79c1\u304c\u7406\u89e3\u3057\u3066\u306a\u3044\u3060\u3051\u3060\u3068\u601d\u3046\u3051\u3069\u3001Manual Install\u306e\u6700\u5f8c\u306e\u610f\u5473\u304c\u308f\u304b\u3089\u306a\u304b\u3063\u305f\uff08\u4f55\u3092\u3069\u3053\u306b\u914d\u7f6e\u3059\u308c\u3070\u3044\u3044\u306e\u304b\u304c\u308f\u304b\u3089\u306a\u304b\u3063\u305f\uff09<\/p>\n<p>&nbsp;<span class=\"pl-c\"><span class=\"pl-c\">#<\/span> (outside of command line) put stable diffusion model into web ui directory<\/span>\n<\/p>\n<pre><span class=\"pl-c\"><span class=\"pl-c\">#<\/span> the command below must output something like: 1 File(s) 4,265,380,512 bytes<\/span>\ndir model.ckpt<\/pre>\n<pre>&nbsp;<\/pre>\n<pre>\u7d50\u8ad6\u3068\u3057\u3066\u306f\u3001&nbsp;\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u30e2\u30c7\u30eb\uff08checkpoint\u30d5\u30a1\u30a4\u30eb\u3068\u547c\u3073\u3001.ckpt\u30d5\u30a1\u30a4\u30eb\u3068\u3044\u3046\u3089\u3057\u3044\uff09\u306f<br \/><a href=\"https:\/\/huggingface.co\/stabilityai\/stable-diffusion-2-1\/tree\/main\">\u3053\u306e\u3042\u305f\u308a<\/a>\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u914d\u7f6e\u5148\u306f<\/pre>\n<pre>$(stable-diffusion-webui-base)\/models\/stable-diffusion\/ \u306e\u914d\u4e0b\u306b\u7f6e\u3044\u305f\u3002<\/pre>\n<pre>&nbsp;<\/pre>\n<pre>4.\u6700\u5f8c\u306b<br \/>$ python webui.py<br \/>\u3092\u5b9f\u884c\u3059\u308c\u3070\u8d77\u52d5\u3059\u308b\u3068\u3042\u308b\u306e\u3060\u304c\u3001<br \/>AssertionError: Couldn't find Stable Diffusion in any of: ['\/home\/xxx\/src\/stable-diffusion-webui\/repositories\/stable-diffusion-stability-ai', '.', '\/home\/xxx\/src']<br \/>\u307f\u305f\u3044\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u8d77\u52d5\u3067\u304d\u306a\u304b\u3063\u305f\u3002\u3050\u3050\u3063\u3066\u307f\u308b\u3068\u306a\u3093\u304b\u306e\u30d0\u30b0\u304b\u74b0\u5883\u4f9d\u5b58\u306a\u6c17\u3082\u3057\u305f\u3093\u3060\u3051\u3069\u3088\u304f\u308f\u304b\u3089\u306a\u304b\u3063\u305f<\/pre>\n<pre>&nbsp;<\/pre>\n<pre>5.\u56f0\u3063\u305f\u306e\u3067\u3001<br \/>$ python launch.py<br \/>\u3092\u5b9f\u884c\u3057\u3066\u307f\u305f\uff08launch\u3068\u66f8\u3044\u3066\u3042\u308b\u3093\u3060\u304b\u3089\u3068\u306b\u304b\u304f\u4f55\u304b\u304c\u8d77\u52d5\u3059\u308b\u3093\u3060\u308d\u3046\u3068\u601d\u3063\u305f\u3060\u3051\uff09<br \/>\u305d\u3046\u3059\u308b\u3068<br \/>$ python launch.py<br \/>Python 3.10.6 (main, Mar 25 2023, 07:43:47) [GCC 9.4.0]<br \/>Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2<br \/>Installing open_clip<br \/>Cloning Stable Diffusion into ...\uff08\u7565\uff09<br \/>\u307f\u305f\u3044\u306b\u51fa\u3066\u3001\u4f55\u3084\u3089\u8ffd\u52a0\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u305f\u3002<\/pre>\n<pre>\u6700\u7d42\u7684\u306b<br \/>Running on local URL:  http:\/\/127.0.0.1:7860<br \/>\u3068\u8868\u793a\u3055\u308c\u3066\u3001\u3053\u3053\u306eURL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068Stable Diffusion WebUI\u304c\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u8868\u793a\u3067\u304d\u305f<\/pre>\n<pre>\u3055\u3089\u306b\u3001\u4ee5\u964d\u306f<\/pre>\n<pre>$ python webui.py<\/pre>\n<pre>\u3067\u3082\u8d77\u52d5\u3067\u304d\u305f\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u6700\u5f8c\u306e\u6bb5\u968e\u3067python launch.py\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u5fc5\u8981\u3060\u3063\u305f\u306e\u3060\u308d\u3046\uff08\u304d\u3063\u3068\uff09\u3002<\/pre>\n<pre><br \/><\/pre>\n<pre><br \/><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;Stable Diffusion WebUI\u3092Ubuntu\u3068pyenv-virtualenv\u306e\u74b0\u5883\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002\u516c\u5f0f\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u3069\u304a\u308a\u3067\u306f\u3046\u307e\u304f\u884c\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u6b63\u3057\u3044\u306e\u304b\u306f\u308f\u304b\u3063\u3066\u306a\u3044\u3051\u3069\u3068\u308a\u3042\u3048\u305a\u52d5\u3044\u305f\u306e\u3067\u5dee\u5206\u306e\u30e1\u30e2\u3092\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u8a66\u3057\u305f\u306e\u306f2023\/3\/25\u3002 Ubuntu\u306e\u74b0\u5883\u306f\u4ee5\u4e0b\u306e\u901a\u308a$ cat \/etc\/os-releaseNAME=&#8221;Ubuntu&#8221;VERSION=&#8221;20.04.3 LTS (Focal Fossa)&#8221; 1. \u307e\u305apyenv virutualenv\u3067\u5c02\u7528\u306e\u74b0\u5883\u3092\u4f5c\u308b\u3002\u73fe\u6642\u70b9\u3067\u8981\u6c42\u306epython\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c3.10.6\u3068\u306e\u3053\u3068\u3060\u3063\u305f\u306e\u3067\u5f93\u3046 $ pyenv virtualenv 3.10.6 stable-diffusion-webui\u307f\u305f\u3044\u306b\u3057\u3066\u30013.10.6\u3092\u30d9\u30fc\u30b9\u306b\u3057\u305fvirtualenv\u74b0\u5883\u3092\u4f5c\u3063\u3066\u304a\u304f\u3002 &nbsp; 2. &#8220;Automatic Installation on Linux&#8221;\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u8d77\u52d5\u6642\u306bstable diffusion\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u51fa\u3066\u8d77\u52d5\u3067\u304d\u306a\u304b\u3063\u305f\u3002\u4ed5\u65b9\u304c\u306a\u3044\u306e\u3067\u3053\u3053\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\uff84\u306b\u3042\u308bManual Install\u306e\u65b9\u3092\u8a66\u3057\u305f\u3002 3.\u3053\u308c\u306f\u5358\u7d14\u306b\u79c1\u304c\u7406\u89e3\u3057\u3066\u306a\u3044\u3060\u3051\u3060\u3068\u601d\u3046\u3051\u3069\u3001Manual Install\u306e\u6700\u5f8c\u306e\u610f\u5473\u304c\u308f\u304b\u3089\u306a\u304b\u3063\u305f\uff08\u4f55\u3092\u3069\u3053\u306b\u914d\u7f6e\u3059\u308c\u3070\u3044\u3044\u306e\u304b\u304c\u308f\u304b\u3089\u306a\u304b\u3063\u305f\uff09 &nbsp;# (outside of command line) put stable diffusion model into web ui directory # the command below must output something like: 1 File(s) 4,265,380,512 bytes dir model.ckpt &nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1039","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1039"}],"version-history":[{"count":1,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1039\/revisions"}],"predecessor-version":[{"id":1040,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1039\/revisions\/1040"}],"wp:attachment":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}