MCPcopy Create free account

hub / github.com/deforum/sd-webui-deforum / functions

Functions1,109 in github.com/deforum/sd-webui-deforum

↓ 2 callersFunctionget_flow_for_hybrid_motion
(frame_idx, dimensions, inputfiles, hybrid_frame_path, prev_flow, method, raft_model, consistency_check=True,
scripts/deforum_helpers/hybrid_video.py:185
↓ 2 callersFunctionget_flow_for_hybrid_motion_prev
(frame_idx, dimensions, inputfiles, hybrid_frame_path, prev_flow, prev_img, method, raft_model, consistency_ch
scripts/deforum_helpers/hybrid_video.py:197
↓ 2 callersFunctionget_flow_from_images_DIS
(i1, i2, preset, prev_flow)
scripts/deforum_helpers/hybrid_video.py:361
↓ 2 callersMethodget_image_size
Returns the image size, if provided, expected in the form of (height, width) The image size is used for conversion of projected point
scripts/deforum_helpers/src/py3d_tools.py:1133
↓ 2 callersFunctionget_matching_frame
(f, img_batch_id=None)
scripts/deforum_helpers/video_audio_utilities.py:500
↓ 2 callersFunctionget_matrix_for_hybrid_motion
(frame_idx, dimensions, inputfiles, hybrid_motion)
scripts/deforum_helpers/hybrid_video.py:166
↓ 2 callersFunctionget_matrix_for_hybrid_motion_prev
(frame_idx, dimensions, inputfiles, prev_img, hybrid_motion)
scripts/deforum_helpers/hybrid_video.py:173
↓ 2 callersMethodget_projection_transform
Calculate the perspective projection matrix with a symmetric viewing frustrum. Use column major order. The viewing frustrum w
scripts/deforum_helpers/src/py3d_tools.py:1329
↓ 2 callersFunctionget_prompt_list
(prompt)
scripts/deforum_helpers/src/clipseg/models/clipseg.py:35
↓ 2 callersFunctionget_readout_oper
(vit_features, features, use_readout, start_index=1)
scripts/deforum_helpers/src/midas/vit.py:166
↓ 2 callersFunctionget_readout_oper
(vit_features, features, use_readout, start_index=1)
scripts/deforum_helpers/src/midas/backbones/utils.py:127
↓ 2 callersFunctionget_reliable_flow_from_images
(i1, i2, method, raft_model, prev_flow, consistency_blur, reliability=0)
scripts/deforum_helpers/hybrid_video.py:215
↓ 2 callersFunctionget_samplers_list
()
scripts/deforum_helpers/defaults.py:17
↓ 2 callersFunctionget_schedulers_list
()
scripts/deforum_helpers/defaults.py:40
↓ 2 callersFunctionget_transformation_matrix_from_images
(img1, img2, hybrid_motion, confidence=0.75)
scripts/deforum_helpers/hybrid_video.py:299
↓ 2 callersFunctionget_vkitti2_loader
(data_dir_root, batch_size=1, **kwargs)
scripts/deforum_helpers/src/zoedepth/data/vkitti2.py:172
↓ 2 callersFunctionget_vkitti_loader
(data_dir_root, batch_size=1, **kwargs)
scripts/deforum_helpers/src/zoedepth/data/vkitti.py:136
↓ 2 callersFunctionget_white_border
Crops the white border of the RGB. Args: rgb: RGB image, shape (H, W, 3). Returns: Crop parameters.
scripts/deforum_helpers/src/zoedepth/data/preprocess.py:82
↓ 2 callersMethodget_world_to_view_transform
Return the world-to-view transform. Args: **kwargs: parameters for the camera extrinsics can be passed in
scripts/deforum_helpers/src/py3d_tools.py:961
↓ 2 callersMethodin_ndc
Specifies whether the camera is defined in NDC space or in screen (image) space
scripts/deforum_helpers/src/py3d_tools.py:1123
↓ 2 callersFunctioninfer_type
(x)
scripts/deforum_helpers/src/zoedepth/utils/arg_utils.py:3
↓ 2 callersFunctioninit_image_coor
(height, width, u0=None, v0=None)
scripts/deforum_helpers/src/leres/lib/test_utils.py:9
↓ 2 callersFunctionisJson
(myjson)
scripts/deforum_helpers/generate.py:59
↓ 2 callersMethoditer
(self, i, **kwargs)
scripts/deforum_helpers/src/clipseg/general_utils.py:248
↓ 2 callersFunctionload_all_settings
(*args, ui_launch=False, **kwargs)
scripts/deforum_helpers/settings.py:107
↓ 2 callersFunctionload_anime_model
()
scripts/deforum_helpers/vid2depth.py:200
↓ 2 callersFunctionload_depth_model
(models_path, midas_weight_vid2depth)
scripts/deforum_helpers/vid2depth.py:190
↓ 2 callersFunctionload_model
(checkpoint_id, weights_file=None, strict=True, model_args='from_config', with_config=False)
scripts/deforum_helpers/src/clipseg/general_utils.py:201
↓ 2 callersMethodload_sample
(self, sample_i, j)
scripts/deforum_helpers/src/clipseg/datasets/phrasecut.py:218
↓ 2 callersFunctionload_state_dict
Load state_dict into model, handling DataParallel and DistributedDataParallel. Also checks for "model" key in state_dict. DataParallel prefixes s
scripts/deforum_helpers/src/zoedepth/models/model_io.py:27
↓ 2 callersFunctionload_state_from_resource
Loads weights to the model from a given resource. A resource can be of following types: 1. URL. Prefixed with "url::" e.g. url
scripts/deforum_helpers/src/zoedepth/models/model_io.py:64
↓ 2 callersFunctionmake_backbone_default
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[2, 5, 8, 11],
scripts/deforum_helpers/src/midas/backbones/utils.py:144
↓ 2 callersFunctionmedia_file_has_audio
(filename, ffmpeg_location)
scripts/deforum_helpers/video_audio_utilities.py:381
↓ 2 callersMethodnames
(self)
scripts/deforum_helpers/src/clipseg/metrics.py:31
↓ 2 callersFunctionnext_seed
(args, root)
scripts/deforum_helpers/seed.py:19
↓ 2 callersFunctionnorm
(img)
scripts/deforum_helpers/src/clipseg/evaluation_utils.py:27
↓ 2 callersFunctionpoint_to_voxel
(x, z)
scripts/deforum_helpers/src/leres/lib/spvcnn_utils.py:37
↓ 2 callersMethodpredict
(self, prev_img_cv2, midas_weight, half_precision)
scripts/deforum_helpers/depth.py:86
↓ 2 callersMethodpredict
(self, image)
scripts/deforum_helpers/src/infer.py:105
↓ 2 callersMethodpredict_pil
(self, pil_image, visualized=False)
scripts/deforum_helpers/src/infer.py:90
↓ 2 callersFunctionprint_combined_table
(args, anim_args, p, keys, frame_idx)
scripts/deforum_helpers/generate.py:323
↓ 2 callersFunctionprocess_controlnet_input_frames
(args, anim_args, controlnet_args, video_path, mask_path, outdir_suffix, id)
scripts/deforum_helpers/deforum_controlnet.py:326
↓ 2 callersFunctionprocess_frame_anime
(model, image)
scripts/deforum_helpers/vid2depth.py:241
↓ 2 callersFunctionprocess_frame_depth
(depth_model, image, midas_weight)
scripts/deforum_helpers/vid2depth.py:236
↓ 2 callersFunctionprocess_with_controlnet
(p, args, anim_args, controlnet_args, root, parseq_adapter, is_img2img=True, frame_idx=0)
scripts/deforum_helpers/deforum_controlnet.py:220
↓ 2 callersFunctionrender_preview
(args, anim_args, video_args, root, frame_idx, last_preview_frame)
scripts/deforum_helpers/video_audio_utilities.py:503
↓ 2 callersMethodreset
(self)
scripts/deforum_helpers/deforum_tqdm.py:30
↓ 2 callersFunctionreset_frames_cache
(root)
scripts/deforum_helpers/save_images.py:35
↓ 2 callersMethodrgb2gray
(self, rgb)
scripts/deforum_helpers/src/rife/model/loss.py:36
↓ 2 callersMethodrotate_image
(self, image, angle, flag=Image.BILINEAR)
scripts/deforum_helpers/src/zoedepth/data/data_mono.py:440
↓ 2 callersMethodsample_prompts
(self, words, prompt_list=None)
scripts/deforum_helpers/src/clipseg/models/vitseg.py:74
↓ 2 callersFunctionsample_to_cv2
(sample: torch.Tensor, type=np.uint8)
scripts/deforum_helpers/animation.py:34
↓ 2 callersFunctionsave_flow_mask_visualization
(frame_idx, reliable_flow, hybrid_frame_path, color=True)
scripts/deforum_helpers/hybrid_video.py:440
↓ 2 callersFunctionsave_flow_visualization
(frame_idx, dimensions, flow, inputfiles, hybrid_frame_path)
scripts/deforum_helpers/hybrid_video.py:429
↓ 2 callersFunctionsave_image
(image, image_type, filename, args, video_args, root)
scripts/deforum_helpers/save_images.py:29
↓ 2 callersFunctionssim
(img1, img2, window_size=11, window=None, size_average=True, full=False, val_range=None)
scripts/deforum_helpers/src/rife/model/pytorch_msssim/__init__.py:27
↓ 2 callersFunctionssim_matlab
(img1, img2, window_size=11, window=None, size_average=True, full=False, val_range=None)
scripts/deforum_helpers/src/rife/model/pytorch_msssim/__init__.py:81
↓ 2 callersFunctiontime_to_srt_format
(seconds)
scripts/deforum_helpers/subtitle_handler.py:67
↓ 2 callersMethodto
(self, device)
scripts/deforum_helpers/depth_leres.py:66
↓ 2 callersMethodto
In place operation to move class properties which are tensors to a specified device. If self has a property "device", update this as
scripts/deforum_helpers/src/py3d_tools.py:728
↓ 2 callersMethodto_image
(self, depth: torch.Tensor)
scripts/deforum_helpers/depth.py:134
↓ 2 callersMethodto_tensor
(self, pic)
scripts/deforum_helpers/src/zoedepth/data/vkitti.py:52
↓ 2 callersMethodto_tensor
(self, pic)
scripts/deforum_helpers/src/zoedepth/data/vkitti2.py:53
↓ 2 callersMethodto_tensor
(self, pic)
scripts/deforum_helpers/src/zoedepth/data/diode.py:51
↓ 2 callersMethodto_tensor
(self, pic)
scripts/deforum_helpers/src/zoedepth/data/data_mono.py:543
↓ 2 callersMethodto_tensor
(self, pic)
scripts/deforum_helpers/src/zoedepth/data/diml_outdoor_test.py:48
↓ 2 callersMethodto_tensor
(self, pic)
scripts/deforum_helpers/src/zoedepth/data/sun_rgbd_loader.py:48
↓ 2 callersMethodto_tensor
(self, pic)
scripts/deforum_helpers/src/zoedepth/data/hypersim.py:68
↓ 2 callersMethodto_tensor
(self, pic)
scripts/deforum_helpers/src/zoedepth/data/ddad.py:51
↓ 2 callersMethodto_tensor
(self, pic)
scripts/deforum_helpers/src/zoedepth/data/diml_indoor_test.py:51
↓ 2 callersMethodtrain
(self)
scripts/deforum_helpers/src/rife/rife_new_gen/RIFE_HDv3.py:30
↓ 2 callersMethodunused_keys
(self, exceptions=())
scripts/deforum_helpers/src/clipseg/general_utils.py:172
↓ 2 callersMethodupdate
(self, new_dict)
scripts/deforum_helpers/src/zoedepth/utils/misc.py:79
↓ 2 callersMethodvalue
(self)
scripts/deforum_helpers/src/clipseg/metrics.py:149
↓ 2 callersFunctionvoxel_to_point
(x, z, nearest=False)
scripts/deforum_helpers/src/leres/lib/spvcnn_utils.py:65
↓ 2 callersFunctionwait_for_service
(url)
tests/conftest.py:35
↓ 2 callersFunctionwrite_frame_subtitle
(filename, frame_number, frame_duration, text)
scripts/deforum_helpers/subtitle_handler.py:80
↓ 1 callersFunctionDeforumAnimPrompts
()
scripts/deforum_helpers/defaults.py:50
↓ 1 callersMethod__init__
(self, window_size=11, size_average=True, val_range=None)
scripts/deforum_helpers/src/rife/model/pytorch_msssim/__init__.py:168
↓ 1 callersMethod__init__
(self, metric_names, pred_range=None, gt_index=0, pred_index=0, eval_intermediate=True, eval
scripts/deforum_helpers/src/clipseg/metrics.py:12
↓ 1 callersMethod__init__
(self, *args, **kwargs)
scripts/deforum_helpers/src/clipseg/general_utils.py:153
↓ 1 callersMethod__init__
(self, split, image_size=400, negative_prob=0, aug=None, aug_color=False, aug_crop=True, min
scripts/deforum_helpers/src/clipseg/datasets/phrasecut.py:70
↓ 1 callersMethod__init__
Init. Args: width (int): desired output width height (int): desired output height resize_target (bool, opt
scripts/deforum_helpers/src/zoedepth/models/base_models/midas.py:54
↓ 1 callersMethod__init__
Compute log binomial distribution for n_classes Args: n_classes (int, optional): number of output classes. Defaults to 256.
scripts/deforum_helpers/src/zoedepth/models/layers/dist_layers.py:37
↓ 1 callersMethod__init__
Attractor layer for bin centers. Bin centers are bounded on the interval (min_depth, max_depth)
scripts/deforum_helpers/src/zoedepth/models/layers/attractor.py:61
↓ 1 callersMethod__init__
(self, encoder)
scripts/deforum_helpers/src/leres/lib/multi_depth_model_woauxi.py:25
↓ 1 callersMethod__init__
( self, head, features=256, backbone="vitb_rn50_384", readout="project
scripts/deforum_helpers/src/midas/dpt_depth.py:31
↓ 1 callersMethod__init__
(self)
scripts/deforum_helpers/src/adabins/layers.py:28
↓ 1 callersFunction_axis_angle_rotation
Return the rotation matrices for one of the rotations about an axis of which Euler angles describe, for each value of the angle given. A
scripts/deforum_helpers/src/py3d_tools.py:1484
↓ 1 callersFunction_check_valid_rotation_matrix
Determine if R is a valid rotation matrix by checking it satisfies the following conditions: ``RR^T = I and det(R) = 1`` Args:
scripts/deforum_helpers/src/py3d_tools.py:1623
↓ 1 callersMethod_forward_impl
(self, x)
scripts/deforum_helpers/src/leres/lib/Resnext_torch.py:196
↓ 1 callersMethod_get_matrix_inverse
Return the inverse of self._matrix.
scripts/deforum_helpers/src/py3d_tools.py:277
↓ 1 callersFunction_handle_coord
Helper function for _handle_input. Args: c: Python scalar, torch scalar, or 1D torch tensor Returns: c_vec: 1D torch te
scripts/deforum_helpers/src/py3d_tools.py:1720
↓ 1 callersFunction_handle_input
Helper function to handle parsing logic for building transforms. The output is always a tensor of shape (N, 3), but there are several types o
scripts/deforum_helpers/src/py3d_tools.py:1738
↓ 1 callersMethod_infer
Inference interface for the model Args: x (torch.Tensor): input tensor of shape (b, c, h, w) Returns:
scripts/deforum_helpers/src/zoedepth/models/depth_model.py:47
↓ 1 callersMethod_init_params
(self)
scripts/deforum_helpers/src/leres/lib/network_auxi.py:34
↓ 1 callersMethod_initialize
(self, models_path, keep_in_vram=False)
scripts/deforum_helpers/depth_adabins.py:34
↓ 1 callersMethod_initialize_model
(self)
scripts/deforum_helpers/depth.py:66
↓ 1 callersFunction_is_numpy_image
(img)
scripts/deforum_helpers/src/infer.py:20
↓ 1 callersFunction_is_numpy_image
(img)
scripts/deforum_helpers/src/zoedepth/data/data_mono.py:60
← previousnext →201–300 of 1,109, ranked by callers