安装Stable Diffusion时的联网问题

问题描述

安装stable-diffusion-webui,运行./webui.sh时候报错:

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################

################################################################
Running on couldhll user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.14 (main, Mar 19 2024, 21:46:16) [Clang 15.0.0 (clang-1500.3.9.4)]
Version: v1.9.4
Commit hash: feee37d75f1b168768014e4634dcb156ee649c05
Installing torch and torchvision
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('timed out'))': /simple/torch/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('timed out'))': /simple/torch/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('timed out'))': /simple/torch/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('timed out'))': /simple/torch/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('timed out'))': /simple/torch/
ERROR: Could not find a version that satisfies the requirement torch==2.1.0 (from versions: none)
ERROR: No matching distribution found for torch==2.1.0
Traceback (most recent call last):
  File "/Users/couldhll/Desktop/stable-diffusion-webui/launch.py", line 48, in 
    main()
  File "/Users/couldhll/Desktop/stable-diffusion-webui/launch.py", line 39, in main
    prepare_environment()
  File "/Users/couldhll/Desktop/stable-diffusion-webui/modules/launch_utils.py", line 380, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "/Users/couldhll/Desktop/stable-diffusion-webui/modules/launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "/Users/couldhll/Desktop/stable-diffusion-webui/venv/bin/python3.10" -m pip install torch==2.1.0 torchvision==0.16.0
Error code: 1

问题解决

关闭VPN后一切正常

《我的阿勒泰》

去爱,去生活,去受伤。

啥叫有用,李文秀?
生你下来是为了让你服务别人的?
你看看这个草原上的树啊、草啊。
有人吃有人用,便叫有用。
要是没有人用,它就这么待在草原上也很好嘛。
自由自在的嘛,是不是?

他们不一样。
他们有自己的生活方式,有自己跟这个世界相处的方式。
你可以不赞同他们,但是你不可以居高临下地改变他们。

再颠簸的生活,也要闪亮地过。

可是传统,不是一直都是那样的。
你非要固守传统,非要走仙女湾小道,还非要做猎人。
但是一百年前,没有仙女湾小道,两百年前也没有猎枪。
所有的传统还有文明都是世界变革中,人类一点点摸索出来的。
没有什么是一成不变的,只有一直变化才是不变的。
现在这个时代又是一个变化。
适应新的时代,调整生活才是正经嘛。
固守旧的传统不见得都是对的。

秀,你知道那仁夏牧场这么好,为什么牧民还要不停地转场?
因为他们要给夏牧场时间,让它休息,好让牧场里的水呀、草啊重新开始恢复丰茂。
这样子来年的时候呢,牧民们才能够带着牛羊更好的回来。
给他点时间。

《程序员面试金典(第6版)》

非常全面的一本关于程序员面试的书

“调杆员”(bar raiser)的概念来自亚马逊美国总部。这个词原指在跳高比赛中一次次将杆调高的工作人员。亚马逊的调杆员则是一群在招聘过程中负责从企业文化以及行为准则的角度考查应聘者,从而维护招聘质量的人。在招聘中,调杆员会用很苛刻的眼光考查应聘者是否在至少一点上高过亚马逊的平均水准,如果是,那么雇用这样的人实际上就等于在提升公司的能力,这就起到了“拾杆”的作用。

学术界用大O、大θ(theta)和大Ω(omega)来描述运行时间。
O(big O):学术界用大O描述时间的上界。
Ω(big omega):在学术界,Ω描述时间的下界。
θ(big theta):学术界用9同时表示O和Ω,即如果一个算法同时是O(N)和Ω(N),它才是θ(N),θ代表的是确界。

这也许是我找到的优化问题最有效的方法了。BUD 是以下词语的首字母缩写:
瓶颈(bottleneck);
无用功(unnecessary work);
重复性工作(duplicated work )。

有些人把自上而下的动态规划称为“记忆模式”,他们认为只有自底向上的才可称为“动态规划”。本书不作这样的区分,两者都可称为动态规划。