Skip to content

Commit

Permalink
修改节点名称
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenli committed Oct 23, 2024
1 parent 8b092ce commit f975815
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ def check_and_install_packages():
"JoyCaption": JoyCaptionNode,
"JoyCaptionAlpha2Online": JoyCaptionAlpha2OnlineNode,
"CivitaiPrompt": CivitaiPromptNode,
"CustomLatentImage": CustomLatentImageNode,
"FloatSlider": FloatSliderNode,
"CustomLatentImage-NYJY": CustomLatentImageNode,
"FloatSlider-NYJY": FloatSliderNode,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"Translate": "Translate (NYJY)",
"JoyTag": "JoyTag (NYJY)",
"JoyCaption": "JoyCaption (NYJY)",
"JoyCaptionAlpha2Online": "JoyCaptionAlpha2Online (NYJY)",
"CivitaiPrompt": "CivitaiPrompt(NYJY)",
"CustomLatentImage": "CustomLatentImage(NYJY)",
"FloatSlider": "FloatSlider(NYJY)",
"CustomLatentImage-NYJY": "CustomLatentImage(NYJY)",
"FloatSlider-NYJY": "FloatSlider(NYJY)",
}

WEB_DIRECTORY = "./web"
Expand Down
4 changes: 2 additions & 2 deletions nodes/image_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ def INPUT_TYPES(self):
),
"width": (
"INT",
{"default": 1216},
{"default": 832},
),
"height": (
"INT",
{"default": 832},
{"default": 1216},
),
"upscale_factor": (
"FLOAT",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "comfyui_nyjy"
description = "A comfyui node that provides translation and image reverse push functions(JoyTag & JoyCaption)."
version = "1.7.1"
version = "1.7.2"
license = {file = "LICENSE"}
dependencies = ["torch", "torchvision>=0.15.2", "einops>=0.7.0", "safetensors>=0.4.1", "pillow>=9.4.0", "huggingface_hub>=0.23.5", "accelerate", "transformers>=4.43.3", "sentencepiece", "bitsandbytes==0.43.3", "pygtrans", "fake_useragent"]

Expand Down
5 changes: 2 additions & 3 deletions web/js/jsnodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ app.registerExtension({
this.onResize?.(this.size);
}

} else if (nodeData.name === "CustomLatentImage") {
} else if (nodeData.name === "CustomLatentImage-NYJY") {
const onNodeCreated = nodeType.prototype.onNodeCreated;
const radio_list = {
"自定义": [0, 0],
Expand Down Expand Up @@ -198,7 +198,7 @@ app.registerExtension({
this.onResize?.(this.size)
return r
}
}else if (nodeData.name === "FloatSlider") {
}else if (nodeData.name === "FloatSlider-NYJY") {
const precisionConfig = {
"1": {step: 10, round:1, precision: 0},
"0.1": {step: 1, round:0.1, precision: 1},
Expand All @@ -225,7 +225,6 @@ app.registerExtension({
wMin.options.precision = confItem.precision
wMax.options.step = confItem.step
wMax.options.precision = confItem.precision
console.log(wNumber)
}

setTimeout(updateOptions, 100)
Expand Down

0 comments on commit f975815

Please sign in to comment.