↓ 29 callersMethod__init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
lama_cleaner/model/mat.py:457
↓ 17 callersMethod__init__(self, in_channels, out_channels, kernel_size,
ratio_gin, ratio_gout, stride=1, padding=0,
lama_cleaner/model/fcf.py:654
↓ 3 callersFunctionwindow_partition Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
lama_cleaner/model/mat.py:470
↓ 2 callersMethod_crop_box Args: image: [H, W, C] RGB mask: [H, W, 1] box: [left,top,right,bottom] Returns: BG
lama_cleaner/model/base.py:118
↓ 2 callersFunctionmodulated_conv2d(
x, # Input tensor of shape [batch_size, in_channels, in_height, in_width].
weight, # Weight tensor
lama_cleaner/model/fcf.py:322
↓ 1 callersMethod_run_box Args: image: [H, W, C] RGB mask: [H, W, 1] box: [left,top,right,bottom] Returns: BG
lama_cleaner/model/base.py:170
↓ 1 callersFunctionmake_beta_schedule(device, schedule, n_timestep, linear_start=1e-4, linear_end=2e-2, cosine_s=8e-3)
lama_cleaner/model/utils.py:12
↓ 1 callersMethodp_sample_ddim(
self,
x,
c,
t,
index,
repeat_noise=False,
use_origin
lama_cleaner/model/ddim_sampler.py:144
↓ 1 callersMethodp_sample_plms(self, x, c, t, index, repeat_noise=False, use_original_steps=False, quantize_denoised=False,
lama_cleaner/model/plms_sampler.py:162
↓ 1 callersMethodplms_sampling(self, cond, shape,
x_T=None, ddim_use_original_steps=False,
callb
lama_cleaner/model/plms_sampler.py:109