continue later

This commit is contained in:
Kijai 2024-05-06 16:44:35 +03:00
parent 2c262f722b
commit b1a061fe47
2 changed files with 4 additions and 5 deletions

View File

@ -899,7 +899,7 @@ CreateInstanceDiffusionTracking -node.
colormap = cm.get_cmap('rainbow', len(tracking))
if draw_text:
#font = ImageFont.load_default()
font = ImageFont.truetype("arial.ttf", font_size)
font = ImageFont.truetype(font, font_size)
# Iterate over each image in the batch
for i in range(image.shape[0]):

View File

@ -197,7 +197,6 @@ app.registerExtension({
console.log("INPUT CONNECTED")
console.log(this.editor)
this.editor.syncEditors(this);
//this.splineEditorWidget.syncEditors();
});
@ -626,8 +625,10 @@ class SplineEditor {
}
syncEditors(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("linkedOutputEditor: ",linkedOutputEditor)
let extraLineLayer = null
if (linkedInputEditor != null) {
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) {
let linkedOutputPointsWidget = linkedOutputEditor[0].widgets.find(w => w.name === "points_store")
let linkedOutputEditorCoords = JSON.parse(linkedOutputPointsWidget.value)