Benign comfyui Download

editutils 1.2.4

Composite action step script bodyGitHub Actions composite action definition
SHA-2569293f01129832d41d89930a65d2fc3faa7dc57d5a2472e9394a2757e8ec88482

Evidence

Python imports the hashlib library lines 1–24
1from sympy import false
2import node_helpers
3import comfy.utils
4import math
5import torch
6import torch
7import torch.nn.functional as F
8import numpy as np
9from PIL import Image
10import json
11import os
12import copy
13import folder_paths
14import hashlib
15from einops import rearrange
16import comfy.conds
17
18from PIL import Image, ImageOps, ImageSequence
19
20class CropWithPadInfo_EditUtils:
⋯4 lines
Megabyte-scale size constant in source lines 66–75
66:21… dth / height
67
68 # Calculate target dimensions that:
69 # 1. Maintain the aspect ratio
70 # 2. Have an area of approximately resolution^2 (1024*1024 = 1048576)
71 # 3. Are divisible by 8
72 target_area = resolution * resolution
73
74 # width = height * image_ratio
75 # width * he …
ChatML system-role delimiter lines 155–165
155:24… il.resize((f_width, f_height), Image.LANCZOS)
156 resized_img = np.array(resized_img)
157 resized_img = convert_unit8_float(resized_img)
158 return resized_img, crop_x, crop_y
159
160
161def get_system_prompt(instruction):
162 template_prefix = "<|im_start|>system\n"
163 template_suffix = "<|im_end|>\n<|im_start|>user\n{}<|im_end|>\n<|im_start|>assistant\n"
164 instruction_content = ""
165 …
Assigns a string replace result lines 175–179
175:21… nstruction:
176 # remove {} from instruction
177 instruction = instruction.replace("{}", "")
178 instruction_content = instruction
179 llama_template = template_prefix + instruction_content + template_suffix …
Hex decoding via int(x, 16) lines 243–248
243:26… h("#") and len(name) == 7:
244 try:
245 r = int(name[1:3], 16) / 255.0
246 g = int(name[3:5], 16) / 255.0
247 b = int(name[5:7], 16) / 255.0
248 …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.