Skip to content

Commit 4248156

Browse files
committed
Neural nodes progress
1 parent 251f402 commit 4248156

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

paint/sources/neural_nodes/edit_image_node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function edit_image_node_button(node_id: i32) {
5858
dir + "/Qwen2.5-VL-7B-Instruct-Q8_0.gguf", "--qwen2vl_vision", dir + "/Qwen2.5-VL-7B-Instruct.mmproj-Q8_0.gguf", "--sampling-method", "euler",
5959
"--offload-to-cpu",
6060
// "--diffusion-fa",
61-
"--cfg-scale", "2.5", "--flow-shift", "3", "--steps", "40", "-s", "-1", "-W", "512", "-H", "512", "-p", "'" + prompt + "'", "-r",
61+
"--cfg-scale", "2.5", "--flow-shift", "3", "--steps", "20", "-s", "-1", "-W", "512", "-H", "512", "-p", "'" + prompt + "'", "-r",
6262
dir + "/input.png", "-o", dir + "/output.png", null
6363
];
6464

paint/sources/neural_nodes/text_to_image_node.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function text_to_image_node_run_qwen(dir: string, prompt: string): string[] {
3636
"-H",
3737
"512",
3838
"--steps",
39-
"40",
39+
"20",
4040
"-s",
4141
"-1",
4242
"-o",
@@ -52,13 +52,13 @@ function text_to_image_node_run_wan(dir: string, prompt: string): string[] {
5252
let argv: string[] = [
5353
dir + "/sd", "-M", "vid_gen", "--diffusion-model", dir + "/Wan2.2-T2V-A14B-LowNoise-Q8_0.gguf", "--high-noise-diffusion-model",
5454
dir + "/Wan2.2-T2V-A14B-HighNoise-Q8_0.gguf", "--vae", dir + "/wan_2.1_vae.safetensors", "--t5xxl", dir + "/umt5-xxl-encoder-Q8_0.gguf",
55+
"--sampling-method", "euler", "--steps", "20",
56+
"--high-noise-sampling-method", "euler", "--high-noise-steps", "10", "-W", "512", "-H", "512",
57+
"--offload-to-cpu",
58+
// "--flow-shift", "3.0",
5559
// "--cfg-scale", "3.5",
56-
"--sampling-method", "euler", "--steps", "40",
5760
// "--high-noise-cfg-scale", "3.5",
58-
"--high-noise-sampling-method", "euler", "--high-noise-steps", "20", "-W", "512", "-H", "512",
5961
// "--diffusion-fa",
60-
"--offload-to-cpu",
61-
// "--flow-shift", "3.0",
6262
"-s", "-1", "-o", dir + "/output.png", "-p", "'" + prompt + "'", null
6363
];
6464
return argv;

paint/sources/nodes_material.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
let nodes_material_categories: string[] = [
33
_tr("Input"), _tr("Texture"), _tr("Color"), _tr("Vector"), _tr("Converter"),
4-
// _tr("Neural"),
4+
_tr("Neural"),
55
_tr("Group")
66
];
77

@@ -91,17 +91,19 @@ function nodes_material_init() {
9191
vector_math2_node_init();
9292

9393
nodes_material_neural = [];
94-
text_to_image_node_init();
95-
upscale_image_node_init();
96-
edit_image_node_init();
97-
// photo_to_pbr_node_init();
94+
if (config_raw.experimental) {
95+
text_to_image_node_init();
96+
upscale_image_node_init();
97+
edit_image_node_init();
98+
// photo_to_pbr_node_init();
99+
}
98100

99101
nodes_material_group = [];
100102
group_node_init();
101103

102104
nodes_material_list = [
103105
nodes_material_input, nodes_material_texture, nodes_material_color, nodes_material_vector, nodes_material_converter,
104-
// nodes_material_neural,
106+
nodes_material_neural,
105107
nodes_material_group
106108
];
107109
}

0 commit comments

Comments
 (0)