This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { app } from "../../scripts/app.js"; | |
app.registerExtension({ | |
name: "Extension Name", | |
beforeConfigureGraph: (graphData, missingNodeTypes) => { | |
for (let node of graphData.nodes) { | |
if (node.type === "Old Name") { | |
node.type = "New Name"; | |
} | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
import numpy as np | |
from PIL import Image, ImageOps, ImageSequence | |
def load_image(image): | |
# image is a path | |
# image_path = folder_paths.get_annotated_filepath(image) | |
# img = node_helpers.pillow(Image.open, image_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Edit the constants below and run the script to live-edit your code. | |
The EXEC_CMD is re-run anytime a file in the WATCH_DIR is changed. | |
For best results, create a development virtual environment with minimal | |
extensions/nodes/dependcies.""" | |
import subprocess | |
import os | |
import time |