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
↓ 2 callers
Method
from_df
Get the list of inputs in the `col` of `path/csv_name`.
fastai/tabular/data.py:120
↓ 2 callers
Method
from_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 callers
Method
from_learner
Gets preds, y_true, losses to construct base class from a learner
fastai/text/interpret.py:45
↓ 2 callers
Function
gen_inference_deep
( root_folder: Path, weights_name: str, arch=models.resnet34, nf_factor: float = 1.5)
deoldify/generators.py:85
↓ 2 callers
Function
gen_inference_wide
( root_folder: Path, weights_name: str, nf_factor: int = 2, arch=models.resnet101)
deoldify/generators.py:12
↓ 2 callers
Method
generator
Evaluate the `output` with the critic then uses `self.loss_funcG` to combine it with `target`.
fastai/vision/gan.py:60
↓ 2 callers
Function
get_anchor
(fn)
fastai/gen_doc/nbdoc.py:270
↓ 2 callers
Function
get_doc_path
(mod, dest_path)
fastai/gen_doc/gen_notebooks.py:185
↓ 2 callers
Function
get_dummy_databunch
()
deoldify/dataset.py:42
↓ 2 callers
Method
get_emb_szs
Return the default embedding sizes suitable for this data or takes the ones in `sz_dict`.
fastai/tabular/data.py:130
↓ 2 callers
Function
get_files
Return list of files in `path` that have a suffix in `extensions`; optionally `recurse`.
fastai/data_block.py:30
↓ 2 callers
Function
get_fn_link
Return function link to notebook documentation of `ft`. Private functions link to source code
fastai/gen_doc/nbdoc.py:282
↓ 2 callers
Function
get_func_fq_name
(func)
fastai/gen_doc/doctest.py:107
↓ 2 callers
Function
get_global_vars
Return globally assigned variables.
fastai/gen_doc/gen_notebooks.py:52
↓ 2 callers
Method
get_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 callers
Function
get_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 callers
Function
get_inner_fts
List the inner functions of a class.
fastai/gen_doc/nbdoc.py:234
↓ 2 callers
Method
get_label_cls
Return `label_cls` or guess one from the first element of `labels`.
fastai/data_block.py:255
↓ 2 callers
Function
get_links
Returns source code link and pytest command
fastai/gen_doc/nbtest.py:167
↓ 2 callers
Function
get_parent_func
Find any lines where `elt` is called and return the parent test function
fastai/gen_doc/doctest.py:118
↓ 2 callers
Function
get_preds
Tuple of predictions and targets, and optional losses (if `loss_func`) using `dl`, max batches `n_batch`.
fastai/basic_train.py:43
↓ 2 callers
Function
get_qualname
(elt)
fastai/gen_doc/nbtest.py:129
↓ 2 callers
Function
get_source_link
Returns github link for given file
fastai/gen_doc/nbdoc.py:314
↓ 2 callers
Function
get_stable_video_colorizer
( root_folder: Path = Path('./'), weights_name: str = 'ColorizeVideo_gen', results_dir='result_ima
deoldify/visualize.py:407
↓ 2 callers
Function
get_tmp_file
Create and return a tmp filename, optionally at a specific path. `os.remove` when done with it.
fastai/core.py:374
↓ 2 callers
Method
get_transformed_image
( self, path: Path, render_factor: int = None, post_process: bool = True, )
deoldify/visualize.py:135
↓ 2 callers
Function
gpu_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 callers
Function
icnr
ICNR init of `x`, with `scale` and `init` function.
fastai/layers.py:194
↓ 2 callers
Method
intrinsic_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 callers
Method
intrinsic_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 callers
Function
is_dict
(x:Any)
fastai/core.py:53
↓ 2 callers
Method
label_const
Label every item with `const`.
fastai/data_block.py:285
↓ 2 callers
Method
label_from_folder
Give a label to each filename depending on its folder.
fastai/data_block.py:298
↓ 2 callers
Method
label_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 callers
Function
link_docstring
Search `docstring` for backticks and attempt to link those functions to respective documentation.
fastai/gen_doc/nbdoc.py:173
↓ 2 callers
Function
link_markdown_cells
Create documentation links for all cells in markdown with backticks.
fastai/gen_doc/gen_notebooks.py:156
↓ 2 callers
Function
load_callback
(class_func, state, learn:Learner)
fastai/basic_train.py:610
↓ 2 callers
Method
load_pretrained
Load a pretrained model and adapts it to the data vocabulary.
fastai/text/learner.py:72
↓ 2 callers
Function
loadtxt_str
Return `ndarray` of `str` of lines of text from `path`.
fastai/core.py:247
↓ 2 callers
Method
make_button_widget
Return a Button widget with specified `handler`.
fastai/widgets/image_cleaner.py:118
↓ 2 callers
Function
modelpath4file
Return model path to `filename`, checking locally first then in the config file.
fastai/datasets.py:193
↓ 2 callers
Method
new
Create a new copy of `self` with `kwargs` replacing current values.
fastai/basic_data.py:61
↓ 2 callers
Method
new_step
Set state when computing statistics for Global or Group
fastai/general_optimizer.py:19
↓ 2 callers
Function
normalize
Normalize `x` with `mean` and `std`.
fastai/vision/data.py:56
↓ 2 callers
Method
normalize
Add normalize transform using `stats` (defaults to `DataBunch.batch_stats`)
fastai/vision/data.py:176
↓ 2 callers
Function
normalize_funcs
Create normalize/denormalize func using `mean` and `std`, can specify `do_y` and `device`.
fastai/vision/data.py:72
↓ 2 callers
Function
num_children
Get number of children modules in `m`.
fastai/torch_core.py:145
↓ 2 callers
Method
on_batch_begin
Handle new batch `xb`,`yb` in `train` or validation.
fastai/callback.py:275
↓ 2 callers
Method
on_epoch_begin
Handle new epoch.
fastai/callback.py:270
↓ 2 callers
Method
on_epoch_begin
(self, **kwargs)
fastai/text/data.py:53
↓ 2 callers
Method
on_epoch_end
Epoch is done, process `val_loss`.
fastai/callback.py:314
↓ 2 callers
Method
on_train_begin
Initializes the best value.
fastai/callbacks/tracker.py:35
↓ 2 callers
Function
open_image
Return `Image` object created from image in file `fn`.
fastai/vision/image.py:395
↓ 2 callers
Method
padded_ds
For a LabelList `ll_input`, resize each image to `size` using `resize_method` and `padding_mode`.
fastai/widgets/image_cleaner.py:31
↓ 2 callers
Function
parse_docstring
Parse the docstring into its components. :return: a dictionary of form { "short_description": ...,
fastai/gen_doc/docstrings.py:67
↓ 2 callers
Function
parse_sections
(cells)
fastai/gen_doc/gen_notebooks.py:238
↓ 2 callers
Function
partition_by_cores
Split data in `a` equally among `n_cpus` cores
fastai/core.py:169
↓ 2 callers
Function
piece_attn_html
(pieces:List[str], attns:List[float], sep:str=' ', **kwargs)
fastai/text/interpret.py:16
↓ 2 callers
Function
piece_attn_html
(pieces:List[str], attns:List[float], sep:str=' ', **kwargs)
fastai/text/models/awd_lstm.py:183
↓ 2 callers
Function
pil2tensor
Convert PIL style `image` array to torch style image tensor.
fastai/vision/image.py:14
↓ 2 callers
Function
rand_bool
Draw 1 or shape=`size` random booleans (`True` occuring with probability `p`).
fastai/torch_core.py:363
↓ 2 callers
Method
reconstruct
Reconstruct one of the underlying item for its data `t`.
fastai/data_block.py:97
↓ 2 callers
Function
relative_test_path
Path relative to the `fastai` parent directory
fastai/gen_doc/doctest.py:126
↓ 2 callers
Method
remove
(self)
fastai/callbacks/hooks.py:79
↓ 2 callers
Function
remove_module_load
create new OrderedDict that does not contain `module.`
fastai/torch_core.py:398
↓ 2 callers
Method
render
(self)
fastai/widgets/image_downloader.py:44
↓ 2 callers
Method
render
Re-render Jupyter cell for batch of images.
fastai/widgets/image_cleaner.py:220
↓ 2 callers
Method
report
Print delta used+peaked, and an optional context note, which can also be preset in constructor
fastai/utils/mem.py:139
↓ 2 callers
Function
resnet_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 callers
Function
restore
()
scripts/ui_deoldify.py:21
↓ 2 callers
Method
save_stats
(self)
fastai/distributed.py:59
↓ 2 callers
Function
scale_flow
Scale the coords in `flow` to -1/1 or the image size depending on `to_unit`.
fastai/vision/image.py:441
↓ 2 callers
Method
set_dl
Set the current `dl` used.
fastai/callback.py:253
↓ 2 callers
Method
set_stat
(self, name:str, value:Union[float, Collection[float]])
fastai/callback.py:125
↓ 2 callers
Function
show_doc
Show documentation for element `elt`. Supported types: class, Callable, and enum.
fastai/gen_doc/nbdoc.py:103
↓ 2 callers
Method
split_by_folder
Split the data depending on the folder (`train` or `valid`) in which the filenames are.
fastai/data_block.py:207
↓ 2 callers
Method
split_by_valid_func
Split the data by result of `func` (which returns `True` for validation set).
fastai/data_block.py:234
↓ 2 callers
Function
split_kwargs_by_func
Split `kwargs` between those expected by `func` and the others.
fastai/core.py:287
↓ 2 callers
Function
split_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 callers
Method
step
(self)
fastai/basic_train.py:607
↓ 2 callers
Method
steps
Build anneal schedule for all of the parameters.
fastai/callbacks/one_cycle.py:19
↓ 2 callers
Function
tests2md
(tests, type_label:str)
fastai/gen_doc/nbtest.py:50
↓ 2 callers
Function
to_cpu
Recursively map lists of tensors in `b ` to the cpu.
fastai/torch_core.py:108
↓ 2 callers
Function
to_data
Recursively map lists of items in `b ` to their wrapped data.
fastai/torch_core.py:104
↓ 2 callers
Method
tokenizer
(self, t:str)
fastai/text/transform.py:19
↓ 2 callers
Function
trim
trim function from PEP-257
fastai/gen_doc/docstrings.py:29
↓ 2 callers
Function
uniform
Draw 1 or shape=`size` random floats from uniform dist: min=`low`, max=`high`.
fastai/torch_core.py:353
↓ 2 callers
Function
untar_data
Download `url` to `fname` if `dest` doesn't exist, and un-tgz to folder `dest`.
fastai/datasets.py:221
↓ 2 callers
Method
zero_grad
(self)
fastai/basic_train.py:608
↓ 1 callers
Function
Action
(s *discordgo.Session, i *discordgo.InteractionCreate, opt *Options)
bot/core/command_handlers/deoldify_command.go:58
↓ 1 callers
Function
AddCommand
()
bot/core/handler.go:29
↓ 1 callers
Method
AddTask
向执行队列中添加一个任务
bot/common/ActionQueue.go:37
↓ 1 callers
Function
AvgFlatten
Takes the average of the input.
fastai/vision/gan.py:13
↓ 1 callers
Function
BCEWithLogitsFlat
Same as `nn.BCEWithLogitsLoss`, but flattens input and target.
fastai/layers.py:245
↓ 1 callers
Function
ColorizeImage
(base64str, render_factor=50, artistic=False)
app.py:31
↓ 1 callers
Function
Decolorization
(img:Image)
scripts/deoldify_base.py:30
↓ 1 callers
Function
LoadConfig
()
bot/main.go:22
↓ 1 callers
Function
PoolFlatten
Apply `nn.AdaptiveAvgPool2d` to `x` and then flatten the result.
fastai/layers.py:30
↓ 1 callers
Function
RemoveCommand
()
bot/core/handler.go:41
↓ 1 callers
Method
Run
执行队列中的任务
bot/common/ActionQueue.go:44
← previous
next →
301–400 of 1,778, ranked by callers