mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-09 22:24:23 +08:00
bugfix: invalid layout
bugfix: scanner.py for CP949 update DB
This commit is contained in:
parent
fc68b10bb3
commit
0bc9c5e4b4
@ -475,6 +475,16 @@
|
|||||||
"install_type": "git-clone",
|
"install_type": "git-clone",
|
||||||
"description": "This extension provides the ability to combine multiple nodes into a single node."
|
"description": "This extension provides the ability to combine multiple nodes into a single node."
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"author": "ssitu",
|
||||||
|
"title": "Restart Sampling",
|
||||||
|
"reference": "https://github.com/ssitu/ComfyUI_restart_sampling",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/ssitu/ComfyUI_restart_sampling"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "Unofficial ComfyUI nodes for restart sampling based on the paper 'Restart Sampling for Improving Generative Processes' <a href='https://arxiv.org/abs/2306.14878'>[paper]</a> <a href='https://github.com/Newbeeer/diffusion_restart_sampling'>[repo]</a>"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"author": "space-nuko",
|
"author": "space-nuko",
|
||||||
"title": "Disco Diffusion",
|
"title": "Disco Diffusion",
|
||||||
|
|||||||
@ -858,6 +858,9 @@
|
|||||||
"UltimateSDUpscale",
|
"UltimateSDUpscale",
|
||||||
"UltimateSDUpscaleNoUpscale"
|
"UltimateSDUpscaleNoUpscale"
|
||||||
],
|
],
|
||||||
|
"https://github.com/ssitu/ComfyUI_restart_sampling": [
|
||||||
|
"KRestartSampler"
|
||||||
|
],
|
||||||
"https://github.com/strimmlarn/ComfyUI_Strimmlarns_aesthetic_score": [
|
"https://github.com/strimmlarn/ComfyUI_Strimmlarns_aesthetic_score": [
|
||||||
"AesthetlcScoreSorter",
|
"AesthetlcScoreSorter",
|
||||||
"CalculateAestheticScore",
|
"CalculateAestheticScore",
|
||||||
@ -879,7 +882,9 @@
|
|||||||
"Auto Merge Block Weighted"
|
"Auto Merge Block Weighted"
|
||||||
],
|
],
|
||||||
"https://github.com/taabata/Comfy_Syrian_Falcon_Nodes/raw/main/SyrianFalconNodes.py": [
|
"https://github.com/taabata/Comfy_Syrian_Falcon_Nodes/raw/main/SyrianFalconNodes.py": [
|
||||||
|
"CompositeImage",
|
||||||
"KSamplerAdvancedCustom",
|
"KSamplerAdvancedCustom",
|
||||||
|
"QRGenerate",
|
||||||
"WordAsImage"
|
"WordAsImage"
|
||||||
],
|
],
|
||||||
"https://github.com/trojblue/trNodes": [
|
"https://github.com/trojblue/trNodes": [
|
||||||
|
|||||||
@ -400,9 +400,15 @@ class CustomNodesInstaller extends ComfyDialog {
|
|||||||
data1.style.textAlign = "center";
|
data1.style.textAlign = "center";
|
||||||
data1.innerHTML = i+1;
|
data1.innerHTML = i+1;
|
||||||
var data2 = document.createElement('td');
|
var data2 = document.createElement('td');
|
||||||
data2.innerHTML = ` ${data.author}`;
|
data2.style.maxWidth = "100px";
|
||||||
var data3 = document.createElement('td');
|
data2.textContent = ` ${data.author}`;
|
||||||
data3.innerHTML = ` <a href=${data.reference} target="_blank"><font color="skyblue"><b>${data.title}</b></font></a>`;
|
data2.style.whiteSpace = "nowrap";
|
||||||
|
data2.style.overflow = "hidden";
|
||||||
|
data2.style.textOverflow = "ellipsis";
|
||||||
|
var data3 = document.createElement('td');
|
||||||
|
data3.style.maxWidth = "200px";
|
||||||
|
data3.style.wordWrap = "break-word";
|
||||||
|
data3.innerHTML = ` <a href=${data.reference} target="_blank"><font color="skyblue"><b>${data.title}</b></font></a>`;
|
||||||
var data4 = document.createElement('td');
|
var data4 = document.createElement('td');
|
||||||
data4.innerHTML = data.description;
|
data4.innerHTML = data.description;
|
||||||
var data5 = document.createElement('td');
|
var data5 = document.createElement('td');
|
||||||
|
|||||||
@ -6,8 +6,12 @@ from torchvision.datasets.utils import download_url
|
|||||||
|
|
||||||
|
|
||||||
def scan_in_file(filename):
|
def scan_in_file(filename):
|
||||||
with open(filename, "r") as file:
|
try:
|
||||||
code = file.read()
|
with open(filename, encoding='utf-8') as file:
|
||||||
|
code = file.read()
|
||||||
|
except UnicodeDecodeError:
|
||||||
|
with open(filename, encoding='cp949') as file:
|
||||||
|
code = file.read()
|
||||||
|
|
||||||
pattern = r"NODE_CLASS_MAPPINGS\s*=\s*{([^}]*)}"
|
pattern = r"NODE_CLASS_MAPPINGS\s*=\s*{([^}]*)}"
|
||||||
regex = re.compile(pattern, re.MULTILINE | re.DOTALL)
|
regex = re.compile(pattern, re.MULTILINE | re.DOTALL)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user