File size: 3,362 Bytes
96d97a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
��# Comfyui-Memory_Cleanup



Comfyui-Memory_Cleanup /fN*N(u�N ComfyUI �vꁚ[IN���p��c�O�QX[nt�R���NOS ComfyUI �vЏL�'`��0



## �R���N�~



![O(u:y�O1](1.png)



![O(u:y�O2](2.png)



### ;N���R��



,g�c�N�c�O$N*N;N�����p�



#### 1. <؈�VRAM-Cleanup (GPU>fX[nt)



�S�N.^�Rʑ>e GPU >fX[�;N���R���

- xS}�!j�W (offload_model)

- nt>fX[X[ (offload_cache)



#### 2. <؈�RAM-Cleanup (�|�~�QX[nt)



�S�N.^�Rʑ>e�|�~�QX[�/ec Windows �T Linux �|�~�

- nt�e�NX[ (clean_file_cache)

- ntۏz�QX[ (clean_processes)

- nt*gO(u�v DLL (clean_dlls)

- /ecY!k͑Ջ (retry_times)





## �[ň�e�l



1. \dk�N�^KQ��bN}�0R�`�v ComfyUI ꁚ[IN���p�vU_�

   ```

   git clone https://github.com/LAOGOU-666/Comfyui-Memory_Cleanup.git

   ```

   b�v�cN}� ZIP ㉋S0R `custom_nodes` �vU_



2. �[ň�OV��

   ```

   pip install -r requirements.txt

   ```



3. ͑/T ComfyUI



## O(u�e�l



1. (W���pOmȉhV-Nd"} "Memory Management" R{|

2. \ <؈�VRAM-Cleanup b <؈�RAM-Cleanup �m�R0R�`�v�]\OAm-N

3. ޏ�c0R�]\OAm�v�S_MOn��8^>e(Wub�[bT



## �Spe�f



### VRAM-Cleanup

- anything: �S�Nޏ�c�NUO��eQ

- offload_model: /f&TxS}�!j�W

- offload_cache: /f&Tnt>fX[X[



### RAM-Cleanup

- anything: �S�Nޏ�c�NUO��eQ

- clean_file_cache: /f&Tnt�e�NX[

- clean_processes: /f&Tntۏz�QX[

- clean_dlls: /f&Tnt*gO(uDLL

- retry_times: ͑Ջ!kpe (1-10)



## �la�Ny�



- �QX[nt�S��O�[�'`���f�eNM��FO�S�N2�bk��e��ЏL��e�v�QX[�lo

- �^��(W͑�����p�[b�]\OTO(udk���p





# �Y�g�`�S�v�N,gy��v�
N�Y��\O��Uog�TaU��`�v/ec/fbg'Y�v�R�R



<div style="display: flex; justify-content: left; gap: 20px;">

    <img src="https://raw.githubusercontent.com/LAOGOU-666/Comfyui-Transform/9ac1266765b53fb1d666f9c8a1d61212f2603a92/assets/alipay.jpg" width="300" alt="/e�N�[6e>kx">

    <img src="https://raw.githubusercontent.com/LAOGOU-666/Comfyui-Transform/9ac1266765b53fb1d666f9c8a1d61212f2603a92/assets/wechat.jpg" width="300" alt="�_�O6e>kx">

</div>



# FU�RT\O

�Y�g�`	g�[6R�]\OAm/���p�v�Bl�b��`��f[`N�c�N6R\O�v�vsQ��z���T��|b

wechat:wenrulaogou2033