Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gadersd/stable-diffusion-burn
/ functions
Functions
194 in github.com/Gadersd/stable-diffusion-burn
⨍
Functions
194
◇
Types & classes
88
↓ 1 callers
Function
timestep_embedding
( timesteps: Tensor<B, 1, Int>, dim: usize, max_period: usize, )
src/model/unet/mod.rs:19
↓ 1 callers
Method
unconditional_context
(&self, tokenizer: &SimpleTokenizer)
src/model/stablediffusion/mod.rs:194
↓ 1 callers
Function
whitespace_clean
(text)
python/dump.py:472
↓ 1 callers
Function
whitespace_clean
(text)
python/tokenizer.py:56
↓ 1 callers
Function
whitespace_clean
(text: &str)
src/tokenizer.rs:37
Method
__call__
(self, x)
python/dump.py:33
Method
__call__
(self, x)
python/dump.py:62
Method
__call__
(self, x)
python/dump.py:73
Method
__call__
(self, x)
python/dump.py:94
Method
__call__
(self, x)
python/dump.py:127
Method
__call__
(self, x)
python/dump.py:144
Method
__call__
(self, x, emb)
python/dump.py:171
Method
__call__
(self, x, context=None)
python/dump.py:189
Method
__call__
(self, x)
python/dump.py:208
Method
__call__
(self, x)
python/dump.py:220
Method
__call__
(self, x, context=None)
python/dump.py:232
Method
__call__
(self, x, context=None)
python/dump.py:246
Method
__call__
(self, x)
python/dump.py:262
Method
__call__
(self, x)
python/dump.py:269
Method
__call__
(self, x, timesteps=None, context=None)
python/dump.py:326
Method
__call__
(self, hidden_states)
python/dump.py:357
Method
__call__
(self, hidden_states, causal_attention_mask)
python/dump.py:377
Method
__call__
(self, hidden_states, causal_attention_mask)
python/dump.py:413
Method
__call__
(self, hidden_states, causal_attention_mask)
python/dump.py:430
Method
__call__
(self, input_ids, position_ids)
python/dump.py:440
Method
__call__
(self, input_ids)
python/dump.py:449
Method
__init__
(self, in_channels)
python/dump.py:25
Method
__init__
(self, in_channels, out_channels=None)
python/dump.py:55
Method
__init__
(self, block_in)
python/dump.py:68
Method
__init__
(self)
python/dump.py:77
Method
__init__
(self)
python/dump.py:111
Method
__init__
(self)
python/dump.py:138
Method
__init__
(self, channels, emb_channels, out_channels)
python/dump.py:153
Method
__init__
(self, query_dim, context_dim, n_heads, d_head)
python/dump.py:180
Method
__init__
(self, dim_in, dim_out)
python/dump.py:204
Method
__init__
(self, dim, mult=4)
python/dump.py:213
Method
__init__
(self, dim, context_dim, n_heads, d_head)
python/dump.py:224
Method
__init__
(self, channels, context_dim, n_heads, d_head)
python/dump.py:239
Method
__init__
(self, channels)
python/dump.py:259
Method
__init__
(self, channels)
python/dump.py:266
Method
__init__
(self)
python/dump.py:281
Method
__init__
(self)
python/dump.py:353
Method
__init__
(self)
python/dump.py:364
Method
__init__
(self)
python/dump.py:407
Method
__init__
(self)
python/dump.py:427
Method
__init__
(self)
python/dump.py:436
Method
__init__
(self)
python/dump.py:444
Method
__init__
(self, bpe_path: str = default_bpe())
python/dump.py:499
Method
__init__
(self)
python/dump.py:566
Method
__init__
(self, bpe_path: str = default_bpe())
python/tokenizer.py:63
Function
attn_decoder_mask
(seq_length: usize, device: &B::Device)
src/backend.rs:130
Function
convert_dump_to_model
( dump_path: &str, model_name: &str, device: &B::Device, )
src/bin/convert/main.rs:18
Function
cosine_schedule
(n_steps: i64, device: &B::Device)
src/model/stablediffusion/mod.rs:216
Method
decode
(&self, tokens: &[i64], skip_special_tokens: bool)
src/token.rs:41
Method
encode
(self, text)
python/dump.py:554
Method
forward
(&self, x: Tensor<B, D>)
src/model/silu.rs:14
Method
forward
(&self, x: Tensor<B, D>)
src/model/groupnorm/mod.rs:53
Method
forward
( &self, x: Tensor<B, 4>, timesteps: Tensor<B, 1, Int>, context: Tensor<B, 3>,
src/model/unet/mod.rs:109
Method
init
(&self, device: &B::Device)
src/model/groupnorm/mod.rs:18
Method
init
(&self, device: &B::Device)
src/model/stablediffusion/mod.rs:23
Method
init
(&self, device: &B::Device)
src/model/unet/mod.rs:36
Function
load_decoder_block
( path: &str, device: &B::Device, )
src/model/autoencoder/load.rs:103
Function
load_downsample
( path: &str, device: &B::Device, )
src/model/unet/load.rs:139
Function
load_encoder_block
( path: &str, device: &B::Device, )
src/model/autoencoder/load.rs:120
Function
load_f32
( name: &str, path: &str, device: &B::Device, )
src/model/load.rs:49
Function
load_geglu
(path: &str, device: &B::Device)
src/model/unet/load.rs:63
Function
load_mlp
(path: &str, device: &B::Device)
src/model/unet/load.rs:74
Function
load_multi_head_attention
( path: &str, device: &B::Device, )
src/model/unet/load.rs:42
Function
load_res_block
( path: &str, device: &B::Device, )
src/model/unet/load.rs:16
Function
load_res_transformer
( path: &str, device: &B::Device, )
src/model/unet/load.rs:197
Function
load_res_transformer_res
( path: &str, device: &B::Device, )
src/model/unet/load.rs:146
Function
load_res_transformer_upsample
( path: &str, device: &B::Device, )
src/model/unet/load.rs:164
Function
load_res_upsample
( path: &str, device: &B::Device, )
src/model/unet/load.rs:182
Function
load_residual_decoder_attention_block
( path: &str, device: &B::Device, )
src/model/clip/load.rs:49
Function
load_spatial_transformer
( path: &str, device: &B::Device, )
src/model/unet/load.rs:109
Function
load_transformer_block
( path: &str, device: &B::Device, )
src/model/unet/load.rs:86
Function
load_unet_input_blocks
( path: &str, device: &B::Device, )
src/model/unet/load.rs:213
Function
load_unet_output_blocks
( path: &str, device: &B::Device, )
src/model/unet/load.rs:248
Function
load_upsample
( path: &str, device: &B::Device, )
src/model/unet/load.rs:128
Function
load_usize
( name: &str, path: &str, device: &B::Device, )
src/model/load.rs:57
Function
main
()
src/bin/sample/main.rs:36
Function
main
()
src/bin/convert/main.rs:39
Method
new
()
src/tokenizer.rs:86
Method
new
(tokenizer_path: &str)
src/token.rs:14
Method
new
()
src/model/silu.rs:10
Method
new
()
src/model/clip/mod.rs:220
Function
offset_cosine_schedule
(n_steps: i64, device: &B::Device)
src/model/stablediffusion/mod.rs:223
Function
offset_cosine_schedule_cumprod
(n_steps: i64, device: &B::Device)
src/model/stablediffusion/mod.rs:235
Function
qkv_attention
( q: Tensor<B, 3>, k: Tensor<B, 3>, v: Tensor<B, 3>, mask: Option<Tensor<B, 2>>, n_head: u
src/backend.rs:88
Method
run
(x, bb)
python/dump.py:333
Function
save_stable_diffusion
(stable_diffusion, path)
python/stablediffusion.py:8
Function
save_test_image
save red test image
src/bin/sample/main.rs:128
Function
test_encode_decode
()
src/tokenizer.rs:210
Method
vocab_size
(&self, include_special_tokens: bool)
src/token.rs:46
← previous
101–194 of 194, ranked by callers