MCPcopy Create free account

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

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

↓ 2 callersMethodfrom_df
Get the list of inputs in the `col` of `path/csv_name`.
fastai/tabular/data.py:120
↓ 2 callersMethodfrom_folder
Get the list of files in `path` that have a text suffix. `recurse` determines if we search subfolders.
fastai/text/data.py:344
↓ 2 callersMethodfrom_learner
Gets preds, y_true, losses to construct base class from a learner
fastai/text/interpret.py:45
↓ 2 callersFunctiongen_inference_deep
( root_folder: Path, weights_name: str, arch=models.resnet34, nf_factor: float = 1.5)
deoldify/generators.py:85
↓ 2 callersFunctiongen_inference_wide
( root_folder: Path, weights_name: str, nf_factor: int = 2, arch=models.resnet101)
deoldify/generators.py:12
↓ 2 callersMethodgenerator
Evaluate the `output` with the critic then uses `self.loss_funcG` to combine it with `target`.
fastai/vision/gan.py:60
↓ 2 callersFunctionget_anchor
(fn)
fastai/gen_doc/nbdoc.py:270
↓ 2 callersFunctionget_doc_path
(mod, dest_path)
fastai/gen_doc/gen_notebooks.py:185
↓ 2 callersFunctionget_dummy_databunch
()
deoldify/dataset.py:42
↓ 2 callersMethodget_emb_szs
Return the default embedding sizes suitable for this data or takes the ones in `sz_dict`.
fastai/tabular/data.py:130
↓ 2 callersFunctionget_files
Return list of files in `path` that have a suffix in `extensions`; optionally `recurse`.
fastai/data_block.py:30
↓ 2 callersFunctionget_fn_link
Return function link to notebook documentation of `ft`. Private functions link to source code
fastai/gen_doc/nbdoc.py:282
↓ 2 callersFunctionget_func_fq_name
(func)
fastai/gen_doc/doctest.py:107
↓ 2 callersFunctionget_global_vars
Return globally assigned variables.
fastai/gen_doc/gen_notebooks.py:52
↓ 2 callersMethodget_idx
Fetch item or user (based on `is_item`) for all in `arr`. (Set model to `cpu` and no grad.)
fastai/collab.py:70
↓ 2 callersFunctionget_imported_modules
Finds all submodules of notebook - sorted by submodules > top level modules > manual imports. This gives notebook imports priority
fastai/gen_doc/gen_notebooks.py:221
↓ 2 callersFunctionget_inner_fts
List the inner functions of a class.
fastai/gen_doc/nbdoc.py:234
↓ 2 callersMethodget_label_cls
Return `label_cls` or guess one from the first element of `labels`.
fastai/data_block.py:255
↓ 2 callersFunctionget_links
Returns source code link and pytest command
fastai/gen_doc/nbtest.py:167
↓ 2 callersFunctionget_parent_func
Find any lines where `elt` is called and return the parent test function
fastai/gen_doc/doctest.py:118
↓ 2 callersFunctionget_preds
Tuple of predictions and targets, and optional losses (if `loss_func`) using `dl`, max batches `n_batch`.
fastai/basic_train.py:43
↓ 2 callersFunctionget_qualname
(elt)
fastai/gen_doc/nbtest.py:129
↓ 2 callersFunctionget_source_link
Returns github link for given file
fastai/gen_doc/nbdoc.py:314
↓ 2 callersFunctionget_stable_video_colorizer
( root_folder: Path = Path('./'), weights_name: str = 'ColorizeVideo_gen', results_dir='result_ima
deoldify/visualize.py:407
↓ 2 callersFunctionget_tmp_file
Create and return a tmp filename, optionally at a specific path. `os.remove` when done with it.
fastai/core.py:374
↓ 2 callersMethodget_transformed_image
( self, path: Path, render_factor: int = None, post_process: bool = True, )
deoldify/visualize.py:135
↓ 2 callersFunctiongpu_mem_get_used_fast
get used memory (in MBs) for the currently selected gpu id, w/o emptying the cache, and needing the `gpu_handle` arg
fastai/utils/mem.py:54
↓ 2 callersFunctionicnr
ICNR init of `x`, with `scale` and `init` function.
fastai/layers.py:194
↓ 2 callersMethodintrinsic_attention
Calculate the intrinsic attention of the input w.r.t to an output `class_id`, or the classification given by the model if `None`. For referenc
fastai/text/interpret.py:50
↓ 2 callersMethodintrinsic_attention
Calculate the intrinsic attention of the input w.r.t to an output `class_id`, or the classification given by the model if `None`. For referenc
fastai/text/models/awd_lstm.py:211
↓ 2 callersFunctionis_dict
(x:Any)
fastai/core.py:53
↓ 2 callersMethodlabel_const
Label every item with `const`.
fastai/data_block.py:285
↓ 2 callersMethodlabel_from_folder
Give a label to each filename depending on its folder.
fastai/data_block.py:298
↓ 2 callersMethodlabel_from_lists
Use the labels in `train_labels` and `valid_labels` to label the data. `label_cls` will overwrite the default.
fastai/data_block.py:489
↓ 2 callersFunctionlink_docstring
Search `docstring` for backticks and attempt to link those functions to respective documentation.
fastai/gen_doc/nbdoc.py:173
↓ 2 callersFunctionlink_markdown_cells
Create documentation links for all cells in markdown with backticks.
fastai/gen_doc/gen_notebooks.py:156
↓ 2 callersFunctionload_callback
(class_func, state, learn:Learner)
fastai/basic_train.py:610
↓ 2 callersMethodload_pretrained
Load a pretrained model and adapts it to the data vocabulary.
fastai/text/learner.py:72
↓ 2 callersFunctionloadtxt_str
Return `ndarray` of `str` of lines of text from `path`.
fastai/core.py:247
↓ 2 callersMethodmake_button_widget
Return a Button widget with specified `handler`.
fastai/widgets/image_cleaner.py:118
↓ 2 callersFunctionmodelpath4file
Return model path to `filename`, checking locally first then in the config file.
fastai/datasets.py:193
↓ 2 callersMethodnew
Create a new copy of `self` with `kwargs` replacing current values.
fastai/basic_data.py:61
↓ 2 callersMethodnew_step
Set state when computing statistics for Global or Group
fastai/general_optimizer.py:19
↓ 2 callersFunctionnormalize
Normalize `x` with `mean` and `std`.
fastai/vision/data.py:56
↓ 2 callersMethodnormalize
Add normalize transform using `stats` (defaults to `DataBunch.batch_stats`)
fastai/vision/data.py:176
↓ 2 callersFunctionnormalize_funcs
Create normalize/denormalize func using `mean` and `std`, can specify `do_y` and `device`.
fastai/vision/data.py:72
↓ 2 callersFunctionnum_children
Get number of children modules in `m`.
fastai/torch_core.py:145
↓ 2 callersMethodon_batch_begin
Handle new batch `xb`,`yb` in `train` or validation.
fastai/callback.py:275
↓ 2 callersMethodon_epoch_begin
Handle new epoch.
fastai/callback.py:270
↓ 2 callersMethodon_epoch_begin
(self, **kwargs)
fastai/text/data.py:53
↓ 2 callersMethodon_epoch_end
Epoch is done, process `val_loss`.
fastai/callback.py:314
↓ 2 callersMethodon_train_begin
Initializes the best value.
fastai/callbacks/tracker.py:35
↓ 2 callersFunctionopen_image
Return `Image` object created from image in file `fn`.
fastai/vision/image.py:395
↓ 2 callersMethodpadded_ds
For a LabelList `ll_input`, resize each image to `size` using `resize_method` and `padding_mode`.
fastai/widgets/image_cleaner.py:31
↓ 2 callersFunctionparse_docstring
Parse the docstring into its components. :return: a dictionary of form { "short_description": ...,
fastai/gen_doc/docstrings.py:67
↓ 2 callersFunctionparse_sections
(cells)
fastai/gen_doc/gen_notebooks.py:238
↓ 2 callersFunctionpartition_by_cores
Split data in `a` equally among `n_cpus` cores
fastai/core.py:169
↓ 2 callersFunctionpiece_attn_html
(pieces:List[str], attns:List[float], sep:str=' ', **kwargs)
fastai/text/interpret.py:16
↓ 2 callersFunctionpiece_attn_html
(pieces:List[str], attns:List[float], sep:str=' ', **kwargs)
fastai/text/models/awd_lstm.py:183
↓ 2 callersFunctionpil2tensor
Convert PIL style `image` array to torch style image tensor.
fastai/vision/image.py:14
↓ 2 callersFunctionrand_bool
Draw 1 or shape=`size` random booleans (`True` occuring with probability `p`).
fastai/torch_core.py:363
↓ 2 callersMethodreconstruct
Reconstruct one of the underlying item for its data `t`.
fastai/data_block.py:97
↓ 2 callersFunctionrelative_test_path
Path relative to the `fastai` parent directory
fastai/gen_doc/doctest.py:126
↓ 2 callersMethodremove
(self)
fastai/callbacks/hooks.py:79
↓ 2 callersFunctionremove_module_load
create new OrderedDict that does not contain `module.`
fastai/torch_core.py:398
↓ 2 callersMethodrender
(self)
fastai/widgets/image_downloader.py:44
↓ 2 callersMethodrender
Re-render Jupyter cell for batch of images.
fastai/widgets/image_cleaner.py:220
↓ 2 callersMethodreport
Print delta used+peaked, and an optional context note, which can also be preset in constructor
fastai/utils/mem.py:139
↓ 2 callersFunctionresnet_generator
(ch_in:int, ch_out:int, n_ftrs:int=64, norm_layer:nn.Module=None, dropout:float=0., n_blo
fastai/vision/cyclegan.py:37
↓ 2 callersFunctionrestore
()
scripts/ui_deoldify.py:21
↓ 2 callersMethodsave_stats
(self)
fastai/distributed.py:59
↓ 2 callersFunctionscale_flow
Scale the coords in `flow` to -1/1 or the image size depending on `to_unit`.
fastai/vision/image.py:441
↓ 2 callersMethodset_dl
Set the current `dl` used.
fastai/callback.py:253
↓ 2 callersMethodset_stat
(self, name:str, value:Union[float, Collection[float]])
fastai/callback.py:125
↓ 2 callersFunctionshow_doc
Show documentation for element `elt`. Supported types: class, Callable, and enum.
fastai/gen_doc/nbdoc.py:103
↓ 2 callersMethodsplit_by_folder
Split the data depending on the folder (`train` or `valid`) in which the filenames are.
fastai/data_block.py:207
↓ 2 callersMethodsplit_by_valid_func
Split the data by result of `func` (which returns `True` for validation set).
fastai/data_block.py:234
↓ 2 callersFunctionsplit_kwargs_by_func
Split `kwargs` between those expected by `func` and the others.
fastai/core.py:287
↓ 2 callersFunctionsplit_no_wd_params
Separate the parameters in `layer_groups` between `no_wd_types` and bias (`bias_types`) from the rest.
fastai/torch_core.py:202
↓ 2 callersMethodstep
(self)
fastai/basic_train.py:607
↓ 2 callersMethodsteps
Build anneal schedule for all of the parameters.
fastai/callbacks/one_cycle.py:19
↓ 2 callersFunctiontests2md
(tests, type_label:str)
fastai/gen_doc/nbtest.py:50
↓ 2 callersFunctionto_cpu
Recursively map lists of tensors in `b ` to the cpu.
fastai/torch_core.py:108
↓ 2 callersFunctionto_data
Recursively map lists of items in `b ` to their wrapped data.
fastai/torch_core.py:104
↓ 2 callersMethodtokenizer
(self, t:str)
fastai/text/transform.py:19
↓ 2 callersFunctiontrim
trim function from PEP-257
fastai/gen_doc/docstrings.py:29
↓ 2 callersFunctionuniform
Draw 1 or shape=`size` random floats from uniform dist: min=`low`, max=`high`.
fastai/torch_core.py:353
↓ 2 callersFunctionuntar_data
Download `url` to `fname` if `dest` doesn't exist, and un-tgz to folder `dest`.
fastai/datasets.py:221
↓ 2 callersMethodzero_grad
(self)
fastai/basic_train.py:608
↓ 1 callersFunctionAction
(s *discordgo.Session, i *discordgo.InteractionCreate, opt *Options)
bot/core/command_handlers/deoldify_command.go:58
↓ 1 callersFunctionAddCommand
()
bot/core/handler.go:29
↓ 1 callersMethodAddTask
向执行队列中添加一个任务
bot/common/ActionQueue.go:37
↓ 1 callersFunctionAvgFlatten
Takes the average of the input.
fastai/vision/gan.py:13
↓ 1 callersFunctionBCEWithLogitsFlat
Same as `nn.BCEWithLogitsLoss`, but flattens input and target.
fastai/layers.py:245
↓ 1 callersFunctionColorizeImage
(base64str, render_factor=50, artistic=False)
app.py:31
↓ 1 callersFunctionDecolorization
(img:Image)
scripts/deoldify_base.py:30
↓ 1 callersFunctionLoadConfig
()
bot/main.go:22
↓ 1 callersFunctionPoolFlatten
Apply `nn.AdaptiveAvgPool2d` to `x` and then flatten the result.
fastai/layers.py:30
↓ 1 callersFunctionRemoveCommand
()
bot/core/handler.go:41
↓ 1 callersMethodRun
执行队列中的任务
bot/common/ActionQueue.go:44
← previousnext →301–400 of 1,778, ranked by callers