Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytedance/ComfyUI-HyperLoRA
/ functions
Functions
63 in github.com/bytedance/ComfyUI-HyperLoRA
⨍
Functions
63
◇
Types & classes
28
↓ 14 callers
Function
custom_field
(name: str = 'custom', type_name: str = 'CUSTOM')
hyperlora/node_fields.py:34
↓ 12 callers
Function
enum_field
(name: str = 'enum_field', options: Iterable = [])
hyperlora/node_fields.py:37
↓ 11 callers
Function
inputs_def
(required: Iterable = [], optional: Iterable = [])
hyperlora/node_fields.py:18
↓ 9 callers
Function
int_field
(name: str = 'int_field', default: int = 50, minimum: int = 0, maximum: int = 100, step: int = 1)
hyperlora/node_fields.py:40
↓ 8 callers
Function
list_models
(model_type)
hyperlora/nodes.py:48
↓ 7 callers
Function
bool_field
(name: str = 'bool_field', default: bool = False)
hyperlora/node_fields.py:65
↓ 7 callers
Method
execute
(self, **kwagrs)
hyperlora/nodes.py:116
↓ 4 callers
Method
__init__
(self, shape: Tuple[int])
hyperlora/modules.py:141
↓ 4 callers
Function
image_field
(name: str = 'image')
hyperlora/node_fields.py:28
↓ 4 callers
Function
images2tensor
(images: Iterable[Image.Image])
hyperlora/common.py:85
↓ 4 callers
Method
linear_mix
(self, coeffs: torch.Tensor, basis: torch.Tensor)
hyperlora/modules.py:109
↓ 4 callers
Function
tensor2images
(tensor: torch.Tensor)
hyperlora/common.py:77
↓ 3 callers
Function
get_torch_device
()
standalone/mock/comfy/model_management.py:3
↓ 2 callers
Method
INPUT_TYPES
(cls)
hyperlora/nodes.py:94
↓ 2 callers
Function
face_bbox
(landmark: np.ndarray)
hyperlora/nodes.py:60
↓ 2 callers
Function
face_crop
(image: Image.Image, landmark: np.ndarray, mask_scale: float = 1.0)
hyperlora/nodes.py:69
↓ 2 callers
Method
instantiate
(self)
hyperlora/configs.py:42
↓ 2 callers
Function
str_field
(name: str = 'str_field', default: str = '', multiline: bool = False)
hyperlora/node_fields.py:59
↓ 1 callers
Function
float_field
(name: str = 'float_field', default: float = 0.5, minimum: float = 0.0, maximum: float = 1.0, step: float = 0.
hyperlora/node_fields.py:49
↓ 1 callers
Method
from_dict
(self, config_dict: Dict[str, Any])
hyperlora/configs.py:22
↓ 1 callers
Function
load_lora_for_models
(model, clip, lora, strength_model, strength_clip)
standalone/mock/comfy/sd.py:1
↓ 1 callers
Method
make_base_cond
(self, hyper_lora: HyperLoRA, image: Image.Image, face_attr: FaceAttrResp, crop, crop_scale_LRTB, safe_crop)
hyperlora/nodes.py:341
↓ 1 callers
Method
make_id_cond
(self, hyper_lora: HyperLoRA, image: Image.Image, face_attr: FaceAttrResp, grayscale, remove_background)
hyperlora/nodes.py:270
↓ 1 callers
Method
norm_out
(self, x)
hyperlora/modules.py:79
↓ 1 callers
Method
print
(self, indent: int = 0)
hyperlora/configs.py:34
Method
INPUT_TYPES
(cls)
hyperlora/nodes.py:149
Method
INPUT_TYPES
(cls)
hyperlora/nodes.py:257
Method
INPUT_TYPES
(cls)
hyperlora/nodes.py:327
Method
INPUT_TYPES
(cls)
hyperlora/nodes.py:390
Method
INPUT_TYPES
(cls)
hyperlora/nodes.py:427
Method
INPUT_TYPES
(cls)
hyperlora/nodes.py:457
Method
INPUT_TYPES
(cls)
hyperlora/nodes.py:476
Method
INPUT_TYPES
(cls)
hyperlora/nodes.py:497
Method
INPUT_TYPES
(cls)
hyperlora/nodes.py:530
Method
INPUT_TYPES
(cls)
hyperlora/nodes.py:569
Method
__init__
(self, dim, dim_head=64, heads=8, ff_mult=4, n_conds=1)
hyperlora/modules.py:23
Method
__init__
(self, dim=1024, depth=8, dim_head=64, heads=8, num_queries=16, embedding_dim=768, output_dim=1024, ff_mult=4,
hyperlora/modules.py:64
Method
__init__
(self, dim: int, in_features: int, out_features: int, lora_rank: int = 4, has_base_lora: bool = False)
hyperlora/modules.py:99
Method
__init__
(self, dim: int, hidden_size: int, cross_attention_dim: int, lora_rank: int = 4, has_base_lora: bool = False)
hyperlora/modules.py:122
Function
batch_proc
(**arg_types: Dict[str, BatchType])
hyperlora/common.py:114
Method
execute
(self, config: HyperLoRAConfig, model, dtype)
hyperlora/nodes.py:160
Method
execute
(self, hyper_lora: HyperLoRA, images: torch.Tensor, face_attr: list[FaceAttrResp], grayscale, remove_backgroun
hyperlora/nodes.py:306
Method
execute
(self, hyper_lora: HyperLoRA, images: torch.Tensor, face_attr: list[FaceAttrResp], crop, crop_scale_LRTB, safe
hyperlora/nodes.py:372
Method
execute
(self, hyper_lora: HyperLoRA, id_cond)
hyperlora/nodes.py:401
Method
execute
(self, hyper_lora: HyperLoRA, base_cond)
hyperlora/nodes.py:438
Method
execute
(self, model: ModelPatcher, lora, weight)
hyperlora/nodes.py:468
Method
execute
(self, filename_prefix, lora)
hyperlora/nodes.py:487
Method
execute
(self, hyper_lora: HyperLoRA, images: torch.Tensor)
hyperlora/nodes.py:507
Method
execute
(self, image_processor, image_encoder, encoder_types, face_analyzer, model, dtype)
hyperlora/nodes.py:546
Method
execute
(self, hyper_lora, images, grayscale, remove_background)
hyperlora/nodes.py:584
Method
forward
(self, x, latents, y=None)
hyperlora/modules.py:40
Method
forward
(self, x, y=None)
hyperlora/modules.py:82
Method
forward
(self, tokens: torch.Tensor, mode='id')
hyperlora/modules.py:112
Method
forward
(self, tokens: torch.Tensor, mode='id')
hyperlora/modules.py:130
Method
forward
(self, x: torch.Tensor)
hyperlora/modules.py:145
Function
image2base64
(image: Image.Image)
hyperlora/common.py:92
Function
image_from_url
(url: str)
hyperlora/common.py:98
Method
instantiate
(self)
hyperlora/configs.py:50
Method
instantiate
(self)
hyperlora/configs.py:59
Function
mask_field
(name: str = 'mask')
hyperlora/node_fields.py:31
Function
resize_image
(image: Image.Image, size: int, mode: ResizeMode = ResizeMode.LONG_EDGE)
hyperlora/common.py:101
Function
worker
(*args: List[Any], **kwargs: Dict[str, Any])
hyperlora/common.py:116
Function
wrapper
(func: Callable)
hyperlora/common.py:115