File size: 2,137 Bytes
1a4ba5f
 
 
fe88c44
1a4ba5f
32aece3
1a4ba5f
5c0267f
1a4ba5f
32aece3
 
1a4ba5f
 
32aece3
 
1a4ba5f
32aece3
 
1a4ba5f
 
5c0267f
 
1a4ba5f
 
 
5c0267f
 
 
1a4ba5f
5c0267f
32aece3
 
1a4ba5f
 
32aece3
 
 
c36f7fd
 
9204fbc
1a4ba5f
fcb37c0
c36f7fd
 
 
 
9204fbc
5c0267f
fcb37c0
9204fbc
1a4ba5f
fcb37c0
c36f7fd
 
 
9204fbc
fcb37c0
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
### 下载代理客户端(有道笔记:资料->v2ray服务器客户端获取)
- https://github.com/v2fly/fhs-install-v2ray/blob/master/install-release.sh
- https://github.com/v2fly/v2ray-core/releases/download/v5.15.3/v2ray-linux-64.zip

### 权限:
chmod +o ./install-release.sh
### 安装:
./install-release.sh -l v2ray-linux-64.zip
### 启动代理(后台):
v2ray run --config v2-au-cf.json >> v2.out 2>&1 & 
 
### 使用代理
```
export http_proxy=http://127.0.0.1:10809 && export https_proxy=http://127.0.0.1:10809
export no_proxy="127.0.0.1,localhost,::1,pypi.tuna.tsinghua.edu.cn"
```


### 【内存优化(二选一)】
```
apt install google-perftools 或者apt install libgoogle-perftools-dev => 对应/usr/lib/x86_64-linux-gnu/libtcmalloc.so.4
apt install libtcmalloc-minimal4 => 对应/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4
```
### 【v1.6.0内存泄漏修复分支】
```
git remote add leak  https://github.com/kingljl/stable-diffusion-webui.git
git fetch leak
git merge leak/kingljl-patch-memory-leak
```
取消合并执行:git merge --abort


### 【运行webui】
```bash
cd /root/workspace/webui
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4

bash webui.sh -f  --api --server-name=0.0.0.0 --port=7007 --lora-dir=/root/shared-nvme/v15lora --no-half-vae --ckpt-dir=/root/shared-nvme/15model --opt-sdp-attention --xformers --medvram --disable-nan-check --no-download-sd-model --controlnet-dir=/root/shared-nvme/v15controlNetModel --skip-version-check --skip-python-version-check --skip-torch-cuda-test --skip-install
```

### 【win+linux 稳定验证版本webui】commit hash:
```
commit c2bdbb67b66de06f1163de3f10c290213cd6bdb0 (HEAD)
Merge: 4d563830 f92d6149
Author: fuchen.ljl <yjqqqqdx_01@163.com>
Date:   Wed Dec 6 20:42:04 2023 +0800
  
Merge branch 'dev' into kingljl-patch-memory-leak
```

### 【sd-webui-controlnet 稳定验证版本】 
```
commit 681de2c4f0298001195b1133aab9d0d429102148 (HEAD -> main, origin/main, origin/HEAD)
Author: Chenlei Hu <chenlei.hu@mail.utoronto.ca>
Date:   Sat May 18 22:48:29 2024 -0400

Fix PuLID VRAM leak (#2902)
```