-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.js
85 lines (85 loc) · 2.28 KB
/
install.js
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
module.exports = async (kernel) => {
let script = {
run: [{
method: "shell.run",
params: {
message: [
"git clone https://github.com/Panchovix/stable-diffusion-webui-reForge.git app",
]
}
}, {
method: "fs.share",
params: {
drive: {
checkpoints: "app/models/Stable-diffusion",
vae: "app/models/VAE",
loras: [
"app/models/Lora",
"app/models/LyCORIS"
],
upscale_models: [
"app/models/ESRGAN",
"app/models/RealESRGAN",
"app/models/SwinIR"
],
embeddings: "app/embeddings",
hypernetworks: "app/models/hypernetworks",
controlnet: "app/models/ControlNet",
ControlNetPreprocessor: "app/models/ControlNetPreprocessor",
adetailer: "app/models/adetailer",
vae_approx: "app/models/VAE-approx",
diffusers: "app/models/diffusers",
insightface: "app/models/insightface",
z123: "app/models/z123",
svd: "app/models/svd"
},
peers: [
"https://github.com/cocktailpeanutlabs/comfyui.git",
"https://github.com/cocktailpeanutlabs/fooocus.git",
"https://github.com/cocktailpeanutlabs/automatic1111.git",
"https://github.com/cocktailpeanutlabs/forge.git",
]
}
}, {
method: "fs.share",
params: {
drive: {
outputs: "app/output"
}
}
}, {
method: "self.set",
params: {
"app/ui-config.json": {
"txt2img/Sampling steps/value": 35,
"txt2img/CFG Scale/value": 7
}
}
},
{
method: "shell.run",
params: {
message: "{{platform === 'win32' ? 'webui-user.bat' : 'bash webui.sh -f'}}",
env: {
SD_WEBUI_RESTARTING: 1,
},
path: "app",
on: [{ "event": "/http:\/\/[0-9.:]+/", "kill": true }]
}
}, {
method: "notify",
params: {
html: "Click the 'start' tab to launch the app"
}
}]
}
if (kernel.platform === 'darwin') {
script.requires = [{
platform: "darwin",
type: "conda",
name: ["cmake", "protobuf", "rust", "wget"],
args: "-c conda-forge"
}]
}
return script
}