{"id":2788,"date":"2025-07-16T09:30:51","date_gmt":"2025-07-16T00:30:51","guid":{"rendered":"https:\/\/comcent.co.jp\/blog\/?p=2788"},"modified":"2025-03-19T13:53:47","modified_gmt":"2025-03-19T04:53:47","slug":"wsl2-%e4%b8%8a%e3%81%ab%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%9f-stable-diffusion-web-ui-%e3%82%92-php-%e3%81%a7%e4%bd%9c%e3%81%a3%e3%81%9f%e3%83%87%e3%83%bc%e3%83%a2","status":"publish","type":"post","link":"https:\/\/comcent.co.jp\/blog\/archives\/2788\/","title":{"rendered":"WSL2 \u4e0a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f Stable Diffusion web UI \u3092 PHP \u3067\u4f5c\u3063\u305f\u30c7\u30fc\u30e2\u30f3\u304b\u3089 API \u3067\u7121\u9650\u753b\u50cf\u751f\u6210"},"content":{"rendered":"\n<p>\u50d5\u306f\u666e\u6bb5 Web \u958b\u767a\u306e\u4e16\u754c\u306b\u5c45\u308b\u306e\u3067\u3001Stable Diffusion \u304c\u4e16\u306b\u51fa\u305f\u3068\u304d\u306f\u540c\u3058 IT \u5206\u91ce\u3067\u3082\u306a\u3093\u3060\u304b\u9060\u3044\u4e16\u754c\u306e\u8a71\u3060\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u3002<br>\u3084\u304c\u3066 Stable Diffusion web UI \u3068\u3044\u3046\u3082\u306e\u3092\u77e5\u308a\u3001\u8a66\u3057\u306b\u52d5\u4f5c\u8981\u4ef6\u3092\u8abf\u3079\u3066\u307f\u305f\u3089\u3001\u50d5\u306e\u76f8\u68d2\u3067\u3042\u308b 7 \u5e74\u524d\u306b\u8cfc\u5165\u3057\u305f\u30ce\u30fc\u30c8 PC \u306b\u306f VRAM \u304c\u308f\u305a\u304b 2G \u306e GPU \u304c\u4e57\u3063\u3066\u3044\u305f\u3053\u3068\u306b\u6c17\u304c\u4ed8\u304d\u307e\u3057\u305f\u3002<br>Git \u3084\u30bf\u30fc\u30df\u30ca\u30eb\u306f\u666e\u6bb5\u304b\u3089\u4f7f\u7528\u3057\u3066\u3044\u305f\u306e\u3067\u305d\u3053\u306b\u82e6\u52b4\u306f\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u305d\u308c\u3067\u3082\u53f3\u5f80\u5de6\u5f80\u3057\u306a\u304c\u3089\u521d\u3081\u3066\u306e\u753b\u50cf\u751f\u6210\u306b\u6210\u529f\u3057\u305f\u306e\u304c\u53bb\u5e74(2022)\u306e 10 \u6708\u9803\u3002\u305d\u3053\u304b\u3089\u697d\u3057\u304f\u306a\u3063\u3066\u3001\u8272\u3005\u306a\u753b\u50cf\u3092\u751f\u6210\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u30012G \u306e VRAM \u3067\u306f\u901f\u5ea6\u3092\u72a0\u7272\u306b\u3059\u308b\u30e2\u30fc\u30c9\u3067\u52d5\u4f5c\u3055\u305b\u308b\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3002\u5177\u4f53\u7684\u306b\u306f 512 \u00d7 512 \u306e\u753b\u50cf\u3092 30 steps \u3067\u4f5c\u308b\u3068\u306a\u308b\u3068\u3001 1 \u679a\u3042\u305f\u308a 3 \u5206\u307b\u3069\u304b\u304b\u308a\u307e\u3059\u3002\u3082\u3063\u3068\u73fe\u4ee3\u7684\u306a GPU \u3092\u6301\u3063\u3066\u3044\u308b\u65b9\u304b\u3089\u3059\u308b\u3068\u3001\u697d\u3057\u3080\u3069\u3053\u308d\u304b\u6012\u308a\u3092\u611f\u3058\u308b\u3088\u3046\u306a\u901f\u5ea6\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u3067\u3082<s>\u304b\u308f\u3044\u3044\u5973\u306e\u5b50\u3092\u751f\u6210\u3057\u3066\u3001\u4ffa\u3060\u3051\u306e\u30df\u30b9\u30b3\u30f3\u3092\u958b\u50ac\u3057\u305f\u3044<\/s>\u500b\u4eba\u7684\u306b\u597d\u304d\u306a\u30de\u30b0\u30ea\u30c3\u30c8\u3084\u30d9\u30af\u30b7\u30f3\u30b9\u30ad\u30fc\u306e\u63cf\u3044\u305f\u7d75\u753b\u306e\u3088\u3046\u306a\u753b\u50cf\u3092\u6ca2\u5c71\u751f\u6210\u3057\u3066\u6bd4\u3079\u3066\u307f\u305f\u3044\u3001\u3068\u3044\u3046\u6b32\u6c42\u3082\u3042\u3063\u305f\u305f\u3081\u3001\u305d\u306e\u305f\u3081\u306b\u306f\u591c\u901a\u3057\u751f\u6210\u3092\u56de\u3057\u7d9a\u3051\u308b\u3057\u304b\u306a\u3044\u3068\u8003\u3048\u307e\u3057\u305f\u3002<br>\u3068\u306f\u8a00\u3048\u3001\u305d\u3046\u306a\u308b\u3068\u3061\u3087\u3063\u3068\u305a\u3064\u9055\u3063\u305f\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5909\u3048\u308b\u3001\u3068\u3044\u3063\u305f\u4f5c\u696d\u3082\u624b\u4f5c\u696d\u3067\u3059\u308b\u308f\u3051\u306b\u306f\u3044\u304d\u307e\u305b\u3093\u3002\u540c\u3058\u30d7\u30ed\u30f3\u30d7\u30c8\u306a\u3089\u5ef6\u3005 seed \u3092\u5909\u3048\u306a\u304c\u3089\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u81ea\u52d5\u3067\u5909\u5316\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u62e1\u5f35\u6a5f\u80fd\u3092\u4f7f\u3046\u306e\u304c\u624b\u3063\u3068\u308a\u65e9\u305d\u3046\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3067\u3082\u62e1\u5f35\u6a5f\u80fd\u306b\u306f\u3069\u3093\u306a\u3082\u306e\u304c\u3042\u308b\u306e\u304b\uff1f \u3068\u3001\u516c\u5f0f\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u8aad\u3093\u3067\u3044\u305f\u3089\u3001\u3069\u3046\u3084\u3089 Stable Diffusion web UI \u306b\u306f HTTP \u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b API \u304c\u5099\u308f\u3063\u3066\u304a\u308a\u3001\u3060\u3044\u305f\u3044\u306e\u6a5f\u80fd\u306f API \u8d8a\u3057\u306b\u64cd\u4f5c\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002HTTP \u306e API \u3067\u3042\u308c\u3070\u3001\u8a00\u8a9e\u306f\u554f\u308f\u306a\u3044\u306f\u305a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30df\u30b9\u30b3\u30f3\u958b\u50ac\u3088\u308a\u3082\u3001 PHPer \u3068\u3057\u3066\u306e\u8208\u5473\u304c\u52dd\u3063\u305f\u77ac\u9593\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-comcent-blog-headline01 modHeadline\">\u4eca\u56de\u4f5c\u3063\u305f\u3082\u306e<\/h4>\n\n\n\n<p>Stable Diffusion web UI \u306b\u306f\u305f\u304f\u3055\u3093\u306e\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u30b7\u30f3\u30d7\u30eb\u306b PHP \u304b\u3089 txt2img \u3067\u753b\u50cf\u3092\u4f5c\u308b\u3060\u3051\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<br>\u305f\u3060\u3057\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5909\u5316\u3092\u3064\u3051\u308b\u305f\u3081\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u66f8\u3044\u305f\u8907\u6570\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u7f6e\u304f\u3053\u3068\u3067\u30e9\u30f3\u30c0\u30e0\u306b\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u5909\u5316\u3055\u305b\u3089\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>Linux \u4e0a\u306e\u30c7\u30fc\u30e2\u30f3\u3068\u3057\u3066\u52d5\u304f PHP \u304c API \u3092\u53e9\u304d\u7d9a\u3051\u308b\u305f\u3081\u3001\u653e\u3063\u3066\u304a\u3051\u3070\u5ef6\u3005\u3068\u753b\u50cf\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<br>\u4eca\u56de\u306f WIndows \u4e0a\u306e WSL2 (Ubuntu) \u3067\u691c\u8a3c\u30fb\u958b\u767a\u3092\u3057\u307e\u3057\u305f\u304c\u3001\u304a\u305d\u3089\u304f\u7d14\u7c8b\u306a Linux \u4e0a\u3067\u3082\u52d5\u304f\u304b\u3068\u601d\u308f\u308c\u307e\u3059\u3002<br>\u7ba1\u7406\u753b\u9762\u306f\u7121\u304f\u3001DB \u3082\u4f7f\u7528\u3057\u306a\u3044\u4ee3\u308f\u308a\u306b\u3001\u8a2d\u5b9a\u306f\u30d5\u30a1\u30a4\u30eb\u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u52d5\u4f5c\u8981\u4ef6<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u3001\u3056\u3063\u304f\u308a\u3068\u52d5\u4f5c\u8981\u4ef6\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002() \u306e\u4e2d\u306f\u5b9f\u969b\u306b\u52d5\u4f5c\u78ba\u8a8d\u3057\u305f\u74b0\u5883\u60c5\u5831\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>OS Linux (Ubuntu 22.04.2 LTS on WSL2)<\/li>\n\n\n\n<li>PHP (PHP 8.1.2-1ubuntu2.11 (cli) (built: Feb 22 2023 22:56:18) (NTS))<\/li>\n\n\n\n<li>Stable Diffusion web UI (Commit Hash: 22bcc7be428c94e9408f589966c2040187245d81)<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-comcent-blog-headline01 modHeadline\">\u4f7f\u3044\u65b9 - \u8d77\u52d5\u307e\u3067<\/h4>\n\n\n\n<p>\u307e\u305a\u306f Stable Diffusiion web UI \u3092\u8d77\u52d5\u3059\u308b\u306e\u3067\u3059\u304c\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code modBlobCode\"><code>set COMMANDLINE_ARGS=<\/code><\/pre>\n\n\n\n<p>\u306b<\/p>\n\n\n\n<pre class=\"wp-block-code modBlobCode\"><code>--api<\/code><\/pre>\n\n\n\n<p>\u3092\u8db3\u3057\u3066\u304b\u3089\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3067\u30d6\u30e9\u30a6\u30b6\u306e UI \u306b\u52a0\u3048\u3001HTTP \u8d8a\u3057\u306b API \u3092\u53e9\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u4f7f\u7528\u3059\u308b\u30e2\u30c7\u30eb\u306e\u5207\u308a\u66ff\u3048\u3084 <strong>settings<\/strong> \u30bf\u30d6\u3067\u884c\u3046\u3088\u3046\u306a\u8a2d\u5b9a\u306f\u901a\u5e38\u306e Stable Diffusion web UI \u753b\u9762\u3067\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u6b21\u306b\u30b7\u30b9\u30c6\u30e0\u3092<a href=\"https:\/\/comcent.co.jp\/blog\/wp-content\/uploads\/2023\/06\/sdl.zip\" class=\"pageAuthorProfLink\">\u3053\u3061\u3089<\/a>\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u89e3\u51cd\u3057\u305f\u3082\u306e\u3092\u4efb\u610f\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u7f6e\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3089 PHP \u306e\u30b7\u30b9\u30c6\u30e0\u306f\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3001\/home\/\u30e6\u30fc\u30b6\u30fc\u540d \u4e0b\u3067\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<br>\u307e\u305f\u3001\u89e3\u51cd\u3057\u305f\u5f8c\u306b\u30c7\u30fc\u30e2\u30f3\u304c PHP \u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3001<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>run.php<\/li>\n\n\n\n<li>exec.php<\/li>\n\n\n\n<li>sdl.sh<\/li>\n\n\n\n<li>logs<\/li>\n\n\n\n<li>outputs<\/li>\n<\/ul>\n\n\n\n<p>\u306b\u306f\u5b9f\u884c\u6a29\u9650(x)\u3092\u8ffd\u52a0\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u6642\u70b9\u3067\u554f\u984c\u304c\u306a\u3051\u308c\u3070 PHP \u304c\u52d5\u304f\u3068\u601d\u3046\u306e\u3067\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u306a\u3069\u3067\u89e3\u51cd\u5148\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code modBlobCode\"><code>php run.php<\/code><\/pre>\n\n\n\n<p> \u3092\u5b9f\u884c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br>\u554f\u984c\u304c\u306a\u3051\u308c\u3070 <strong>logs<\/strong> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30ed\u30b0\u304c\u3001<strong>outputs<\/strong> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u753b\u50cf\u304c\u81ea\u52d5\u3067\u4f5c\u6210\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u5f8c\u306b <strong>\/etc\/systemd\/system<\/strong> \u306b <strong>sdl.service<\/strong> \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code modBlobCode\"><code>&#91;Unit]\nDescription=StableDiffusionLine\n\n&#91;Service]\nType=forking\nPIDFile=\/run\/sdl.pid\nExecStart=\u89e3\u51cd\u5148\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30d1\u30b9\/sdl\/sdl.sh\nRestart=no\n\n&#91;Install]\nWantedBy=multi-user.target<\/code><\/pre>\n\n\n\n<p>\u8a2d\u7f6e\u304c\u7d42\u308f\u3063\u305f\u3089<\/p>\n\n\n\n<pre class=\"wp-block-code modBlobCode\"><code>sudo systemctl start sdl<\/code><\/pre>\n\n\n\n<p>\u3067\u30c7\u30fc\u30e2\u30f3\u3092\u8d77\u52d5\u3067\u304d\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u308c\u3067\u5ef6\u3005\u3068\u81ea\u52d5\u3067\u753b\u50cf\u304c\u751f\u6210\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u505c\u6b62\u3055\u305b\u308b\u5834\u5408\u306f<\/p>\n\n\n\n<pre class=\"wp-block-code modBlobCode\"><code>sudo systemctl stop sdl<\/code><\/pre>\n\n\n\n<p>\u3067\u505c\u6b62\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-comcent-blog-headline01 modHeadline\">\u4f7f\u3044\u65b9\u30fb\u751f\u6210\u8a2d\u5b9a<\/h4>\n\n\n\n<p>\u8a2d\u5b9a\u306f <strong>settings<\/strong> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u3067\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a limit.json \u3067\u3059\u304c\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u305d\u3082\u305d\u3082\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b\u306e\u304b\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u3044\u3064\u304b\u3089 &amp; \u3044\u3064\u307e\u3067\u751f\u6210\u3059\u308b\u306e\u304b\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>enable: true \u304b false \u3002false \u306b\u3059\u308b\u3068\u753b\u50cf\u3092\u751f\u6210\u3057\u306a\u3044\u3002<\/li>\n\n\n\n<li>start: null \u304b 'YYYY-mm-dd HH:ii:ss' \u5f62\u5f0f\u306e\u6587\u5b57\u5217\u3002 null \u3060\u3068\u7121\u5236\u9650\u3002<\/li>\n\n\n\n<li>end: null \u304b 'YYYY-mm-dd HH:ii:ss' \u5f62\u5f0f\u306e\u6587\u5b57\u5217\u3002 null \u3060\u3068\u7121\u5236\u9650\u3002<\/li>\n<\/ul>\n\n\n\n<p>txt2img.json \u3067\u306f txt2img API \u3092\u53e9\u304f\u969b\u306e\u8a2d\u5b9a\u304c\u884c\u3048\u307e\u3059\u3002\u753b\u50cf\u306e\u5927\u304d\u3055\u3001\u30b9\u30c6\u30c3\u30d7\u6570\u3001\u30b5\u30f3\u30d7\u30e9\u30fc\u306a\u3069\u306f\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>endpoint: txt2img API \u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u8a2d\u5b9a\u3067\u3059\u3002\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u5909\u3048\u308b\u5fc5\u8981\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u30dd\u30fc\u30c8\u90e8\u5206\u306a\u3069\u3092\u5909\u66f4\u3057\u305f\u5834\u5408\u306f\u3053\u306e\u8a2d\u5b9a\u3082\u5408\u308f\u305b\u3066\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>parameters: \u305d\u306e\u307e\u307e txt2img API \u306b\u6e21\u3059\u8a2d\u5b9a\u3068\u306a\u308a\u307e\u3059\u3002\u8a73\u7d30\u306f Stable Diffusion web UI \u81ea\u4f53\u306e http:\/\/127.0.0.1:7860\/docs \u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 prompt, negative_prompt \u306f\u4e0a\u66f8\u304d\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>prompts<\/strong> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u306f Stable Diffusion web UI \u306b\u6e21\u3059\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8a18\u8f09\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u521d\u671f\u72b6\u614b\u3067\u3044\u304f\u3064\u304b\u306e\u30b5\u30f3\u30d7\u30eb\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u307e\u3059\u304c\u3001\u3053\u308c\u3089\u30b5\u30f3\u30d7\u30eb\u30d5\u30a1\u30a4\u30eb\u306e\u3088\u3046\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5148\u982d\u306f 0 ~ 100 \u306e\u6570\u5024\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u6570\u5024\u304c\u4e2d\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u5b9f\u969b\u306b\u4f7f\u308f\u308c\u308b\u304b\u3069\u3046\u304b\u306e\u78ba\u7387(%)\u3068\u306a\u308a\u307e\u3059\u3002\u5148\u982d\u306e\u6570\u5b57\u4ee5\u964d\u306f\u62e1\u5f35\u5b50\u542b\u3081\u81ea\u7531\u3067\u3001\u307e\u305f\u30d5\u30a1\u30a4\u30eb\u6570\u306e\u5236\u9650\u3082\u3042\u308a\u307e\u305b\u3093\u3002<br>\u3053\u308c\u3089\u30d5\u30a1\u30a4\u30eb\u4e2d\u306b\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u66f8\u3044\u3066\u3044\u304f\u306e\u3067\u3059\u304c\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u66f8\u304f\u884c\u306e\u6700\u521d\u306f\u300c<strong>+ <\/strong>\u300d\u300c<strong>- <\/strong>\u300d(\u4e21\u65b9\u3068\u3082\u8a18\u53f7\u306e\u5f8c\u306b\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3042\u308a)\u306e\u3069\u3061\u3089\u304b\u304b\u3089\u59cb\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3069\u3061\u3089\u3067\u3082\u306a\u3044\u884c\u306f\u7121\u8996\u3055\u308c\u307e\u3059\u3002\u300c<strong>+ <\/strong>\u300d\u304b\u3089\u59cb\u3081\u305f\u5834\u5408\u306f\u901a\u5e38\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3001\u300c<strong>- <\/strong>\u300d\u304b\u3089\u59cb\u3081\u305f\u5834\u5408\u306f\u30cd\u30ac\u30c6\u30a3\u30d6\u30d7\u30ed\u30f3\u30d7\u30c8\u3068\u3057\u3066\u4f5c\u7528\u3057\u307e\u3059\u3002<br>\u307e\u305f\u3001\u4e8c\u9023\u7d9a\u306e\u6539\u884c(=\u7a7a\u884c\u3092\u4e00\u884c\u631f\u3080)\u3092\u9014\u4e2d\u306b\u5165\u308c\u305f\u5834\u5408\u306f\u305d\u308c\u3092\u533a\u5207\u308a\u3068\u3057\u3066\u3001\u8907\u6570\u306e\u30b0\u30eb\u30fc\u30d7\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u307e\u3059\u3002<br>\u4e00\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u3067\u5b9f\u969b\u306b\u63a1\u7528\u3055\u308c\u308b\u306e\u306f\u4e00\u30b0\u30eb\u30fc\u30d7\u3060\u3051\u3067\u3001\u305d\u308c\u305e\u308c\u5747\u7b49\u306a\u78ba\u7387\u3067\u4e00\u3064\u306e\u30b0\u30eb\u30fc\u30d7\u304c\u30e9\u30f3\u30c0\u30e0\u306b\u9078\u3070\u308c\u307e\u3059\u3002<br>\u4f8b\u3092\u6319\u3052\u308b\u3068\u3001 <strong>80-fruits.txt<\/strong> \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u3063\u305f\u5834\u5408\u3001 80% \u306e\u78ba\u7387\u3067 80-fruits.txt \u306e\u4e2d\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u30d7\u30ed\u30f3\u30d7\u30c8\u30b0\u30eb\u30fc\u30d7\u306e\u3046\u3061\u4e00\u3064\u304c\u63a1\u7528\u3055\u308c\u307e\u3059\u3002<br>\u4e2d\u8eab\u304c<\/p>\n\n\n\n<pre class=\"wp-block-code modBlobCode\"><code>+ banana,melon\n- human\n\n+ apple,strawberry\n\n+ mango,grape\n- outdoor,forest,field<\/code><\/pre>\n\n\n\n<p>\u3060\u3063\u305f\u3068\u3059\u308c\u3070\u3001<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>33.333333...% \u306e\u78ba\u7387\u3067 prompt: banana,melon, negative_prompt: human<\/li>\n\n\n\n<li>33.333333...% \u306e\u78ba\u7387\u3067 prompt: apple,strawberry, negative_prompt: <\/li>\n\n\n\n<li>33.333333...% \u306e\u78ba\u7387\u3067 prompt: mango,grape, negative_prompt: outdoor,forest,field<\/li>\n<\/ul>\n\n\n\n<p>\u306e\u3088\u3046\u306a\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u9078\u629e\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u3068\u3081<\/p>\n\n\n\n<p>\u3053\u306e\u30b7\u30b9\u30c6\u30e0\u81ea\u4f53\u306f 3 \u6642\u9593\u304f\u3089\u3044\u3067\u3071\u3063\u3068\u4f5c\u3063\u305f\u3082\u306e\u3067\u3059\u304c\u3001\u5e73\u884c\u3057\u3066\u7ba1\u7406\u753b\u9762\u30fb\u30d3\u30e5\u30fc\u30ef\u30fc\u8fbc\u307f\u306e\u30b7\u30b9\u30c6\u30e0\u3082\u958b\u767a\u3057\u3066\u3044\u307e\u3059\u3002<br>\u50d5\u306f python \u3082\u307b\u3068\u3093\u3069\u66f8\u3044\u305f\u3053\u3068\u3082\u306a\u3051\u308c\u3070\u3001\u6570\u5b66\u77e5\u8b58\u3084 AI \u306e\u4ed5\u7d44\u307f\u7406\u89e3\u3082\u602a\u3057\u3044\u30a8\u30f3\u30b8\u30cb\u30a2\u306a\u306e\u3067\u3059\u304c\u3001 API \u3068\u3044\u3046\u5f62\u3067\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u304a\u304b\u3052\u3067\u30ac\u30ef\u306e\u958b\u767a\u306e\u307f\u306b\u6ce8\u529b\u3067\u304d\u3066\u3044\u307e\u3059\u3002<br>\u3061\u3087\u3063\u3068\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7d4c\u9a13\u304c\u3042\u308c\u3070\u4fbf\u5229\u306a\u30b7\u30b9\u30c6\u30e0\u304c\u7c21\u5358\u306b\u4f5c\u308c\u305d\u3046\u306a\u306e\u3067\u3001\u7d20\u6575\u306a\u30a2\u30a4\u30c7\u30a3\u30a2\u304c\u3042\u308c\u3070\u8a66\u3057\u3066\u307f\u3066\u3082\u9762\u767d\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u50d5\u306f\u666e\u6bb5 Web \u958b\u767a\u306e\u4e16\u754c\u306b\u5c45\u308b\u306e\u3067\u3001Stable Diffusion \u304c\u4e16\u306b\u51fa\u305f\u3068\u304d\u306f\u540c\u3058 IT \u5206\u91ce\u3067\u3082\u306a\u3093\u3060\u304b\u9060\u3044\u4e16\u754c\u306e\u8a71\u3060\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u3084\u304c\u3066 Stable Diffusion web UI \u3068\u3044\u3046\u3082\u306e\u3092\u77e5 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":2791,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[155,35,163],"coauthors":[45],"class_list":["post-2788","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ai","tag-php","tag-stable-diffusion-web-ui"],"author_meta":{"nickname":"N.Go","position":"\u30d7\u30ed\u30b0\u30e9\u30de\u30fc","icon_url":"https:\/\/comcent.co.jp\/blog\/images\/authorNg-150x150.png","author_url":"https:\/\/comcent.co.jp\/blog\/archives\/author\/noji\/"},"tag_names":["AI","php","Stable Diffusion web UI"],"thumbnail_url":"https:\/\/comcent.co.jp\/blog\/wp-content\/uploads\/2023\/06\/noji-2023-04-01-blog-thumbnail-300x200.jpg","_links":{"self":[{"href":"https:\/\/comcent.co.jp\/blog\/wp-json\/wp\/v2\/posts\/2788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/comcent.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/comcent.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/comcent.co.jp\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/comcent.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=2788"}],"version-history":[{"count":5,"href":"https:\/\/comcent.co.jp\/blog\/wp-json\/wp\/v2\/posts\/2788\/revisions"}],"predecessor-version":[{"id":2797,"href":"https:\/\/comcent.co.jp\/blog\/wp-json\/wp\/v2\/posts\/2788\/revisions\/2797"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/comcent.co.jp\/blog\/wp-json\/wp\/v2\/media\/2791"}],"wp:attachment":[{"href":"https:\/\/comcent.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=2788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/comcent.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=2788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/comcent.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=2788"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/comcent.co.jp\/blog\/wp-json\/wp\/v2\/coauthors?post=2788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}