This file contains hidden or 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
| ''' | |
| https://github.com/Zehong-Ma/MagCache | |
| ''' | |
| from comfy.ldm.modules.diffusionmodules.openaimodel import forward_timestep_embed, timestep_embedding, th, apply_control | |
| import comfy.patcher_extension | |
| import json | |
| def linear_interpolate(data: dict, num: float, scale: float) -> float: | |
| if not data: |
This file contains hidden or 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 numpy as np | |
| import pandas as pd | |
| import gradio as gr | |
| HUNYUAN_VIDEO_DEFAULT = [ | |
| "Hunyuan Video 544p", | |
| "1.0, 1.06971, 1.29073, 1.11245, 1.09596, 1.05233, 1.01415, 1.05672, 1.00848, 1.03632, 1.02974, 1.00984, 1.03028, 1.00681, 1.06614, 1.05022, 1.02592, 1.01776, 1.02985, 1.00726, 1.03727, 1.01502, 1.00992, 1.03371, 0.9976, 1.02742, 1.0093, 1.01869, 1.00815, 1.01461, 1.01152, 1.03082, 1.0061, 1.02162, 1.01999, 0.99063, 1.01186, 1.0217, 0.99947, 1.01711, 0.9904, 1.00258, 1.00878, 0.97039, 0.97686, 0.94315, 0.97728, 0.91154, 0.86139, 0.76592", | |
| 50, | |
| 0.24, | |
| -0.01, |
This file contains hidden or 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
| from typing_extensions import override | |
| from comfy_api.latest import ComfyExtension, io | |
| import comfy | |
| class Noise_ReferenceAlign: | |
| def __init__(self, seed, reference_latents, strength): | |
| self.seed = seed | |
| self.reference_latents = reference_latents | |
| self.strength = strength |
This file contains hidden or 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
| from typing_extensions import override | |
| from comfy_api.latest import ComfyExtension, io | |
| import torch | |
| class QwenImageScaleRope(io.ComfyNode): | |
| @classmethod | |
| def define_schema(cls): | |
| return io.Schema( | |
| node_id="QwenImageScaleRope", | |
| category="_for_testing", |
This file contains hidden or 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 node_helpers | |
| import comfy.utils | |
| import math | |
| from typing_extensions import override | |
| from comfy_api.latest import ComfyExtension, io | |
| from comfy.patcher_extension import WrappersMP | |
| import torch | |
| class TextEncodeQwenImageEditPlusFixPixelShift(io.ComfyNode): | |
| @classmethod |
OlderNewer