Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CrazyBoyM/dreambooth-for-diffusion
/ functions
Functions
107 in github.com/CrazyBoyM/dreambooth-for-diffusion
⨍
Functions
107
◇
Types & classes
6
↓ 19 callers
Function
assign_to_checkpoint
This does the final conversion step: take locally converted weights and apply a global renaming to them. It splits attention layers, and take
tools/ckpt2diffusers.py:145
↓ 13 callers
Function
assign_to_checkpoint
This does the final conversion step: take locally converted weights and apply a global renaming to them. It splits attention layers, and take
tools/ckpt2diffusers_old.py:130
↓ 9 callers
Function
reflow
(paragraph)
tools/diagnose_tensorboard.py:88
↓ 8 callers
Function
renew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
tools/ckpt2diffusers.py:78
↓ 6 callers
Function
_copy_linear
(hf_linear, pt_linear)
tools/ckpt2diffusers_old.py:504
↓ 6 callers
Function
_copy_linear
(hf_linear, pt_linear)
tools/ckpt2diffusers.py:660
↓ 6 callers
Function
renew_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
tools/ckpt2diffusers_old.py:40
↓ 6 callers
Function
renew_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
tools/ckpt2diffusers.py:56
↓ 5 callers
Function
sgetattr
Get an attribute off the `socket` module, or use a default.
tools/diagnose_tensorboard.py:130
↓ 5 callers
Function
shave_segments
Removes segments. Positive values shave the first segments, negative shave the last segments.
tools/ckpt2diffusers_old.py:30
↓ 5 callers
Function
shave_segments
Removes segments. Positive values shave the first segments, negative shave the last segments.
tools/ckpt2diffusers.py:46
↓ 4 callers
Function
conv_attn_to_linear
(checkpoint)
tools/ckpt2diffusers.py:197
↓ 4 callers
Function
renew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
tools/ckpt2diffusers.py:115
↓ 4 callers
Function
renew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
tools/ckpt2diffusers_old.py:62
↓ 3 callers
Function
freeze_params
(params)
tools/train_textual_inversion.py:326
↓ 3 callers
Function
renew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
tools/ckpt2diffusers_old.py:79
↓ 3 callers
Function
renew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
tools/ckpt2diffusers.py:94
↓ 3 callers
Function
transparence2black
(img)
tools/handle_images.py:17
↓ 2 callers
Function
conv_attn_to_linear
(checkpoint)
tools/ckpt2diffusers_old.py:180
↓ 2 callers
Function
create_diffusers_schedular
(original_config)
tools/ckpt2diffusers_old.py:253
↓ 2 callers
Function
create_vae_diffusers_config
Creates a config for the diffusers based on the config of the LDM model.
tools/ckpt2diffusers.py:246
↓ 2 callers
Function
has_tensorboard
(root)
tools/diagnose_tensorboard.py:429
↓ 2 callers
Function
pip
Invoke command-line Pip with the specified args. Returns: A bytestring containing the output of Pip.
tools/diagnose_tensorboard.py:92
↓ 2 callers
Function
renew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
tools/ckpt2diffusers_old.py:100
↓ 2 callers
Function
save_model
(accelerator, unet, text_encoder, args, step=None)
tools/train_dreambooth_rect.py:437
↓ 2 callers
Function
save_model
(accelerator, unet, text_encoder, args, step=None)
tools/train_dreambooth.py:421
↓ 2 callers
Function
save_progress
(text_encoder, placeholder_token_id, accelerator, args)
tools/train_textual_inversion.py:33
↓ 1 callers
Function
_copy_attn_layer
(hf_attn_layer, pt_attn_layer)
tools/ckpt2diffusers_old.py:494
↓ 1 callers
Function
_copy_attn_layer
(hf_attn_layer, pt_attn_layer)
tools/ckpt2diffusers.py:652
↓ 1 callers
Function
_copy_layer
(hf_layer, pt_layer)
tools/ckpt2diffusers_old.py:509
↓ 1 callers
Function
_copy_layer
(hf_layer, pt_layer)
tools/ckpt2diffusers.py:664
↓ 1 callers
Function
_copy_layers
(hf_layers, pt_layers)
tools/ckpt2diffusers_old.py:523
↓ 1 callers
Function
_copy_layers
(hf_layers, pt_layers)
tools/ckpt2diffusers.py:677
↓ 1 callers
Function
center_crop
(img, crop_size)
tools/handle_images.py:29
↓ 1 callers
Function
check
Decorator to register a function as a check. Checks are run in the order in which they are registered. Args: fn: A function that takes
tools/diagnose_tensorboard.py:64
↓ 1 callers
Function
convert_ldm_bert_checkpoint
(checkpoint, config)
tools/ckpt2diffusers_old.py:493
↓ 1 callers
Function
convert_ldm_bert_checkpoint
(checkpoint, config)
tools/ckpt2diffusers.py:651
↓ 1 callers
Function
convert_ldm_clip_checkpoint
(checkpoint)
tools/ckpt2diffusers.py:701
↓ 1 callers
Function
convert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
tools/ckpt2diffusers_old.py:273
↓ 1 callers
Function
convert_ldm_unet_checkpoint
Takes a state dict and a config, and returns a converted checkpoint.
tools/ckpt2diffusers.py:290
↓ 1 callers
Function
convert_ldm_vae
(vae_path, config)
tools/ckpt2diffusers.py:553
↓ 1 callers
Function
convert_ldm_vae_checkpoint
(checkpoint, config)
tools/ckpt2diffusers_old.py:398
↓ 1 callers
Function
convert_ldm_vae_checkpoint
(checkpoint, config)
tools/ckpt2diffusers.py:458
↓ 1 callers
Function
convert_text_enc_state_dict
(text_enc_dict)
tools/diffusers2ckpt.py:193
↓ 1 callers
Function
convert_unet_state_dict
(unet_state_dict)
tools/diffusers2ckpt.py:90
↓ 1 callers
Function
convert_vae_state_dict
(vae_state_dict)
tools/diffusers2ckpt.py:166
↓ 1 callers
Function
create_ldm_bert_config
(original_config)
tools/ckpt2diffusers_old.py:263
↓ 1 callers
Function
create_ldm_bert_config
(original_config)
tools/ckpt2diffusers.py:280
↓ 1 callers
Function
create_unet_diffusers_config
Creates a config for the diffusers based on the config of the LDM model.
tools/ckpt2diffusers_old.py:192
↓ 1 callers
Function
create_unet_diffusers_config
Creates a config for the diffusers based on the config of the LDM model.
tools/ckpt2diffusers.py:209
↓ 1 callers
Function
create_vae_diffusers_config
Creates a config for the diffusers based on the config of the LDM model.
tools/ckpt2diffusers_old.py:229
↓ 1 callers
Function
get_deepbooru_tags_from_model
( model, tags, pil_image, threshold, alpha_sort=False, use_spaces=True, use_escape
tools/label_images.py:41
↓ 1 callers
Function
get_deepbooru_tags_model
(model_path: str)
tools/label_images.py:20
↓ 1 callers
Function
get_filename
(path)
tools/train_dreambooth_rect.py:243
↓ 1 callers
Function
get_filename
(path)
tools/train_dreambooth.py:239
↓ 1 callers
Function
get_full_repo_name
(model_id: str, organization: Optional[str] = None, token: Optional[str] = None)
tools/train_textual_inversion.py:316
↓ 1 callers
Function
get_full_repo_name
(model_id: str, organization: Optional[str] = None, token: Optional[str] = None)
tools/train_dreambooth_rect.py:372
↓ 1 callers
Function
get_full_repo_name
(model_id: str, organization: Optional[str] = None, token: Optional[str] = None)
tools/train_dreambooth.py:356
↓ 1 callers
Function
get_label_from_txt
(path)
tools/train_dreambooth_rect.py:246
↓ 1 callers
Function
get_label_from_txt
(path)
tools/train_dreambooth.py:242
↓ 1 callers
Function
has_genfiles
(root)
tools/diagnose_tensorboard.py:432
↓ 1 callers
Function
is_bad
(root)
tools/diagnose_tensorboard.py:436
↓ 1 callers
Function
main
()
tools/diagnose_tensorboard.py:510
↓ 1 callers
Function
main
()
tools/train_textual_inversion.py:331
↓ 1 callers
Function
main
(args)
tools/train_dreambooth_rect.py:470
↓ 1 callers
Function
main
(args)
tools/train_dreambooth.py:454
↓ 1 callers
Function
parse_args
()
tools/train_textual_inversion.py:40
↓ 1 callers
Function
parse_args
(input_args=None)
tools/train_dreambooth_rect.py:29
↓ 1 callers
Function
parse_args
(input_args=None)
tools/train_dreambooth.py:29
↓ 1 callers
Function
reshape_weight_for_sd
(w)
tools/diffusers2ckpt.py:161
↓ 1 callers
Function
set_up_logging
()
tools/diagnose_tensorboard.py:499
↓ 1 callers
Function
test_model
(folder, args)
tools/train_dreambooth_rect.py:381
↓ 1 callers
Function
test_model
(folder, args)
tools/train_dreambooth.py:365
↓ 1 callers
Function
which
Return the path to a binary, or `None` if it's not on the path. Returns: A bytestring.
tools/diagnose_tensorboard.py:117
Method
__getitem__
(self, i)
tools/train_textual_inversion.py:276
Method
__getitem__
(self, index)
tools/train_dreambooth_rect.py:321
Method
__getitem__
(self, index)
tools/train_dreambooth_rect.py:365
Method
__getitem__
(self, index)
tools/train_dreambooth.py:305
Method
__getitem__
(self, index)
tools/train_dreambooth.py:349
Method
__init__
( self, data_root, tokenizer, learnable_property="object", # [object, style]
tools/train_textual_inversion.py:234
Method
__init__
( self, instance_data_root, instance_prompt, tokenizer, class_data_roo
tools/train_dreambooth_rect.py:260
Method
__init__
(self, prompt, num_samples)
tools/train_dreambooth_rect.py:358
Method
__init__
( self, instance_data_root, instance_prompt, tokenizer, class_data_roo
tools/train_dreambooth.py:256
Method
__init__
(self, prompt, num_samples)
tools/train_dreambooth.py:342
Method
__len__
(self)
tools/train_textual_inversion.py:273
Method
__len__
(self)
tools/train_dreambooth_rect.py:318
Method
__len__
(self)
tools/train_dreambooth_rect.py:362
Method
__len__
(self)
tools/train_dreambooth.py:302
Method
__len__
(self)
tools/train_dreambooth.py:346
Function
addrinfos
()
tools/diagnose_tensorboard.py:323
Function
autoidentify
Print the Git hash of this version of `diagnose_tensorboard.py`. Given this hash, use `git cat-file blob HASH` to recover the relevant versio
tools/diagnose_tensorboard.py:143
Function
collate_fn
(examples)
tools/train_dreambooth_rect.py:632
Function
collate_fn
(examples)
tools/train_dreambooth.py:615
Function
create_diffusers_schedular
(original_config)
tools/ckpt2diffusers.py:270
Function
full_pip_freeze
()
tools/diagnose_tensorboard.py:493
Function
general
()
tools/diagnose_tensorboard.py:162
Function
installed_packages
()
tools/diagnose_tensorboard.py:184
Function
package_management
()
tools/diagnose_tensorboard.py:177
Function
readable_fqdn
()
tools/diagnose_tensorboard.py:343
Function
source_trees_without_genfiles
()
tools/diagnose_tensorboard.py:421
next →
1–100 of 107, ranked by callers