查看完整版本: 1. 新手进阶版入门教程:让AI小姐姐为你脱掉汉服,分开双腿(不需要显卡)[20P]

内力煮火锅 2023-3-25 08:21

[quote]原帖由 [i]1850482[/i] 于 2023-3-24 23:57 发表 [bbs=redirect.php?goto=findpost&pid=111739441&ptid=11593081][img]images/common/back.gif[/img][/bbs]



多谢版主,现在程序可以跑了,但是又出了个问题,给了网址点进网站后是个空白页,不知道是啥问题。

Looking in indexes: [url]https://pypi.org/simple[/url], [url]https://us-python.pkg.dev/colab-wheels/public/simple/[/url]
Collecting f ... [/quote]
可能得从下面几个方面逐一排查:
1. 确保运行指令后没有别的操作,出现网址以后也不要中断指令的运行,也不要刷新Colab的网页。
2. 不知道这个Colab是不是你新开的号,以前是不是运行过或安装过或设置过什么别的东西。如果不是新号,可以重新注册一个新号试试。
3. 也有可能本身安装的没问题但是生成的网页链接被当地网络运营商,翻墙软件,浏览器都拦截了。
下次发来输出项的时候先不要中断指令的运行或关闭网页,如果我正好在线,我可以试试我能不能打开,来判断你那边有没有被拦截。

另外,你说网址点进网站后是个空白页,是全白吗?空白页上有没有什么文字提示?

haikui 2023-3-25 14:26

HEAD is now at 91c8d0dc Merge pull request #7231 from EllangoK/master
Python 3.9.16 (main, Dec  7 2022, 01:11:51)
[GCC 9.4.0]
Commit hash: 91c8d0dcfc9a5d46aec47fd3eb34c633c104b5bb
Traceback (most recent call last):
  File "/content/stable-diffusion-webui/launch.py", line 359, in <module>
    prepare_environment()
  File "/content/stable-diffusion-webui/launch.py", line 271, in prepare_environment
    run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'")
  File "/content/stable-diffusion-webui/launch.py", line 129, in run_python
    return run(f'"{python}" -c "{code}"', desc, errdesc)
  File "/content/stable-diffusion-webui/launch.py", line 105, in run
    raise RuntimeError(message)
RuntimeError: Error running command.
Command: "/usr/bin/python3" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
  File "<string>", line 1, in <module>
AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

楼主能不能帮看下哪里出了问题

内力煮火锅 2023-3-25 16:19

[quote]原帖由 [i]haikui[/i] 于 2023-3-25 14:26 发表 [bbs=redirect.php?goto=findpost&pid=111741846&ptid=11593081][img]images/common/back.gif[/img][/bbs]
HEAD is now at 91c8d0dc Merge pull request #7231 from EllangoK/master
Python 3.9.16 (main, Dec  7 2022, 01:11:51)
[GCC 9.4.0]
Commit hash: 91c8d0dcfc9a5d46aec47fd3eb34c633c104b5bb
Traceback (most rec ... [/quote]
最后一行改成[code]!COMMANDLINE_ARGS="--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension-access --skip-torch-cuda-test" REQS_FILE="requirements.txt" python launch.py[/code]然后再运行试试

152853439712282 2023-3-25 20:51

[quote]原帖由 [i]内力煮火锅[/i] 于 2023-3-25 08:11 发表 [bbs=redirect.php?goto=findpost&pid=111740468&ptid=11593081][img]images/common/back.gif[/img][/bbs]

谷歌免费给的运算资源差不多就是这么大了。
要么就得自己架设,用自己的显卡了。 [/quote]

我现在就是在本地部署的,用自己显卡,3070

内力煮火锅 2023-3-25 21:10

[quote]原帖由 [i]152853439712282[/i] 于 2023-3-25 20:51 发表 [bbs=redirect.php?goto=findpost&pid=111743343&ptid=11593081][img]images/common/back.gif[/img][/bbs]


我现在就是在本地部署的,用自己显卡,3070 [/quote]
那我估计就是得多打磨打磨提示词和负面提示词做实验看看怎么样能正常出更大的图了。

wyanyan 2023-3-25 22:46

第一次看到用AI修整图片的程序代码,虽然看不太懂,但真是大神啊。

我心依然3 2023-3-25 22:50

给人感觉好复杂的样子,很难学会呀,可以试试,软件是用哪一种好?

wert25 2023-3-26 04:42

我也想试试,就是感觉有点复杂,要研究研究

cflwd 2023-3-26 15:59

受教受教,现在的AI技术实在太强大了,学好了这个,好像能满足所有的幻想了。

anubisw198710 2023-3-26 21:47

楼主,求一个科学上网靠谱的软件,有手机用的吗?

swordolive 2023-3-27 21:14

牛逼的起飞的帖子,真是震惊到我了。

yong778 2023-3-27 22:41

回去试试

susuhao 2023-3-27 23:10

Looking in indexes: [url]https://pypi.org/simple[/url], [url]https://us-python.pkg.dev/colab-wheels/public/simple/[/url]
Requirement already satisfied: fastapi==0.90.1 in /usr/local/lib/python3.9/dist-packages (0.90.1)
Requirement already satisfied: pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2 in /usr/local/lib/python3.9/dist-packages (from fastapi==0.90.1) (1.10.7)
Requirement already satisfied: starlette<0.24.0,>=0.22.0 in /usr/local/lib/python3.9/dist-packages (from fastapi==0.90.1) (0.23.1)
Requirement already satisfied: typing-extensions>=4.2.0 in /usr/local/lib/python3.9/dist-packages (from pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2->fastapi==0.90.1) (4.5.0)
Requirement already satisfied: anyio<5,>=3.4.0 in /usr/local/lib/python3.9/dist-packages (from starlette<0.24.0,>=0.22.0->fastapi==0.90.1) (3.6.2)
Requirement already satisfied: sniffio>=1.1 in /usr/local/lib/python3.9/dist-packages (from anyio<5,>=3.4.0->starlette<0.24.0,>=0.22.0->fastapi==0.90.1) (1.3.0)
Requirement already satisfied: idna>=2.8 in /usr/local/lib/python3.9/dist-packages (from anyio<5,>=3.4.0->starlette<0.24.0,>=0.22.0->fastapi==0.90.1) (3.4)
fatal: destination path 'stable-diffusion-webui' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser' already exists and is not an empty directory.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1129  100  1129    0     0   4003      0 --:--:-- --:--:-- --:--:--  4003
100 7346M  100 7346M    0     0   196M      0  0:00:37  0:00:37 --:--:--  210M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1127  100  1127    0     0   3954      0 --:--:-- --:--:-- --:--:--  3940
100 10155  100 10155    0     0  27821      0 --:--:-- --:--:-- --:--:-- 27821
mv: cannot stat '/content/chilloutmixni.safetensors': No such file or directory
mv: cannot stat '/content/ulzzang-6500.pt': No such file or directory
/content/stable-diffusion-webui
Python 3.9.16 (main, Dec  7 2022, 01:11:51)
[GCC 9.4.0]
Commit hash: 91c8d0dcfc9a5d46aec47fd3eb34c633c104b5bb
Installing xformers
Installing requirements for Web UI
Launching Web UI with arguments: --share --disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension-access
Warning: caught exception 'No CUDA GPUs are available', memory monitor disabled
2023-03-27 15:04:56.603685: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-27 15:04:59.487051: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib/python3.9/dist-packages/cv2/../../lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64
2023-03-27 15:04:59.487382: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib/python3.9/dist-packages/cv2/../../lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64
2023-03-27 15:04:59.487414: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Loading weights [7234b76e42] from /content/stable-diffusion-webui/models/Stable-diffusion/chilloutmixni.safetensors
Creating model from config: /content/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
loading stable diffusion model: RuntimeError
Traceback (most recent call last):
  File "/content/stable-diffusion-webui/webui.py", line 103, in initialize
    modules.sd_models.load_model()
  File "/content/stable-diffusion-webui/modules/sd_models.py", line 406, in load_model
    sd_hijack.model_hijack.hijack(sd_model)
  File "/content/stable-diffusion-webui/modules/sd_hijack.py", line 107, in hijack
    self.optimization_method = apply_optimizations()
  File "/content/stable-diffusion-webui/modules/sd_hijack.py", line 39, in apply_optimizations
    if cmd_opts.force_enable_xformers or (cmd_opts.xformers and shared.xformers_available and torch.version.cuda and (6, 0) <= torch.cuda.get_device_capability(shared.device) <= (9, 0)):
  File "/usr/local/lib/python3.9/dist-packages/torch/cuda/__init__.py", line 357, in get_device_capability
    prop = get_device_properties(device)
  File "/usr/local/lib/python3.9/dist-packages/torch/cuda/__init__.py", line 371, in get_device_properties
    _lazy_init()  # will define _get_device_properties
  File "/usr/local/lib/python3.9/dist-packages/torch/cuda/__init__.py", line 229, in _lazy_init
    torch._C._cuda_init()
RuntimeError: No CUDA GPUs are available


Stable diffusion model failed to load, exiting

楼主能帮我看看哪里的问题,谢谢您,我是苹果电脑IMAC

[[i] 本帖最后由 susuhao 于 2023-3-27 23:11(GMT+8) 编辑 [/i]]

内力煮火锅 2023-3-28 10:12

[quote]原帖由 [i]susuhao[/i] 于 2023-3-27 23:10 发表 [bbs=redirect.php?goto=findpost&pid=111753407&ptid=11593081][img]images/common/back.gif[/img][/bbs]
Looking in indexes: [url]https://pypi.org/simple[/url], [url]https://us-python.pkg.dev/colab-wheels/public/simple/[/url]
Requirement already satisfied: fastapi==0.90.1 in /usr/local/lib/python3.9/dist-packages (0.90.1)
Req ... [/quote]
你看看是不是下面这个原因:
[quote]原帖由 [i]小小丁丁[/i] 于 2023-3-25 16:53 发表 [bbs=redirect.php?goto=findpost&pid=111742384&ptid=11590974][img]images/common/back.gif[/img][/bbs]
这里做个提示,MacBook的M芯片系列电脑不用尝试了,它是ARM架构的GPU,不支持CUDA GPU,安装不了 [/quote]
另外,如果你不是本地部署,而是在线部署的话,那就跟自己的电脑的型号没关系了,这种情况就要看一下有没有在colab的设置里把白嫖谷歌的显卡算力资源打开。

[[i] 本帖最后由 内力煮火锅 于 2023-3-28 10:15(GMT+8) 编辑 [/i]]

asgardv 2023-3-28 11:27

楼主,我想问一下,提示词是随便什么英文么?还是有固定的提示词。另外加双括号是什么意思,是优先级提高还是变低啊,我弄了几个词都没什么太大的效果,而且我生成的图像都是半身的,我想要全身的。

内力煮火锅 2023-3-28 15:45

[quote]原帖由 [i]asgardv[/i] 于 2023-3-28 11:27 发表 [bbs=redirect.php?goto=findpost&pid=111755215&ptid=11593081][img]images/common/back.gif[/img][/bbs]
楼主,我想问一下,提示词是随便什么英文么?还是有固定的提示词。另外加双括号是什么意思,是优先级提高还是变低啊,我弄了几个词都没什么太大的效果,而且我生成的图像都是半身的,我想要全身的。 ... [/quote]
理论上所有的词都是可以的,看AI对语言文字的理解程度了。
圆括号是加权,方括号是降权,我的前一篇教程的最后简单介绍了一下提示词的语法规则。
提示词没什么用有可能是权重不够,也可能是AI对这个词不太理解,还可能是提示词太多了AI照顾不过来了。
想要下半身你的提示词里就要提到下半身,你可以描述一个身体部位,或者描述一个姿势。
全身也是一样,你要描述一下身体的样子,或者一个涉及到全身的姿势。

frankwin05 2023-3-28 17:27

要是都像楼主这样出教程,我TM早就博士毕业了!
跪赞!

lztitan 2023-3-28 18:49

楼主能否开的帖子教教我们怎么弄真人头像啊,我对这个比较好奇。

ac-fish 2023-3-30 22:42

[quote]原帖由 [i]susuhao[/i] 于 2023-3-27 23:10 发表 [bbs=redirect.php?goto=findpost&pid=111753407&ptid=11593081][img]images/common/back.gif[/img][/bbs]
Looking in indexes: [url]https://pypi.org/simple[/url], [url]https://us-python.pkg.dev/colab-wheels/public/simple/[/url]
Requirement already satisfied: fastapi==0.90.1 in /usr/local/lib/python3.9/dist-packages (0.90.1)
Req ... [/quote]
打开colab页面后,在左上方有个修改,点那里,配置下笔记本,选择GPU,在运行代码安装应该就可以了

滴水 2023-4-2 08:47

大佬真多,这肯定不是业余的,主业绝对NB,萌新瑟瑟发抖,搞个VAM我都哆哆嗦嗦,编程还是算了吧
页: 1 [2] 3
查看完整版本: 1. 新手进阶版入门教程:让AI小姐姐为你脱掉汉服,分开双腿(不需要显卡)[20P]