MCPcopy Create free account

hub / github.com/SpenserCai/sd-webui-deoldify / functions

Functions1,778 in github.com/SpenserCai/sd-webui-deoldify

↓ 233 callersMethodappend
(self,l)
fastai/layers.py:145
↓ 97 callersFunctionifnone
`a` if `a` is not None, otherwise `b`.
fastai/core.py:92
↓ 83 callersMethodsize
(self)
fastai/vision/image.py:83
↓ 60 callersMethodsplit
Split the model at `split_on`.
fastai/basic_train.py:210
↓ 56 callersFunctionlistify
Make `p` listy and the same length as `q`.
fastai/core.py:129
↓ 30 callersMethodnew
Create a new `ItemList` from `items`, keeping the same attributes.
fastai/data_block.py:101
↓ 26 callersFunctionis_listy
(x:Any)
fastai/core.py:51
↓ 23 callersMethodwrite
Writes training and validation batch images to Tensorboard.
fastai/callbacks/tensorboard.py:402
↓ 21 callersFunctiontensor
Like `torch.as_tensor`, but handle lists too, and can pass multiple vector elements directly.
fastai/torch_core.py:76
↓ 19 callersFunctionconv_layer
(ni, nf, ks=3, stride=1, zero_bn=False, act=True)
fastai/vision/models/xresnet.py:25
↓ 18 callersMethoddl
Return DataLoader for DatasetType `ds_type`.
fastai/basic_train.py:260
↓ 18 callersMethodremove
Remove the hook from the model.
fastai/callbacks/hooks.py:25
↓ 17 callersMethodshow
Show image on `ax` with `title`, using `cmap` if single-channel, overlaid with optional `y`
fastai/vision/image.py:223
↓ 17 callersMethodupdate
Update state with accumlated, or `val` (if `Weight` or `Layer` scope)
fastai/general_optimizer.py:27
↓ 16 callersFunctionadd_metrics
Return a dictionary for updating `last_metrics` with `mets`.
fastai/torch_core.py:412
↓ 16 callersFunctionflatten_model
(m:nn.Module)
fastai/torch_core.py:166
↓ 15 callersMethodget
Retrieve the `Config` in `fpath`.
fastai/datasets.py:165
↓ 15 callersMethodget
(self, i)
fastai/text/data.py:328
↓ 15 callersMethodopen
Open image in `fn`, subclass and overwrite for custom behavior.
fastai/vision/data.py:267
↓ 15 callersFunctionto_np
Convert a tensor to a numpy array.
fastai/torch_core.py:320
↓ 13 callersMethodclone
Mimic the behavior of torch.clone for `Image` objects.
fastai/vision/image.py:76
↓ 13 callersFunctionget_model
(model_name:str, pretrained:bool, seq:bool=False, pname:str='imagenet', **kwargs)
fastai/vision/models/cadene_models.py:14
↓ 13 callersMethodprocess
Apply `processor` or `self.processor` to `self`.
fastai/data_block.py:79
↓ 13 callersFunctionrange_of
Create a range from 0 to `len(x)`.
fastai/core.py:229
↓ 12 callersFunctiongrab_idx
Grab the `i`-th batch in `x`, `batch_first` stating the batch dimension.
fastai/torch_core.py:332
↓ 12 callersMethodload
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 callersMethodplot
Plot learning rate and losses, trimmed between `skip_start` and `skip_end`. Optionally plot and return min gradient
fastai/basic_train.py:541
↓ 12 callersMethodreconstruct
(self, t:Tensor)
fastai/collab.py:24
↓ 12 callersFunctionrequires_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 callersMethodsave
Save the image to `fn`.
fastai/vision/image.py:144
↓ 11 callersFunctionarray
Same as `np.array` but also handles generators. `kwargs` are passed to `np.array` with `dtype`.
fastai/core.py:293
↓ 10 callersMethod__init__
(self)
fastai/callbacks/tensorboard.py:211
↓ 10 callersFunctioncustom_conv_layer
Create a sequence of convolutional (`ni` to `nf`), ReLU (if `use_activ`) and batchnorm (if `bn`) layers.
deoldify/layers.py:8
↓ 10 callersFunctionget_md_cell
Markdown cell containing `source` with `metadata`.
fastai/gen_doc/gen_notebooks.py:29
↓ 10 callersMethodload
Load the `Vocab` contained in `path`
fastai/text/transform.py:161
↓ 9 callersMethod_add_gradient_scalar
Writes a single scalar value for a gradient statistic to Tensorboard.
fastai/callbacks/tensorboard.py:297
↓ 9 callersMethoddatabunch
To throw a clear error message when the data wasn't split and labeled.
fastai/data_block.py:313
↓ 9 callersMethodswitch
Put the model in generator mode if `gen_mode`, in critic mode otherwise.
fastai/vision/gan.py:50
↓ 8 callersFunctionconv2d
(ni, nf, stride)
fastai/vision/models/xresnet2.py:83
↓ 8 callersMethodinsert
(self,i,l)
fastai/layers.py:147
↓ 8 callersFunctionlink_type
Create link to documentation.
fastai/gen_doc/nbdoc.py:31
↓ 8 callersMethodset_val
Set `val` inside the optimizer dictionary at `key`.
fastai/callback.py:132
↓ 8 callersMethodstep
Return next value along annealed schedule.
fastai/callback.py:387
↓ 8 callersMethodzero_grad
Clear optimizer gradients.
fastai/callback.py:59
↓ 7 callersMethod_split_list
(self, vals:Collection[float], skip_start:int, skip_end:int)
fastai/basic_train.py:597
↓ 7 callersFunctionflatten_check
Check that `out` and `targ` have the same number of elements and flatten them.
fastai/torch_core.py:387
↓ 7 callersMethodfreeze
Freeze up to last layer group.
fastai/basic_train.py:224
↓ 7 callersMethodget
Subclass if you want to customize how to create item `i` from `self.items`.
fastai/data_block.py:72
↓ 7 callersFunctionhook_outputs
Return `Hooks` that store activations of all `modules` in `self.stored`
fastai/callbacks/hooks.py:58
↓ 7 callersFunctionis_pathlike
(x:Any)
fastai/core.py:54
↓ 7 callersMethodlabel_from_func
Apply `func` to every input to get its label.
fastai/data_block.py:294
↓ 7 callersMethodone_batch
Get one batch from the data loader of `ds_type`. Optionally `detach` and `denorm`.
fastai/basic_data.py:163
↓ 7 callersMethodone_item
Get `item` into a batch. Optionally `detach` and `denorm`.
fastai/basic_data.py:177
↓ 7 callersFunctionrecurse
(func:Callable, x:Any, *args, **kwargs)
fastai/core.py:77
↓ 7 callersFunctionrelu
Return a relu activation, maybe `leaky` and `inplace`.
fastai/layers.py:107
↓ 7 callersMethodreset
(self)
fastai/utils/mem.py:81
↓ 7 callersMethodsplit_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 callersMethodstart
(self)
fastai/utils/mem.py:104
↓ 7 callersFunctionstrip_fastai
(s)
fastai/gen_doc/core.py:4
↓ 7 callersMethodtop_losses
Reduce flatten loss to give a single loss value for each image
fastai/vision/interpret.py:19
↓ 6 callersMethod__init__
(self, items:Iterator, path:PathOrStr='.', label_cls:Callable=None, inner_df:Any=None, proces
fastai/data_block.py:61
↓ 6 callersMethod__init__
(self, loss_funcG:Callable, loss_funcC:Callable, gan_model:GANModule)
fastai/vision/gan.py:56
↓ 6 callersFunction_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 callersFunction_get_zoom_mat
`sw`,`sh` scale width,height - `c`,`r` focus col,row.
fastai/vision/transform.py:33
↓ 6 callersMethodadd_metric_names
Add `names` to the inner metric names.
fastai/basic_train.py:508
↓ 6 callersMethodadd_test
Add the `items` as a test set. Pass along `label` otherwise label them with `EmptyLabel`.
fastai/basic_data.py:156
↓ 6 callersMethodbackward
(ctx, grad_output)
fastai/text/models/qrnn.py:38
↓ 6 callersFunctionbatchnorm_2d
A batchnorm2d layer with `nf` features initialized depending on `norm_type`.
fastai/layers.py:36
↓ 6 callersMethodclose
Stops asynchronous request queue processing thread.
fastai/callbacks/tensorboard.py:234
↓ 6 callersMethoddevice
(self)
fastai/vision/image.py:85
↓ 6 callersFunctionfn_name
(ft)
fastai/gen_doc/nbdoc.py:275
↓ 6 callersFunctionimport_mod
Return module from `mod_name`.
fastai/gen_doc/nbdoc.py:187
↓ 6 callersMethodlabel_from_df
Label `self.items` from the values in `cols` in `self.inner_df`.
fastai/data_block.py:276
↓ 6 callersMethodload
(cls, path:PathOrStr, tmp_dir:PathOrStr='tmp', name:str='spm')
fastai/text/data.py:481
↓ 6 callersMethodpred_batch
(self, ds_type:DatasetType=DatasetType.Valid, batch:Tuple=None, reconstruct:bool=False, with_dropout:bool=Fals
fastai/basic_train.py:342
↓ 6 callersFunctionread_nb
Read a notebook in `fname` and return its corresponding json
fastai/gen_doc/gen_notebooks.py:134
↓ 6 callersMethodread_val
Read a hyperparameter `key` in the optimizer dictionary.
fastai/callback.py:140
↓ 6 callersMethodresize
Resize the image to `size`, size can be a single int.
fastai/vision/image.py:193
↓ 5 callersFunction_conv
(ni: int, nf: int, ks: int = 3, stride: int = 1, **kwargs)
deoldify/critics.py:12
↓ 5 callersMethod_init_stats
(self, stats, data=None)
fastai/general_optimizer.py:111
↓ 5 callersFunctionact_conv
(*args, **kwargs)
fastai/vision/models/presnet.py:30
↓ 5 callersFunctionapply_init
Initialize all non-batchnorm layers of `m` with `init_func`.
fastai/torch_core.py:258
↓ 5 callersFunctioncnn_config
Get the metadata associated with `arch`.
fastai/vision/learner.py:43
↓ 5 callersFunctionconv_layer
Create a sequence of convolutional (`ni` to `nf`), ReLU (if `use_activ`) and batchnorm (if `bn`) layers.
fastai/layers.py:111
↓ 5 callersMethodget_preds
Return predictions and targets on the valid, train, or test set, depending on `ds_type`.
fastai/text/learner.py:81
↓ 5 callersMethodget_state
Return the inner state of the `Callback`, `minimal` or not.
fastai/callback.py:196
↓ 5 callersFunctionhas_arg
Check if `func` accepts `arg`.
fastai/core.py:283
↓ 5 callersMethodload_state
Create a `LabelList` from `state`.
fastai/data_block.py:685
↓ 5 callersFunctionloss_batch
Calculate loss and metrics for a batch, call out to callbacks as necessary.
fastai/basic_train.py:20
↓ 5 callersFunctionpresnet
(block, n_layers, name, pre=False, **kwargs)
fastai/vision/models/presnet.py:120
↓ 5 callersMethodreconstruct
(self, t:Tensor)
fastai/text/data.py:338
↓ 5 callersFunctionsep_conv
(ni,nf,pad=None,pool=False,act=True)
fastai/vision/models/xception.py:5
↓ 5 callersMethodset
(self, device:DeviceId)
deoldify/_device.py:21
↓ 5 callersFunctionshow_some
Return the representation of the first `n_max` elements in `items`.
fastai/core.py:367
↓ 5 callersFunctionsubplots
Like `plt.subplots` but with consistent axs shape, `kwargs` passed to `fig.suptitle` with `title`
fastai/core.py:358
↓ 5 callersFunctiontis2hw
Convert `int` or `TensorImageSize` to (height,width) of an image.
fastai/vision/image.py:31
↓ 5 callersFunctionwrite_nb
(nb, nb_path, mode='w')
fastai/gen_doc/gen_notebooks.py:68
↓ 4 callersFunctionCrossEntropyFlat
Same as `nn.CrossEntropyLoss`, but flattens input and target.
fastai/layers.py:241
↓ 4 callersMethod__init__
( self, up_in_c: int, x_in_c: int, hook: Hook, final_div: bool = True,
deoldify/unet.py:58
↓ 4 callersMethod__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