Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SpenserCai/sd-webui-deoldify
/ functions
Functions
1,778 in github.com/SpenserCai/sd-webui-deoldify
⨍
Functions
1,778
◇
Types & classes
284
↳
Endpoints
1
↓ 233 callers
Method
append
(self,l)
fastai/layers.py:145
↓ 97 callers
Function
ifnone
`a` if `a` is not None, otherwise `b`.
fastai/core.py:92
↓ 83 callers
Method
size
(self)
fastai/vision/image.py:83
↓ 60 callers
Method
split
Split the model at `split_on`.
fastai/basic_train.py:210
↓ 56 callers
Function
listify
Make `p` listy and the same length as `q`.
fastai/core.py:129
↓ 30 callers
Method
new
Create a new `ItemList` from `items`, keeping the same attributes.
fastai/data_block.py:101
↓ 26 callers
Function
is_listy
(x:Any)
fastai/core.py:51
↓ 23 callers
Method
write
Writes training and validation batch images to Tensorboard.
fastai/callbacks/tensorboard.py:402
↓ 21 callers
Function
tensor
Like `torch.as_tensor`, but handle lists too, and can pass multiple vector elements directly.
fastai/torch_core.py:76
↓ 19 callers
Function
conv_layer
(ni, nf, ks=3, stride=1, zero_bn=False, act=True)
fastai/vision/models/xresnet.py:25
↓ 18 callers
Method
dl
Return DataLoader for DatasetType `ds_type`.
fastai/basic_train.py:260
↓ 18 callers
Method
remove
Remove the hook from the model.
fastai/callbacks/hooks.py:25
↓ 17 callers
Method
show
Show image on `ax` with `title`, using `cmap` if single-channel, overlaid with optional `y`
fastai/vision/image.py:223
↓ 17 callers
Method
update
Update state with accumlated, or `val` (if `Weight` or `Layer` scope)
fastai/general_optimizer.py:27
↓ 16 callers
Function
add_metrics
Return a dictionary for updating `last_metrics` with `mets`.
fastai/torch_core.py:412
↓ 16 callers
Function
flatten_model
(m:nn.Module)
fastai/torch_core.py:166
↓ 15 callers
Method
get
Retrieve the `Config` in `fpath`.
fastai/datasets.py:165
↓ 15 callers
Method
get
(self, i)
fastai/text/data.py:328
↓ 15 callers
Method
open
Open image in `fn`, subclass and overwrite for custom behavior.
fastai/vision/data.py:267
↓ 15 callers
Function
to_np
Convert a tensor to a numpy array.
fastai/torch_core.py:320
↓ 13 callers
Method
clone
Mimic the behavior of torch.clone for `Image` objects.
fastai/vision/image.py:76
↓ 13 callers
Function
get_model
(model_name:str, pretrained:bool, seq:bool=False, pname:str='imagenet', **kwargs)
fastai/vision/models/cadene_models.py:14
↓ 13 callers
Method
process
Apply `processor` or `self.processor` to `self`.
fastai/data_block.py:79
↓ 13 callers
Function
range_of
Create a range from 0 to `len(x)`.
fastai/core.py:229
↓ 12 callers
Function
grab_idx
Grab the `i`-th batch in `x`, `batch_first` stating the batch dimension.
fastai/torch_core.py:332
↓ 12 callers
Method
load
Load model and optimizer state (if `with_opt`) `file` from `self.model_dir` using `device`. `file` can be file-like (file or buffer)
fastai/basic_train.py:264
↓ 12 callers
Method
plot
Plot learning rate and losses, trimmed between `skip_start` and `skip_end`. Optionally plot and return min gradient
fastai/basic_train.py:541
↓ 12 callers
Method
reconstruct
(self, t:Tensor)
fastai/collab.py:24
↓ 12 callers
Function
requires_grad
If `b` is not set return `requires_grad` of first param, else set `requires_grad` on all params as `b`
fastai/torch_core.py:129
↓ 12 callers
Method
save
Save the image to `fn`.
fastai/vision/image.py:144
↓ 11 callers
Function
array
Same as `np.array` but also handles generators. `kwargs` are passed to `np.array` with `dtype`.
fastai/core.py:293
↓ 10 callers
Method
__init__
(self)
fastai/callbacks/tensorboard.py:211
↓ 10 callers
Function
custom_conv_layer
Create a sequence of convolutional (`ni` to `nf`), ReLU (if `use_activ`) and batchnorm (if `bn`) layers.
deoldify/layers.py:8
↓ 10 callers
Function
get_md_cell
Markdown cell containing `source` with `metadata`.
fastai/gen_doc/gen_notebooks.py:29
↓ 10 callers
Method
load
Load the `Vocab` contained in `path`
fastai/text/transform.py:161
↓ 9 callers
Method
_add_gradient_scalar
Writes a single scalar value for a gradient statistic to Tensorboard.
fastai/callbacks/tensorboard.py:297
↓ 9 callers
Method
databunch
To throw a clear error message when the data wasn't split and labeled.
fastai/data_block.py:313
↓ 9 callers
Method
switch
Put the model in generator mode if `gen_mode`, in critic mode otherwise.
fastai/vision/gan.py:50
↓ 8 callers
Function
conv2d
(ni, nf, stride)
fastai/vision/models/xresnet2.py:83
↓ 8 callers
Method
insert
(self,i,l)
fastai/layers.py:147
↓ 8 callers
Function
link_type
Create link to documentation.
fastai/gen_doc/nbdoc.py:31
↓ 8 callers
Method
set_val
Set `val` inside the optimizer dictionary at `key`.
fastai/callback.py:132
↓ 8 callers
Method
step
Return next value along annealed schedule.
fastai/callback.py:387
↓ 8 callers
Method
zero_grad
Clear optimizer gradients.
fastai/callback.py:59
↓ 7 callers
Method
_split_list
(self, vals:Collection[float], skip_start:int, skip_end:int)
fastai/basic_train.py:597
↓ 7 callers
Function
flatten_check
Check that `out` and `targ` have the same number of elements and flatten them.
fastai/torch_core.py:387
↓ 7 callers
Method
freeze
Freeze up to last layer group.
fastai/basic_train.py:224
↓ 7 callers
Method
get
Subclass if you want to customize how to create item `i` from `self.items`.
fastai/data_block.py:72
↓ 7 callers
Function
hook_outputs
Return `Hooks` that store activations of all `modules` in `self.stored`
fastai/callbacks/hooks.py:58
↓ 7 callers
Function
is_pathlike
(x:Any)
fastai/core.py:54
↓ 7 callers
Method
label_from_func
Apply `func` to every input to get its label.
fastai/data_block.py:294
↓ 7 callers
Method
one_batch
Get one batch from the data loader of `ds_type`. Optionally `detach` and `denorm`.
fastai/basic_data.py:163
↓ 7 callers
Method
one_item
Get `item` into a batch. Optionally `detach` and `denorm`.
fastai/basic_data.py:177
↓ 7 callers
Function
recurse
(func:Callable, x:Any, *args, **kwargs)
fastai/core.py:77
↓ 7 callers
Function
relu
Return a relu activation, maybe `leaky` and `inplace`.
fastai/layers.py:107
↓ 7 callers
Method
reset
(self)
fastai/utils/mem.py:81
↓ 7 callers
Method
split_by_rand_pct
Split the items randomly by putting `valid_pct` in the validation set, optional `seed` can be passed.
fastai/data_block.py:215
↓ 7 callers
Method
start
(self)
fastai/utils/mem.py:104
↓ 7 callers
Function
strip_fastai
(s)
fastai/gen_doc/core.py:4
↓ 7 callers
Method
top_losses
Reduce flatten loss to give a single loss value for each image
fastai/vision/interpret.py:19
↓ 6 callers
Method
__init__
(self, items:Iterator, path:PathOrStr='.', label_cls:Callable=None, inner_df:Any=None, proces
fastai/data_block.py:61
↓ 6 callers
Method
__init__
(self, loss_funcG:Callable, loss_funcC:Callable, gan_model:GANModule)
fastai/vision/gan.py:56
↓ 6 callers
Function
_find_coeffs
Find 8 coeff mentioned [here](https://web.archive.org/web/20150222120106/xenia.media.mit.edu/~cwren/interpolator/).
fastai/vision/transform.py:232
↓ 6 callers
Function
_get_zoom_mat
`sw`,`sh` scale width,height - `c`,`r` focus col,row.
fastai/vision/transform.py:33
↓ 6 callers
Method
add_metric_names
Add `names` to the inner metric names.
fastai/basic_train.py:508
↓ 6 callers
Method
add_test
Add the `items` as a test set. Pass along `label` otherwise label them with `EmptyLabel`.
fastai/basic_data.py:156
↓ 6 callers
Method
backward
(ctx, grad_output)
fastai/text/models/qrnn.py:38
↓ 6 callers
Function
batchnorm_2d
A batchnorm2d layer with `nf` features initialized depending on `norm_type`.
fastai/layers.py:36
↓ 6 callers
Method
close
Stops asynchronous request queue processing thread.
fastai/callbacks/tensorboard.py:234
↓ 6 callers
Method
device
(self)
fastai/vision/image.py:85
↓ 6 callers
Function
fn_name
(ft)
fastai/gen_doc/nbdoc.py:275
↓ 6 callers
Function
import_mod
Return module from `mod_name`.
fastai/gen_doc/nbdoc.py:187
↓ 6 callers
Method
label_from_df
Label `self.items` from the values in `cols` in `self.inner_df`.
fastai/data_block.py:276
↓ 6 callers
Method
load
(cls, path:PathOrStr, tmp_dir:PathOrStr='tmp', name:str='spm')
fastai/text/data.py:481
↓ 6 callers
Method
pred_batch
(self, ds_type:DatasetType=DatasetType.Valid, batch:Tuple=None, reconstruct:bool=False, with_dropout:bool=Fals
fastai/basic_train.py:342
↓ 6 callers
Function
read_nb
Read a notebook in `fname` and return its corresponding json
fastai/gen_doc/gen_notebooks.py:134
↓ 6 callers
Method
read_val
Read a hyperparameter `key` in the optimizer dictionary.
fastai/callback.py:140
↓ 6 callers
Method
resize
Resize the image to `size`, size can be a single int.
fastai/vision/image.py:193
↓ 5 callers
Function
_conv
(ni: int, nf: int, ks: int = 3, stride: int = 1, **kwargs)
deoldify/critics.py:12
↓ 5 callers
Method
_init_stats
(self, stats, data=None)
fastai/general_optimizer.py:111
↓ 5 callers
Function
act_conv
(*args, **kwargs)
fastai/vision/models/presnet.py:30
↓ 5 callers
Function
apply_init
Initialize all non-batchnorm layers of `m` with `init_func`.
fastai/torch_core.py:258
↓ 5 callers
Function
cnn_config
Get the metadata associated with `arch`.
fastai/vision/learner.py:43
↓ 5 callers
Function
conv_layer
Create a sequence of convolutional (`ni` to `nf`), ReLU (if `use_activ`) and batchnorm (if `bn`) layers.
fastai/layers.py:111
↓ 5 callers
Method
get_preds
Return predictions and targets on the valid, train, or test set, depending on `ds_type`.
fastai/text/learner.py:81
↓ 5 callers
Method
get_state
Return the inner state of the `Callback`, `minimal` or not.
fastai/callback.py:196
↓ 5 callers
Function
has_arg
Check if `func` accepts `arg`.
fastai/core.py:283
↓ 5 callers
Method
load_state
Create a `LabelList` from `state`.
fastai/data_block.py:685
↓ 5 callers
Function
loss_batch
Calculate loss and metrics for a batch, call out to callbacks as necessary.
fastai/basic_train.py:20
↓ 5 callers
Function
presnet
(block, n_layers, name, pre=False, **kwargs)
fastai/vision/models/presnet.py:120
↓ 5 callers
Method
reconstruct
(self, t:Tensor)
fastai/text/data.py:338
↓ 5 callers
Function
sep_conv
(ni,nf,pad=None,pool=False,act=True)
fastai/vision/models/xception.py:5
↓ 5 callers
Method
set
(self, device:DeviceId)
deoldify/_device.py:21
↓ 5 callers
Function
show_some
Return the representation of the first `n_max` elements in `items`.
fastai/core.py:367
↓ 5 callers
Function
subplots
Like `plt.subplots` but with consistent axs shape, `kwargs` passed to `fig.suptitle` with `title`
fastai/core.py:358
↓ 5 callers
Function
tis2hw
Convert `int` or `TensorImageSize` to (height,width) of an image.
fastai/vision/image.py:31
↓ 5 callers
Function
write_nb
(nb, nb_path, mode='w')
fastai/gen_doc/gen_notebooks.py:68
↓ 4 callers
Function
CrossEntropyFlat
Same as `nn.CrossEntropyLoss`, but flattens input and target.
fastai/layers.py:241
↓ 4 callers
Method
__init__
( self, up_in_c: int, x_in_c: int, hook: Hook, final_div: bool = True,
deoldify/unet.py:58
↓ 4 callers
Method
__init__
(self, learn:Learner, preds:Tensor, y_true:Tensor, losses:Tensor, ds_type:DatasetType=DatasetType.Valid)
fastai/train.py:140
next →
1–100 of 1,778, ranked by callers