MCPcopy Create free account

hub / github.com/Picsart-AI-Research/Text2Video-Zero / functions

Functions1,788 in github.com/Picsart-AI-Research/Text2Video-Zero

Methodcpu_only
(self)
annotator/uniformer/mmcv/parallel/data_container.py:68
Functioncreate_demo
(model: Model)
app_canny_db.py:27
Functioncreate_demo
(model: Model)
app_canny.py:7
Functioncreate_demo
(model: Model)
app_depth.py:7
Functioncreate_demo
(model: Model)
app_text_to_video.py:21
Functioncreate_demo
(model: Model)
app_pose.py:15
Functioncreate_demo
(model: Model)
app_pix2pix_video.py:7
Functioncreate_gif
(frames, fps, rescale=False, path=None, watermark=None)
utils.py:116
Functioncreate_video
(frames, fps, rescale=False, path=None, watermark=None)
utils.py:95
Functioncross_entropy
The wrapper function for :func:`F.cross_entropy`
annotator/uniformer/mmseg/models/losses/cross_entropy_loss.py:9
Methodcurrent_frame
Get the current frame (frame that is just visited). Returns: ndarray or None: If the video is fresh, return None, otherwise
annotator/uniformer/mmcv/video/io.py:187
Functioncut_video
Cut a clip from a video. Args: in_file (str): Input video filename. out_file (str): Output video filename. start (None or
annotator/uniformer/mmcv/video/processing.py:93
Functioncutout
Randomly cut out a rectangle from the original img. Args: img (ndarray): Image to be cutout. shape (int | tuple[int]): Expected c
annotator/uniformer/mmcv/image/geometric.py:538
Methodcvt2frames
Convert a video to frame images. Args: frame_dir (str): Output directory to store all the frame images. file_start (i
annotator/uniformer/mmcv/video/io.py:198
Methoddata
(self)
annotator/uniformer/mmcv/parallel/data_container.py:57
Methoddatatype
(self)
annotator/uniformer/mmcv/parallel/data_container.py:61
Functiondeconv_flops_counter_hook
(conv_module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:440
Functiondel_extra_repr
(m)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:295
Functiondeprecated_api_warning
A decorator to check if some arguments are deprecate and try to replace deprecate src_arg_name to dst_arg_name. Args: name_dict(dict)
annotator/uniformer/mmcv/utils/misc.py:288
Functiondict_from_file
Load a text file and parse the content as a dict. Each line of the text file will be two or more columns split by whitespaces or tabs. The fi
annotator/uniformer/mmcv/fileio/parse.py:55
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
annotator/midas/api.py:26
Methoddot_product
(self, theta_x, phi_x)
annotator/uniformer/mmcv/cnn/bricks/non_local.py:135
Functiondraw_bodypose
(canvas, candidate, subset)
annotator/openpose/util.py:37
Functiondraw_handpose
(canvas, all_hand_peaks, show_number=False)
annotator/openpose/util.py:74
Functiondump
Dump data to json/yaml/pickle strings or files. This method provides a unified api for dumping data as strings or to files, and also supports
annotator/uniformer/mmcv/fileio/io.py:69
Methoddump_to_fileobj
(self, obj, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:22
Methoddump_to_fileobj
(self, obj, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/yaml_handler.py:18
Methoddump_to_fileobj
(self, obj, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/json_handler.py:30
Methoddump_to_path
(self, obj, filepath, mode='w', **kwargs)
annotator/uniformer/mmcv/fileio/handlers/base.py:28
Methoddump_to_path
(self, obj, filepath, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:26
Methoddump_to_str
(self, obj, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:18
Methoddump_to_str
(self, obj, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/yaml_handler.py:22
Methoddump_to_str
(self, obj, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/json_handler.py:34
Functionedge_path_to_video_path
(edge_path)
gradio_utils.py:6
Methodembedded_gaussian
Embedded gaussian with temperature.
annotator/uniformer/mmseg/models/decode_heads/dnl_head.py:21
Methodembedded_gaussian
(self, theta_x, phi_x)
annotator/uniformer/mmcv/cnn/bricks/non_local.py:124
Functionempty_flops_counter_hook
(module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:400
Methodencode_decode
Placeholder for encode images with backbone and decode into a semantic segmentation map of the same size as input.
annotator/uniformer/mmseg/models/segmentors/base.py:45
Methodencode_decode
Encode images with backbone and decode into a semantic segmentation map of the same size as input.
annotator/uniformer/mmseg/models/segmentors/cascade_encoder_decoder.py:65
Methodepoch
int: Current epoch.
annotator/uniformer/mmcv/runner/base_runner.py:160
Methodepoch
(self)
annotator/uniformer/mmcv/runner/iter_based_runner.py:27
Methodevaluate
Evaluation in Cityscapes/default protocol. Args: results (list): Testing results of the dataset. metric (str | list[s
annotator/uniformer/mmseg/datasets/cityscapes.py:124
Methodexists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns:
annotator/uniformer/mmcv/fileio/file_client.py:220
Methodexists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns:
annotator/uniformer/mmcv/fileio/file_client.py:581
Methodextra_repr
Extra repr.
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:88
Functionfake_func
(*args, **kwargs)
annotator/uniformer/mmcv/utils/ext_loader.py:43
Methodfilename
(self)
annotator/uniformer/mmcv/utils/config.py:399
Methodfind_next_comma
Find the position of next comma in the string. If no ',' is found in the string, return the string length. All chars inside '
annotator/uniformer/mmcv/utils/config.py:641
Functionfind_vcs_root
Finds the root directory (including itself) of specified markers. Args: path (str): Path of directory or file. markers (list[str]
annotator/uniformer/mmcv/utils/path.py:83
Functionflops_repr
(self)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:273
Functionflow_from_bytes
Read dense optical flow from bytes. .. note:: This load optical flow function works for FlyingChairs, FlyingThings3D, Sintel, Fly
annotator/uniformer/mmcv/video/optflow.py:204
Functionflow_warp
Use flow to warp img. Args: img (ndarray, float or uint8): Image to be warped. flow (ndarray, float): Optical Flow. filli
annotator/uniformer/mmcv/video/optflow.py:143
Functionflowshow
Show optical flow. Args: flow (ndarray or str): The optical flow to be displayed. win_name (str): The window name. wait_t
annotator/uniformer/mmcv/visualization/optflow.py:11
Functionflowwrite
Write optical flow to file. If the flow is not quantized, it will be saved as a .flo file losslessly, otherwise a jpeg image which is lossy b
annotator/uniformer/mmcv/video/optflow.py:61
Functionfopen
(filepath, *args, **kwargs)
annotator/uniformer/mmcv/utils/path.py:13
Functionforce_fp32
Decorator to convert input arguments to fp32 in force. This decorator is useful when you write custom modules and want to support mixed preci
annotator/uniformer/mmcv/runner/fp16_utils.py:141
Functionforce_fp32_wrapper
(old_func)
annotator/uniformer/mmcv/runner/fp16_utils.py:176
Methodformat_results
Place holder to format result to dataset specific output.
annotator/uniformer/mmseg/datasets/custom.py:227
Methodforward
(self, x)
annotator/uniformer/mmseg/ops/encoding.py:57
Methodforward
(self, x)
annotator/uniformer/mmseg/ops/wrappers.py:45
Methodforward
Calls either :func:`forward_train` or :func:`forward_test` depending on whether ``return_loss`` is ``True``. Note this setting will c
annotator/uniformer/mmseg/models/segmentors/base.py:111
Methodforward
(self, inputs)
annotator/uniformer/mmseg/models/necks/fpn.py:162
Methodforward
(self, inputs)
annotator/uniformer/mmseg/models/necks/multilevel_neck.py:55
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/resnest.py:28
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/resnest.py:117
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/resnest.py:226
Methodforward
Forward function.
annotator/uniformer/mmseg/models/backbones/unet.py:76
Methodforward
Forward function.
annotator/uniformer/mmseg/models/backbones/unet.py:137
Methodforward
Forward function.
annotator/uniformer/mmseg/models/backbones/unet.py:211
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/unet.py:376
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/cgnet.py:37
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/cgnet.py:142
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/cgnet.py:179
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/cgnet.py:309
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/vit.py:50
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/vit.py:89
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/vit.py:156
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/vit.py:201
Methodforward
(self, inputs)
annotator/uniformer/mmseg/models/backbones/vit.py:421
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/mobilenet_v3.py:233
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/uniformer.py:34
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/uniformer.py:53
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/uniformer.py:77
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/uniformer.py:97
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/uniformer.py:128
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/uniformer.py:185
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/uniformer.py:232
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/uniformer.py:420
Methodforward
Forward function.
annotator/uniformer/mmseg/models/backbones/hrnet.py:185
Methodforward
Forward function.
annotator/uniformer/mmseg/models/backbones/hrnet.py:510
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/fast_scnn.py:66
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/fast_scnn.py:172
Methodforward
(self, higher_res_feature, lower_res_feature)
annotator/uniformer/mmseg/models/backbones/fast_scnn.py:235
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/fast_scnn.py:367
Methodforward
(self, x)
annotator/uniformer/mmseg/models/backbones/mobilenet_v2.py:149
Methodforward
Forward function.
annotator/uniformer/mmseg/models/backbones/resnet.py:67
Methodforward
Forward function.
annotator/uniformer/mmseg/models/backbones/resnet.py:264
Methodforward
Forward function.
annotator/uniformer/mmseg/models/backbones/resnet.py:632
Methodforward
(self, x)
annotator/uniformer/mmseg/models/utils/drop.py:22
Methodforward
Forward function.
annotator/uniformer/mmseg/models/utils/self_attention_block.py:131
← previousnext →1,201–1,300 of 1,788, ranked by callers