Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytedance/UNO
/ functions
Functions
153 in github.com/bytedance/UNO
⨍
Functions
153
◇
Types & classes
41
Method
__init__
(self, in_channels: int)
uno/flux/modules/autoencoder.py:41
Method
__init__
(self, in_channels: int, out_channels: int)
uno/flux/modules/autoencoder.py:71
Method
__init__
(self, in_channels: int)
uno/flux/modules/autoencoder.py:101
Method
__init__
(self, in_channels: int)
uno/flux/modules/autoencoder.py:114
Method
__init__
( self, ch: int, out_ch: int, ch_mult: list[int], num_res_blocks: int,
uno/flux/modules/autoencoder.py:199
Method
__init__
(self, sample: bool = True, chunk_dim: int = 1)
uno/flux/modules/autoencoder.py:278
Method
__init__
(self, params: AutoEncoderParams)
uno/flux/modules/autoencoder.py:293
Method
__init__
(self, json_file: str, resolution: int, resolution_ref: int | None = None)
uno/dataset/uno.py:61
Method
__len__
(self)
eval/evaluate_clip_dino_score_single_subject.py:36
Method
__len__
(self)
eval/evaluate_clip_dino_score_single_subject.py:66
Method
__len__
(self)
eval/evaluate_clip_dino_score_single_subject.py:91
Method
__len__
(self)
eval/evaluate_clip_dino_score_multi_subject.py:36
Method
__len__
(self)
eval/evaluate_clip_dino_score_multi_subject.py:66
Method
__len__
(self)
eval/evaluate_clip_dino_score_multi_subject.py:91
Method
__len__
(self)
uno/dataset/uno.py:98
Method
_set_gradient_checkpointing
(self, module, value=False)
uno/flux/model.py:92
Method
attn_processors
(self)
uno/flux/model.py:97
Function
c_crop
(image)
uno/flux/util.py:73
Method
collate_fn
(self, batch)
uno/dataset/uno.py:101
Function
find_nearest_scale
根据图片的高度和宽度,找到最近的预定义尺度。 :param image_h: 图片的高度 :param image_w: 图片的宽度 :param predefined_scales: 预定义尺度列表 [(h1, w1), (h2, w2), ...] :
uno/flux/pipeline.py:43
Method
fn_recursive_add_processors
(name: str, module: torch.nn.Module, processors)
uno/flux/model.py:101
Method
fn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
uno/flux/model.py:136
Method
forward
( self, img: Tensor, img_ids: Tensor, txt: Tensor, txt_ids: Tensor,
uno/flux/model.py:149
Method
forward
(self, ids: Tensor)
uno/flux/modules/layers.py:33
Method
forward
(self, x: Tensor)
uno/flux/modules/layers.py:74
Method
forward
(self, x: Tensor)
uno/flux/modules/layers.py:83
Method
forward
(self, q: Tensor, k: Tensor, v: Tensor)
uno/flux/modules/layers.py:96
Method
forward
(self, hidden_states)
uno/flux/modules/layers.py:115
Method
forward
()
uno/flux/modules/layers.py:162
Method
forward
(self, vec: Tensor)
uno/flux/modules/layers.py:180
Method
forward
(self, attn, img, txt, vec, pe, **attention_kwargs)
uno/flux/modules/layers.py:197
Method
forward
( self, img: Tensor, txt: Tensor, vec: Tensor, pe: Tensor, ima
uno/flux/modules/layers.py:306
Method
forward
(self, attn: nn.Module, x: Tensor, vec: Tensor, pe: Tensor)
uno/flux/modules/layers.py:328
Method
forward
( self, x: Tensor, vec: Tensor, pe: Tensor, image_proj: Tensor | None
uno/flux/modules/layers.py:409
Method
forward
(self, x: Tensor, vec: Tensor)
uno/flux/modules/layers.py:431
Method
forward
(self, text: list[str])
uno/flux/modules/conditioner.py:37
Method
forward
(self, x: Tensor)
uno/flux/modules/autoencoder.py:66
Method
forward
(self, x)
uno/flux/modules/autoencoder.py:84
Method
forward
(self, x: Tensor)
uno/flux/modules/autoencoder.py:106
Method
forward
(self, x: Tensor)
uno/flux/modules/autoencoder.py:118
Method
forward
(self, x: Tensor)
uno/flux/modules/autoencoder.py:174
Method
forward
(self, z: Tensor)
uno/flux/modules/autoencoder.py:252
Method
forward
(self, z: Tensor)
uno/flux/modules/autoencoder.py:283
Method
forward
(self, x: Tensor)
uno/flux/modules/autoencoder.py:326
Method
get_processor
(self)
uno/flux/modules/layers.py:303
Method
get_processor
(self)
uno/flux/modules/layers.py:406
Method
gradio_generate
( self, prompt: str, width: int, height: int, guidance: float,
uno/flux/pipeline.py:210
Method
load_ckpt
(self, ckpt_path)
uno/flux/pipeline.py:128
Function
load_flow_model_quintized
(name: str, device: str | torch.device = "cuda", hf_download: bool = True)
uno/flux/util.py:352
Function
pad64
(x)
uno/flux/util.py:82
Function
prepare
( t5: HFEmbedder, clip: HFEmbedder, img: Tensor, prompt: str | list[str], ref_img: None |
uno/flux/sampling.py:48
Method
set_lora
(self, local_path: str = None, repo_id: str = None, name: str = None, lora_weight: int = 0.7)
uno/flux/pipeline.py:145
Method
set_lora_from_collection
(self, lora_type: str = "realism", lora_weight: int = 0.7)
uno/flux/pipeline.py:150
← previous
101–153 of 153, ranked by callers