-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.json
112 lines (112 loc) · 3.58 KB
/
install.json
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"cmds": {
"win32": {
"nvidia": "pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 xformers --index-url https://download.pytorch.org/whl/cu121",
"amd": "pip install torch-directml torchaudio torchvision numpy==1.26.4",
"cpu": "pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1"
},
"darwin": "pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1",
"linux": {
"nvidia": "pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 xformers --index-url https://download.pytorch.org/whl/cu121",
"amd": "pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/rocm5.7",
"cpu": "pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cpu"
}
},
"requires": [{
"type": "conda",
"name": "ffmpeg",
"args": "-c conda-forge"
}],
"run": [{
"method": "shell.run",
"params": {
"message": "git clone https://github.com/comfyanonymous/ComfyUI.git app"
}
}, {
"when": "{{platform === 'darwin'}}",
"method": "shell.run",
"params": {
"path": "app",
"message": [
"git checkout 39fb74c5bd13a1dccf4d7293a2f7a755d9f43cbd"
]
}
}, {
"method": "shell.run",
"params": {
"message": "git clone https://github.com/ltdrdata/ComfyUI-Manager",
"path": "app/custom_nodes"
}
}, {
"method": "shell.run",
"params": {
"venv": "env",
"path": "app",
"message": [
"{{gpu === 'nvidia' ? 'conda install -y nvidia/label/cuda-12.1.0::cuda' : null}}",
"{{(platform === 'darwin' ? self.cmds.darwin : (['nvidia', 'amd'].includes(gpu) ? self.cmds[platform][gpu] : self.cmds[platform].cpu))}}",
"pip install -r requirements.txt"
]
}
}, {
"method": "shell.run",
"params": {
"message": "mkdir workflows"
}
}, {
"method": "shell.run",
"params": {
"message": [
"git clone https://github.com/comfyanonymous/ComfyUI_examples",
"git clone https://github.com/cocktailpeanut/comfymp4"
],
"path": "workflows"
}
}, {
"method": "fs.share",
"params": {
"drive": {
"checkpoints": "app/models/checkpoints",
"clip": "app/models/clip",
"clip_vision": "app/models/clip_vision",
"configs": "app/models/configs",
"controlnet": "app/models/controlnet",
"embeddings": "app/models/embeddings",
"loras": "app/models/loras",
"upscale_models": "app/models/upscale_models",
"vae": "app/models/vae"
},
"peers": [
"https://github.com/cocktailpeanutlabs/automatic1111.git",
"https://github.com/cocktailpeanutlabs/fooocus.git",
"https://github.com/cocktailpeanut/fluxgym.git",
"https://github.com/pinokiofactory/comfy.git",
"https://github.com/pinokiofactory/stable-diffusion-webui-forge.git"
]
}
}, {
"method": "fs.share",
"params": {
"drive": {
"output": "app/output"
}
}
}, {
"method": "fs.download",
"params": {
"url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors",
"dir": "app/models/checkpoints"
}
}, {
"method": "fs.download",
"params": {
"url": "https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/resolve/main/sd_xl_refiner_1.0.safetensors",
"dir": "app/models/checkpoints"
}
}, {
"method": "notify",
"params": {
"html": "Click the 'Start' tab to get started!"
}
}]
}