MCPcopy Create free account

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

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

↓ 1 callersMethod_write_scalar
Writes single scalar value to Tensorboard.
fastai/callbacks/tensorboard.py:67
↓ 1 callersMethod_write_training_loss
Writes training loss to Tensorboard.
fastai/callbacks/tensorboard.py:57
↓ 1 callersMethod_write_weight_histograms
Writes model weight histograms to Tensorboard.
fastai/callbacks/tensorboard.py:63
↓ 1 callersMethodaccumulate
Add `val` to statistic
fastai/general_optimizer.py:23
↓ 1 callersFunctionaccuracy
Computes accuracy with `targs` when `input` is bs * n_classes.
fastai/metrics.py:25
↓ 1 callersMethodadd_special_cases
(self, toks:Collection[str])
fastai/text/transform.py:20
↓ 1 callersMethodadd_test
Add test set containing `items` with an arbitrary `label`.
fastai/data_block.py:554
↓ 1 callersMethodallocate_buffers
Create the ragged array that will be filled when we ask for items.
fastai/text/data.py:42
↓ 1 callersFunctionanno_parser
Look at params (annotated with `Param`) in func and return an `ArgumentParser`
fastai/script.py:25
↓ 1 callersFunctionapply_leaf
Apply `f` to children of `m`.
fastai/torch_core.py:252
↓ 1 callersMethodapply_train
Function applied to `df` if it's the train set.
fastai/tabular/transform.py:126
↓ 1 callersFunctionarange_of
Same as `range_of` but returns an array.
fastai/core.py:232
↓ 1 callersFunctionarrays_split
Given `arrs` is [a,b,...] and `mask`index - return[(a[mask],a[~mask]),(b[mask],b[~mask]),...].
fastai/core.py:117
↓ 1 callersFunctionauc_roc_score
Computes the area under the receiver operator characteristic (ROC) curve using the trapezoid method. Restricted binary classification tasks.
fastai/metrics.py:276
↓ 1 callersFunctionb2mb
convert Bs to MBs and round down
fastai/utils/mem.py:21
↓ 1 callersMethodbatch_contains_deleted
Check if current batch contains already deleted images.
fastai/widgets/image_cleaner.py:203
↓ 1 callersMethodbatch_stats
Grab a batch of data and call reduction function `func` per channel
fastai/vision/data.py:170
↓ 1 callersFunctionbb2hw
Convert bounding box points from (width,height,center) to (height,width,top,left).
fastai/vision/image.py:27
↓ 1 callersMethodbeta
(self)
fastai/callback.py:92
↓ 1 callersFunctionbn2float
If `module` is batchnorm don't use half precision.
fastai/torch_core.py:231
↓ 1 callersFunctionbn_relu_conv
(ni, nf, ks, stride, init_zero=False)
fastai/vision/models/wrn.py:13
↓ 1 callersFunctioncalculate_activation_statistics
Calculation of the statistics used by the FID. Params: -- files : List of image files paths -- model : Instance of inception m
fid/fid_score.py:235
↓ 1 callersFunctioncalculate_fid_given_paths
Calculates the FID of two paths
fid/fid_score.py:274
↓ 1 callersFunctioncalculate_frechet_distance
Numpy implementation of the Frechet Distance. The Frechet distance between two multivariate Gaussians X_1 ~ N(mu_1, C_1) and X_2 ~ N(mu_2, C_2
fid/fid_score.py:175
↓ 1 callersFunctioncall_parse
Decorator to create a simple CLI from `func` using `anno_parser`
fastai/script.py:35
↓ 1 callersFunctionchannel_view
Make channel the first axis of `x` and flatten remaining axes
fastai/vision/data.py:83
↓ 1 callersFunctioncheck_and_install_dependencies
Install required dependencies for DeOldify, with version checks.
install.py:62
↓ 1 callersFunctioncheck_nbconvert_version
()
fastai/gen_doc/gen_notebooks.py:301
↓ 1 callersFunctioncheck_package_installed
Check if a package is installed with an optional version.
install.py:75
↓ 1 callersFunctionchildren_and_parameters
Return the children of `m` and its direct parameters not registered in modules.
fastai/torch_core.py:158
↓ 1 callersFunctionchunks
Yield successive `n`-sized chunks from `l`.
fastai/core.py:73
↓ 1 callersMethodclear_imgs
Clear the widget's images preview pane.
fastai/widgets/image_downloader.py:48
↓ 1 callersFunctioncnn_learner
Build convnet style learner.
fastai/vision/learner.py:91
↓ 1 callersMethodcolorize_from_file_name
( self, file_name: str, render_factor: int = None, post_process: bool = True,g_process_bar: gr.Progres
deoldify/visualize.py:368
↓ 1 callersMethodcomb_similarity
Computes the similarity function between each embedding of `t1` and `t2` matrices.
fastai/widgets/image_cleaner.py:71
↓ 1 callersFunctionconv
(ni, nf, ks=3, stride=1, bias=False)
fastai/vision/models/xresnet.py:20
↓ 1 callersFunctionconv2d_trans
Create `nn.ConvTranspose2d` layer.
fastai/layers.py:103
↓ 1 callersFunctionconvT_norm_relu
(ch_in:int, ch_out:int, norm_layer:nn.Module, ks:int=3, stride:int=2, bias:bool=True)
fastai/vision/cyclegan.py:8
↓ 1 callersFunctionconvert_weights
Convert the model `wgts` to go with a new vocabulary.
fastai/text/learner.py:28
↓ 1 callersMethodcreate
Create a `TextDataBunch` in `path` from the `datasets` for language modelling. Passes `**dl_kwargs` on to `DataLoader()`
fastai/text/data.py:243
↓ 1 callersFunctioncreate_cnn_model
Create custom convnet architecture
fastai/vision/learner.py:80
↓ 1 callersFunctioncreate_head
Model head that takes `nf` features, runs through `lin_ftrs`, and about `nc` classes.
fastai/vision/learner.py:66
↓ 1 callersMethodcreate_image_list
Create a list of images, filenames and labels but first removing files that are not supposed to be displayed.
fastai/widgets/image_cleaner.py:147
↓ 1 callersFunctioncreate_module_page
Create the documentation notebook for module `mod_name` in path `dest_path`
fastai/gen_doc/gen_notebooks.py:93
↓ 1 callersMethodcurrent
(self)
deoldify/_device.py:18
↓ 1 callersFunctioncustom_gan_critic
Critic to train a `GAN`.
deoldify/critics.py:16
↓ 1 callersFunctioncyclic_dt_feat_names
Return feature names of date/time cycles as produced by `cyclic_dt_features`.
fastai/tabular/transform.py:18
↓ 1 callersMethoddata
(self)
fastai/utils/mem.py:100
↓ 1 callersFunctiondata_collate
Convert `batch` items to tensor data.
fastai/torch_core.py:125
↓ 1 callersFunctiondef_emb_sz
Pick an embedding size for `n` depending on `classes` if not given in `sz_dict`.
fastai/tabular/data.py:17
↓ 1 callersMethoddelete_image
(self, file_path)
fastai/widgets/image_cleaner.py:183
↓ 1 callersMethoddestroy
Free the Learner internals, leaving just an empty shell that consumes no memory
fastai/basic_train.py:288
↓ 1 callersMethoddisplay_images_widgets
Display a few preview images in the notebook
fastai/widgets/image_downloader.py:72
↓ 1 callersFunctiondownload
Download a file from a URL to a specific path, showing progress.
install.py:32
↓ 1 callersFunctiondownload_data
Download `url` to destination `fname`.
fastai/datasets.py:206
↓ 1 callersFunctiondownload_google_images
Search for `n_images` images on Google, matching `search_term` and `size` requirements, download them into `path`/`search_term` and verify th
fastai/widgets/image_downloader.py:78
↓ 1 callersFunctiondownload_image
(url,dest, timeout=4)
fastai/vision/data.py:185
↓ 1 callersFunctiondownload_models
Download all models if they don't exist locally.
install.py:52
↓ 1 callersFunctiondummy_batch
Create a dummy batch to go through `m` with `size`.
fastai/callbacks/hooks.py:102
↓ 1 callersFunctionemb_sz_rule
(n_cat:int)
fastai/tabular/data.py:15
↓ 1 callersMethodempty_batch
(self)
fastai/widgets/image_cleaner.py:181
↓ 1 callersFunctioneven_mults
Build log-stepped array from `start` to `stop` in `n` steps.
fastai/core.py:150
↓ 1 callersFunctionexp_rmspe
Exp RMSE between `pred` and `targ`.
fastai/metrics.py:66
↓ 1 callersFunctionexplained_variance
Explained variance between `pred` and `targ`.
fastai/metrics.py:93
↓ 1 callersFunctionfeed_forward
(d_model:int, d_ff:int, ff_p:float=0., act:Activation=Activation.ReLU, double_drop:bool=True)
fastai/text/models/transformer.py:28
↓ 1 callersFunctionfid_inception_v3
Build pretrained Inception model for FID computation The Inception model for FID computation uses a different set of weights and has a slight
fid/inception.py:164
↓ 1 callersMethodfill_row
Fill the row with tokens from the ragged array. --OBS-- overlap != 1 has not been implemented
fastai/text/data.py:80
↓ 1 callersFunctionfind_elt
Attempt to resolve keywords such as Learner.lr_find. `match_last` starts matching from last component.
fastai/gen_doc/nbdoc.py:179
↓ 1 callersFunctionfind_related_tests
Searches `fastai/tests` folder for any test functions related to `elt`
fastai/gen_doc/nbtest.py:81
↓ 1 callersFunctionfind_test_files
Searches in `fastai/tests` directory for module tests
fastai/gen_doc/nbtest.py:100
↓ 1 callersFunctionfind_test_matches
Find all functions in `test_file` related to `elt`
fastai/gen_doc/nbtest.py:122
↓ 1 callersFunctionfirst_layer
Retrieve first layer in a module `m`.
fastai/torch_core.py:175
↓ 1 callersFunctionfit
Fit the `model` on `data` and learn using `loss_func` and `opt`.
fastai/basic_train.py:88
↓ 1 callersFunctionformat_docstring
Merge and format the docstring definition with `arg_comments` and `alt_doc_string`.
fastai/gen_doc/nbdoc.py:145
↓ 1 callersFunctionformat_param
Formats function param to `param1:Type=val`. Font weights: param1=bold, val=bold+italic
fastai/gen_doc/nbdoc.py:68
↓ 1 callersMethodformat_stats
Format stats before printing.
fastai/basic_train.py:500
↓ 1 callersMethodforward
(self, input:Tensor, from_embeddings:bool=False)
fastai/text/models/awd_lstm.py:103
↓ 1 callersMethodfrom_df
Create an `ItemList` in `path` from the inputs in the `cols` of `df`.
fastai/data_block.py:130
↓ 1 callersMethodfrom_df
Create a `TextDataBunch` from DataFrames. `kwargs` are passed to the dataloader creation.
fastai/text/data.py:191
↓ 1 callersMethodfrom_folder
Create an `ItemList` in `path` from the filenames that have a suffix in `extensions`. `recurse` determines if we search subfolders.
fastai/data_block.py:122
↓ 1 callersMethodfrom_folder
Get the list of files in `path` that have an image suffix. `recurse` determines if we search subfolders.
fastai/vision/data.py:278
↓ 1 callersMethodfrom_ids
Create a `TextDataBunch` from ids, labels and a `vocab`. `kwargs` are passed to the dataloader creation.
fastai/text/data.py:150
↓ 1 callersMethodfrom_learner
Gets preds, y_true, losses to construct base class from a learner
fastai/train.py:150
↓ 1 callersMethodfrom_name_func
Create from list of `fnames` in `path` with `label_func`.
fastai/vision/data.py:145
↓ 1 callersFunctionfuzzy_test_match
Find any lines where `fn_name` is invoked and return the parent test function
fastai/gen_doc/nbtest.py:143
↓ 1 callersFunctiongan_loss_from_func
Define loss functions for a GAN from `loss_gen` and `loss_crit`.
fastai/vision/gan.py:190
↓ 1 callersFunctiongen_learner_deep
( data: ImageDataBunch, gen_loss, arch=models.resnet34, nf_factor: float = 1.5 )
deoldify/generators.py:97
↓ 1 callersFunctiongen_learner_wide
( data: ImageDataBunch, gen_loss, arch=models.resnet101, nf_factor: int = 2 )
deoldify/generators.py:24
↓ 1 callersMethodgenerate_classes
Generate classes from `items` by taking the sorted unique values.
fastai/data_block.py:334
↓ 1 callersFunctiongenerate_missing_metadata
(dest_file)
fastai/gen_doc/gen_notebooks.py:189
↓ 1 callersMethodget
(self, i)
fastai/data_block.py:796
↓ 1 callersMethodget
(self, i)
fastai/vision/gan.py:244
↓ 1 callersMethodget
(self, o)
fastai/tabular/data.py:124
↓ 1 callersFunctionget_activations
Calculates the activations of the pool_3 layer for all images. Params: -- files : List of image files paths -- model : Instan
fid/fid_score.py:89
↓ 1 callersMethodget_actns
Gets activations at the layer specified by `hook`, applies `pool` of dim `pool_dim` and concatenates
fastai/widgets/image_cleaner.py:53
↓ 1 callersFunctionget_artistic_image_colorizer
( root_folder: Path = Path('./'), weights_name: str = 'ColorizeArtistic_gen', results_dir='result_
deoldify/visualize.py:441
↓ 1 callersFunctionget_cls_doc
Class definition.
fastai/gen_doc/nbdoc.py:96
↓ 1 callersFunctionget_colorize_data
( sz: int, bs: int, crappy_path: Path, good_path: Path, random_seed: int = None, keep_
deoldify/dataset.py:7
↓ 1 callersFunctionget_default_size
Either max_vocab_sz or one quarter of the number of unique words in `texts`
fastai/text/data.py:405
↓ 1 callersFunctionget_empty_notebook
Default notbook with the minimum metadata.
fastai/gen_doc/gen_notebooks.py:13
← previousnext →501–600 of 1,778, ranked by callers