MCPcopy Create free account

hub / github.com/OmniSVG/OmniSVG / functions

Functions856 in github.com/OmniSVG/OmniSVG

↓ 1 callersMethod_add_path
(self, idx=None)
deepsvg/gui/main.py:174
↓ 1 callersMethod_augment
(svg, mean=False)
deepsvg/svg_dataset.py:141
↓ 1 callersMethod_augment
(svg, mean=False)
deepsvg/svgtensor_dataset.py:130
↓ 1 callersMethod_category_to_label
(category)
deepsvg/svgtensor_dataset.py:78
↓ 1 callersMethod_create_pixel2xy_mapping
Create pixel to xy mapping following dataset.py logic.
tokenizer.py:123
↓ 1 callersFunction_generate_square_subsequent_mask
(sz)
deepsvg/model/utils.py:69
↓ 1 callersMethod_get_args_mask
(self)
deepsvg/difflib/tensor.py:168
↓ 1 callersMethod_get_bbox_viz
(self)
deepsvg/svglib/svg_primitive.py:288
↓ 1 callersMethod_get_center_parametrization
(self)
deepsvg/svglib/svg_command.py:458
↓ 1 callersMethod_get_handles_viz
(self)
deepsvg/svglib/svg_path.py:189
↓ 1 callersMethod_get_initial_state
(self, z)
deepsvg/model/model.py:269
↓ 1 callersMethod_get_points_viz
(self, color_firstlast=True, with_moves=True)
deepsvg/svglib/svg_path.py:179
↓ 1 callersMethod_get_real_commands_mask
(self)
deepsvg/difflib/tensor.py:164
↓ 1 callersMethod_get_topleftmost_command
(self)
deepsvg/svglib/svg_path.py:297
↓ 1 callersMethod_get_viz_elements
(self, with_points=False, with_handles=False, with_bboxes=False, color_firstlast=True, with_moves=True)
deepsvg/svglib/svg_primitive.py:48
↓ 1 callersMethod_get_viz_elements
(self, with_points=False, with_handles=False, with_bboxes=False, color_firstlast=False,
deepsvg/svglib/svg.py:213
↓ 1 callersMethod_init_embeddings
(self)
deepsvg/model/model.py:43
↓ 1 callersMethod_init_embeddings
(self)
deepsvg/model/model.py:90
↓ 1 callersMethod_init_embeddings
(self)
deepsvg/model/model.py:198
↓ 1 callersMethod_init_embeddings
(self)
deepsvg/model/layers/positional_encoding.py:37
↓ 1 callersMethod_load_config
Load all constants from configuration file with model-specific overrides.
tokenizer.py:56
↓ 1 callersMethod_load_project
(self)
deepsvg/gui/main.py:684
↓ 1 callersMethod_load_svg
(self, icon_id)
deepsvg/svg_dataset.py:112
↓ 1 callersMethod_make_absolute
(self, commands_y, args_y)
deepsvg/model/model.py:672
↓ 1 callersMethod_markers
(self)
deepsvg/svglib/svg.py:221
↓ 1 callersMethod_reset_parameters
(self)
deepsvg/model/layers/attention.py:85
↓ 1 callersMethod_reset_parameters
r"""Initiate parameters in the transformer model.
deepsvg/model/layers/transformer.py:138
↓ 1 callersMethod_spline_to_svg_str
(spline_str: str, height, replace_with_prev=False)
deepsvg/svglib/svg.py:91
↓ 1 callersMethod_split_two
(self, z=.5)
deepsvg/svglib/svg_command.py:386
↓ 1 callersFunction_threshold_sample
(arg_logits, threshold=0.5, temperature=1.0)
deepsvg/model/utils.py:82
↓ 1 callersMethod_tokenize_path
(path_str)
deepsvg/svglib/svg_path.py:80
↓ 1 callersMethod_uni_to_label
(uni)
deepsvg/svgtensor_dataset.py:62
↓ 1 callersMethod_update_frame
(self, new_frame_idx)
deepsvg/gui/main.py:630
↓ 1 callersMethodadd_path_group
(self, path_group: SVGPathGroup)
deepsvg/svglib/svg.py:445
↓ 1 callersFunctionall_gather_sizes
(x, dim)
deepsvg/model/vector_quantize_pytorch.py:77
↓ 1 callersFunctionall_gather_variably_sized
(x, sizes, dim = 0)
deepsvg/model/vector_quantize_pytorch.py:83
↓ 1 callersMethodangle
(self, other: Point, signed=False)
deepsvg/svglib/geom.py:166
↓ 1 callersFunctionbatched_bincount
(x, *, minlength)
deepsvg/model/vector_quantize_pytorch.py:115
↓ 1 callersFunctionbatchify
(data, device)
deepsvg/utils/utils.py:26
↓ 1 callersMethodbbox
(self)
deepsvg/svglib/svg.py:490
↓ 1 callersMethodbezier
(p1, q1, q2, p2)
deepsvg/gui/main.py:251
↓ 1 callersFunctionbit2int
(x, bits=8)
deepsvg/utils/bits.py:9
↓ 1 callersMethodcalculate_DINOv2_similarity_score
(self, **kwargs)
metrics/compute_dion.py:60
↓ 1 callersFunctioncalculate_average_svg_token_length
Calculate average token length for all SVG files in a folder
metrics/count_token.py:6
↓ 1 callersFunctioncalculate_fid
Calculate FID between images in two folders
metrics/compute_fid.py:288
↓ 1 callersFunctioncalculate_fid_with_hf_dataset
Calculate FID between generated images and HuggingFace dataset ground truth. Args: gen_folder: Path to generated images folder
metrics/compute_fid.py:336
↓ 1 callersFunctioncalculate_lpips
Calculate LPIPS distance Args: img1, img2: Image arrays (float64, range 0-1, shape: HxWx3) lpips_model: LPIPS model instance
metrics/compute_ssim_lpips_mse.py:66
↓ 1 callersFunctioncalculate_mse
Calculate Mean Squared Error (MSE) Args: img1, img2: Image arrays (float64, range 0-1) Returns: MSE value
metrics/compute_ssim_lpips_mse.py:53
↓ 1 callersFunctioncompute_aesthetic_score
Compute the aesthetic score for a single image.
metrics/compute_aesthetic.py:74
↓ 1 callersMethodcompute_filling
(self)
deepsvg/svglib/svg.py:302
↓ 1 callersFunctioncompute_interpolation
(project: DeepSVGProject)
deepsvg/gui/interpolate.py:109
↓ 1 callersFunctionconvert_rgba_to_rgb_with_white_bg
Convert RGBA image to RGB format with white background
metrics/compute_hps.py:41
↓ 1 callersFunctioncreate_interface
Create Gradio interface
app.py:1160
↓ 1 callersMethodcross
(self, other: Point)
deepsvg/svglib/geom.py:160
↓ 1 callersFunctiond_easein_easeout
(t)
deepsvg/gui/utils.py:65
↓ 1 callersFunctiondecode
(z)
deepsvg/gui/interpolate.py:30
↓ 1 callersFunctiondefault
(val, d)
deepsvg/model/vector_quantize_pytorch.py:13
↓ 1 callersFunctiondet
(a: Point, b: Point)
deepsvg/svglib/geom.py:11
↓ 1 callersFunctiondetect_and_replace_background
Detect if image has non-white background and optionally replace it.
app.py:637
↓ 1 callersFunctiondetect_and_replace_background
Detect if image has non-white background and optionally replace it.
inference.py:370
↓ 1 callersFunctiondetect_text_subtype
Auto-detect text prompt subtype
app.py:612
↓ 1 callersFunctiondetect_text_subtype
Auto-detect text prompt subtype
inference.py:345
↓ 1 callersFunctiondist
(a, b)
deepsvg/gui/utils.py:37
↓ 1 callersMethoddistToLine
(self, p1: Point, p2: Point)
deepsvg/svglib/geom.py:174
↓ 1 callersFunctiondownload_aesthetic_model
Download aesthetic predictor model if not exists.
metrics/compute_aesthetic.py:64
↓ 1 callersFunctiondownload_gt_dataset
Download ground truth dataset from HuggingFace and sample 3% with fixed seed. Args: dataset_type: 'icon' for MMSVG-Icon or 'illu
metrics/compute_fid.py:126
↓ 1 callersFunctiondownload_model_weights
Download model weights from Hugging Face Hub.
app.py:473
↓ 1 callersFunctiondownload_model_weights
Download model weights from Hugging Face Hub.
inference.py:234
↓ 1 callersMethoddraw
(self, viewbox=Bbox(24), *args, **kwargs)
deepsvg/svglib/svg_path.py:175
↓ 1 callersFunctiondraw_svg
(idx)
deepsvg/visualize.py:17
↓ 1 callersMethoddrop_sos
(self)
deepsvg/difflib/tensor.py:118
↓ 1 callersFunctioneasein_easeout
(t)
deepsvg/gui/utils.py:61
↓ 1 callersMethoderase
(self)
deepsvg/gui/main.py:185
↓ 1 callersFunctionevaluate_images
Calculate MSE, SSIM and LPIPS between two images Args: gt_path: Path to ground truth image gen_path: Path to generated image
metrics/compute_ssim_lpips_mse.py:99
↓ 1 callersMethodexpire_codes_
(self, batch_samples)
deepsvg/model/vector_quantize_pytorch.py:254
↓ 1 callersMethodexpire_codes_
(self, batch_samples)
deepsvg/model/vector_quantize_pytorch.py:384
↓ 1 callersMethodexport_to_gif
(self, frame_duration=0.1, loop_mode=0)
deepsvg/gui/state/project.py:100
↓ 1 callersFunctionextract_args
(args)
deepsvg/svglib/svg_primitive.py:18
↓ 1 callersMethodextract_features_from_pil_images
Extract features directly from PIL images
metrics/compute_fid.py:81
↓ 1 callersMethodfilter_duplicates
(self)
deepsvg/svglib/svg.py:468
↓ 1 callersMethodfind_extrema
(self)
deepsvg/svglib/svg_command.py:428
↓ 1 callersMethodfind_roots
(self)
deepsvg/svglib/svg_command.py:418
↓ 1 callersFunctionfinetune_model
(project: DeepSVGProject, nb_augmentations=3500)
deepsvg/gui/interpolate.py:58
↓ 1 callersMethodfrom_args
(command: SVGCmdEnum, radius: Radius, x_axis_rotation: Angle, large_arc_flag: Flag, sweep_fl
deepsvg/svglib/svg_command.py:150
↓ 1 callersMethodfrom_cmd_args
(commands, args, *nargs, **kwargs)
deepsvg/difflib/tensor.py:91
↓ 1 callersMethodfrom_points
(points: List[Point])
deepsvg/svglib/geom.py:391
↓ 1 callersMethodfrom_str
(s: str, fill=False, filling=Filling.OUTLINE, add_closing=False)
deepsvg/svglib/svg_path.py:102
↓ 1 callersMethodfrom_xml
(x: minidom.Element)
deepsvg/svglib/svg_path.py:89
↓ 1 callersMethodget_DINOv2_model
(self, model_size)
metrics/compute_dion.py:24
↓ 1 callersMethodget_data
(self, t_sep, fillings, model_args=None, label=None)
deepsvg/svg_dataset.py:188
↓ 1 callersMethodget_data
(self, t_sep, fillings, model_args=None, label=None)
deepsvg/svgtensor_dataset.py:165
↓ 1 callersFunctionget_example_images
Get example images from the examples directory
app.py:1146
↓ 1 callersMethodget_handles_viz
(self)
deepsvg/svglib/svg_command.py:190
↓ 1 callersMethodget_label
(self, idx=0, entry=None)
deepsvg/svg_dataset.py:92
↓ 1 callersMethodget_label
(self, idx=0, entry=None)
deepsvg/svgtensor_dataset.py:88
↓ 1 callersFunctionget_length_distribution
(p, normalize=True)
deepsvg/difflib/utils.py:72
↓ 1 callersMethodget_length_distribution
(p, normalize=True)
deepsvg/difflib/tensor.py:233
↓ 1 callersFunctionget_model_devices_info
Get information about which devices the model is using (for debugging).
inference.py:161
↓ 1 callersMethodget_params
(self, step, epoch)
deepsvg/config.py:74
↓ 1 callersMethodget_weights
(self, step, epoch)
deepsvg/config.py:77
← previousnext →201–300 of 856, ranked by callers