mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-06-08 16:24:29 +08:00
continue later
This commit is contained in:
parent
2c262f722b
commit
b1a061fe47
@ -899,7 +899,7 @@ CreateInstanceDiffusionTracking -node.
|
|||||||
colormap = cm.get_cmap('rainbow', len(tracking))
|
colormap = cm.get_cmap('rainbow', len(tracking))
|
||||||
if draw_text:
|
if draw_text:
|
||||||
#font = ImageFont.load_default()
|
#font = ImageFont.load_default()
|
||||||
font = ImageFont.truetype("arial.ttf", font_size)
|
font = ImageFont.truetype(font, font_size)
|
||||||
|
|
||||||
# Iterate over each image in the batch
|
# Iterate over each image in the batch
|
||||||
for i in range(image.shape[0]):
|
for i in range(image.shape[0]):
|
||||||
|
|||||||
@ -197,7 +197,6 @@ app.registerExtension({
|
|||||||
console.log("INPUT CONNECTED")
|
console.log("INPUT CONNECTED")
|
||||||
console.log(this.editor)
|
console.log(this.editor)
|
||||||
this.editor.syncEditors(this);
|
this.editor.syncEditors(this);
|
||||||
//this.splineEditorWidget.syncEditors();
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -626,8 +625,10 @@ class SplineEditor {
|
|||||||
}
|
}
|
||||||
syncEditors(context) {
|
syncEditors(context) {
|
||||||
console.log(context)
|
console.log(context)
|
||||||
let linkedInputEditor = context.getInputNode(0)
|
let linkedInputEditor = context.getInputLink(0)
|
||||||
|
let linkedOutputEditor = context.getOutputNodes(4)
|
||||||
console.log("linkedInputEditor: ",linkedInputEditor)
|
console.log("linkedInputEditor: ",linkedInputEditor)
|
||||||
|
console.log("linkedOutputEditor: ",linkedOutputEditor)
|
||||||
let extraLineLayer = null
|
let extraLineLayer = null
|
||||||
if (linkedInputEditor != null) {
|
if (linkedInputEditor != null) {
|
||||||
let linkedInputPointsWidget = linkedInputEditor.widgets.find(w => w.name === "points_store")
|
let linkedInputPointsWidget = linkedInputEditor.widgets.find(w => w.name === "points_store")
|
||||||
@ -658,8 +659,6 @@ class SplineEditor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let linkedOutputEditor = this.context.getOutputNodes(4)
|
|
||||||
|
|
||||||
if (linkedOutputEditor != null) {
|
if (linkedOutputEditor != null) {
|
||||||
let linkedOutputPointsWidget = linkedOutputEditor[0].widgets.find(w => w.name === "points_store")
|
let linkedOutputPointsWidget = linkedOutputEditor[0].widgets.find(w => w.name === "points_store")
|
||||||
let linkedOutputEditorCoords = JSON.parse(linkedOutputPointsWidget.value)
|
let linkedOutputEditorCoords = JSON.parse(linkedOutputPointsWidget.value)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user