{"id":2333,"date":"2023-02-19T11:17:23","date_gmt":"2023-02-19T02:17:23","guid":{"rendered":"https:\/\/blog.yoshisuke.com\/?p=2333"},"modified":"2023-02-19T11:17:23","modified_gmt":"2023-02-19T02:17:23","slug":"chatgpt%e3%81%8f%e3%82%93%e3%81%ab%e8%81%9e%e3%81%84%e3%81%a6deepl%e3%81%a7%e7%bf%bb%e8%a8%b3","status":"publish","type":"post","link":"https:\/\/blog.yoshisuke.com\/?p=2333","title":{"rendered":"ChatGPT\u304f\u3093\u306b\u805e\u3044\u3066DeepL\u3067\u7ffb\u8a33"},"content":{"rendered":"<p>venv &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\venv\\Scripts\\Python.exe&#8221; Python 3.10.6 (tags\/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Commit hash: Installing requirements for Web UI Installing requirement for sd-webui-controlnet Installing imageio-ffmpeg requirement for depthmap script Installing pyqt5 requirement for depthmap script Launching Web UI with arguments: Error loading script: additional_networks.py Traceback (most recent call last): File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\modules\\scripts.py&#8221;, line 170, in load_scripts exec(compiled, module.__dict__) File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\extensions\\sd-webui-additional-networks\\scripts\\additional_networks.py&#8221;, line 11, in from scripts import lora_compvis, model_util, metadata_editor, xyz_grid_support File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\extensions\\sd-webui-additional-networks\\scripts\\model_util.py&#8221;, line 11, in from modules import shared, sd_models, hashes ImportError: cannot import name &#8216;hashes&#8217; from &#8216;modules&#8217; (unknown location) Error loading script: metadata_editor.py Traceback (most recent call last): File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\modules\\scripts.py&#8221;, line 170, in load_scripts exec(compiled, module.__dict__) File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\extensions\\sd-webui-additional-networks\\scripts\\metadata_editor.py&#8221;, line 14, in from modules.ui_components import ToolButton ModuleNotFoundError: No module named &#8216;modules.ui_components&#8217; Error loading script: model_util.py Traceback (most recent call last): File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\modules\\scripts.py&#8221;, line 170, in load_scripts exec(compiled, module.__dict__) File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\extensions\\sd-webui-additional-networks\\scripts\\model_util.py&#8221;, line 11, in from modules import shared, sd_models, hashes ImportError: cannot import name &#8216;hashes&#8217; from &#8216;modules&#8217; (unknown location) Error loading script: safetensors_hack.py Traceback (most recent call last): File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\modules\\scripts.py&#8221;, line 170, in load_scripts exec(compiled, module.__dict__) File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\extensions\\sd-webui-additional-networks\\scripts\\safetensors_hack.py&#8221;, line 7, in import safetensors ModuleNotFoundError: No module named &#8216;safetensors&#8217; Error loading script: xyz_grid_support.py Traceback (most recent call last): File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\modules\\scripts.py&#8221;, line 170, in load_scripts exec(compiled, module.__dict__) File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\extensions\\sd-webui-additional-networks\\scripts\\xyz_grid_support.py&#8221;, line 5, in from scripts import model_util, util File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\extensions\\sd-webui-additional-networks\\scripts\\model_util.py&#8221;, line 11, in from modules import shared, sd_models, hashes ImportError: cannot import name &#8216;hashes&#8217; from &#8216;modules&#8217; (unknown location) Error loading script: controlnet.py Traceback (most recent call last): File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\modules\\scripts.py&#8221;, line 170, in load_scripts exec(compiled, module.__dict__) File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\extensions\\sd-webui-controlnet\\scripts\\controlnet.py&#8221;, line 19, in from modules.ui_components import ToolButton ModuleNotFoundError: No module named &#8216;modules.ui_components&#8217; Error loading script: xyz_grid_support.py Traceback (most recent call last): File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\modules\\scripts.py&#8221;, line 170, in load_scripts exec(compiled, module.__dict__) File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\extensions\\sd-webui-controlnet\\scripts\\xyz_grid_support.py&#8221;, line 43, in xyz_grid = find_xyz_grid() File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\extensions\\sd-webui-controlnet\\scripts\\xyz_grid_support.py&#8221;, line 7, in find_xyz_grid return data.module AttributeError: &#8216;ScriptClassData&#8217; object has no attribute &#8216;module&#8217; Error loading script: depthmap.py Traceback (most recent call last): File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\modules\\scripts.py&#8221;, line 170, in load_scripts exec(compiled, module.__dict__) File &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\extensions\\stable-diffusion-webui-depthmap-script\\scripts\\depthmap.py&#8221;, line 7, in from modules.call_queue import wrap_gradio_gpu_call, wrap_queued_call, wrap_gradio_call ModuleNotFoundError: No module named &#8216;modules.call_queue&#8217; LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. making attention of type &#8216;vanilla&#8217; with 512 in_channels Working with z of shape (1, 4, 32, 32) = 4096 dimensions. making attention of type &#8216;vanilla&#8217; with 512 in_channels Loading weights [cc62bc47] from C:\\Program Files (x86)\\stable-diffusion-webui-master\\models\\Stable-diffusion\\Any 6Ely3.ckpt Applying cross attention optimization (Doggettx). Model loaded. Loaded a total of 0 textual inversion embeddings. Embeddings: Running on local URL: http:\/\/127.0.0.1:7860 To create a public link, set `share=True` in `launch()`.<\/p>\n<p>It seems that there are multiple errors occurring while launching the Web UI with some arguments.<\/p>\n<p>The first error is related to the additional_networks.py script, which fails to import the hashes module from the modules package.<\/p>\n<p>The second error is related to the metadata_editor.py script, which cannot find the modules.ui_components module.<\/p>\n<p>The third error is related to the model_util.py script, which fails to import the hashes module from the modules package.<\/p>\n<p>The fourth error is related to the safetensors_hack.py script, which cannot find the safetensors module.<\/p>\n<p>The fifth error is related to the xyz_grid_support.py script, which fails to import the hashes module from the modules package.<\/p>\n<p>The sixth error is related to the controlnet.py script, which cannot find the modules.ui_components module.<\/p>\n<p>The seventh error is related to the xyz_grid_support.py script, which fails to find the module attribute of the ScriptClassData object.<\/p>\n<p>The eighth error is related to the depthmap.py script, which fails to import the pyqt5 module and the imageio-ffmpeg module.<\/p>\n<p>It seems that some required modules and packages are missing, so you may need to install them using a package manager like pip. Additionally, you may need to check the paths to the modules and packages, and make sure that they are correctly set.<\/p>\n<p>&nbsp;<\/p>\n<p>\u3044\u304f\u3064\u304b\u306e\u5f15\u6570\u3092\u6307\u5b9a\u3057\u3066Web UI\u3092\u8d77\u52d5\u3059\u308b\u969b\u306b\u3001\u8907\u6570\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u6700\u521d\u306e\u30a8\u30e9\u30fc\u306f additional_networks.py \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001modules \u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089 hashes \u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u306b\u5931\u6557\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>2\u3064\u76ee\u306e\u30a8\u30e9\u30fc\u306f\u3001modules.ui_components \u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u898b\u3064\u3051\u3089\u308c\u306a\u3044 metadata_editor.py \u30b9\u30af\u30ea\u30d7\u30c8\u306b\u95a2\u9023\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>3\u3064\u76ee\u306e\u30a8\u30e9\u30fc\u306fmodel_util.py\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u95a2\u9023\u3059\u308b\u3082\u306e\u3067\u3001modules\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089hashes\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u306b\u5931\u6557\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>4\u3064\u76ee\u306e\u30a8\u30e9\u30fc\u306f\u3001safetensors_hack.py\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u95a2\u9023\u3059\u308b\u3082\u306e\u3067\u3001safetensors\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>5\u756a\u76ee\u306e\u30a8\u30e9\u30fc\u306f\u3001xyz_grid_support.py\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u95a2\u9023\u3059\u308b\u3082\u306e\u3067\u3001modules\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089hashes\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u306b\u5931\u6557\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>6\u756a\u76ee\u306e\u30a8\u30e9\u30fc\u306f\u3001controlnet.py\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u95a2\u9023\u3059\u308b\u3082\u306e\u3067\u3001modules.ui_components\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u898b\u5f53\u305f\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>7\u756a\u76ee\u306e\u30a8\u30e9\u30fc\u306f\u3001xyz_grid_support.py \u30b9\u30af\u30ea\u30d7\u30c8\u306b\u95a2\u9023\u3059\u308b\u3082\u306e\u3067\u3001ScriptClassData \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e module \u5c5e\u6027\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u306b\u5931\u6557\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>8\u3064\u76ee\u306e\u30a8\u30e9\u30fc\u306f\u3001pyqt5\u30e2\u30b8\u30e5\u30fc\u30eb\u3068imageio-ffmpeg\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u306b\u5931\u6557\u3057\u305f\u3001depthmap.py\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u95a2\u9023\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u5fc5\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u3084\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001pip\u306e\u3088\u3046\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3055\u3089\u306b\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u3084\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d1\u30b9\u3092\u78ba\u8a8d\u3057\u3001\u305d\u308c\u3089\u304c\u6b63\u3057\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>venv &#8220;C:\\Program Files (x86)\\stable-diffusion-webui-master\\venv\\Scripts\\Python.exe&#8221; Python 3.10.6  &hellip; <a href=\"https:\/\/blog.yoshisuke.com\/?p=2333\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;ChatGPT\u304f\u3093\u306b\u805e\u3044\u3066DeepL\u3067\u7ffb\u8a33&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[36,37,1,35],"tags":[],"class_list":["post-2333","post","type-post","status-publish","format-standard","hentry","category-php","category-python","category-miscellaneous","category-pr"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blog.yoshisuke.com\/index.php?rest_route=\/wp\/v2\/posts\/2333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.yoshisuke.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.yoshisuke.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.yoshisuke.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.yoshisuke.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2333"}],"version-history":[{"count":1,"href":"https:\/\/blog.yoshisuke.com\/index.php?rest_route=\/wp\/v2\/posts\/2333\/revisions"}],"predecessor-version":[{"id":2334,"href":"https:\/\/blog.yoshisuke.com\/index.php?rest_route=\/wp\/v2\/posts\/2333\/revisions\/2334"}],"wp:attachment":[{"href":"https:\/\/blog.yoshisuke.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.yoshisuke.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.yoshisuke.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}