File size: 1,341 Bytes
26da839
8675cd3
 
 
 
 
 
 
 
 
 
 
 
2f06631
8675cd3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26da839
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
  "architectures": ["DiffSketchEdit"],
  "model_type": "diffsketcher_edit",
  "task": "svg-editing",
  "framework": "pytorch",
  "pipeline_tag": "image-generation",
  "library_name": "diffvg",
  "tags": [
    "svg",
    "vector-graphics",
    "image-editing",
    "diffusion",
    "sketch-editing"
  ],
  "inference": {
    "parameters": {
      "input_svg": {
        "type": "string",
        "default": null,
        "description": "Input SVG content to edit (optional)"
      },
      "edit_instruction": {
        "type": "string",
        "default": "",
        "description": "Instruction for how to edit the SVG"
      },
      "num_paths": {
        "type": "integer",
        "default": 128,
        "description": "Number of paths in the edited SVG"
      },
      "num_iter": {
        "type": "integer", 
        "default": 300,
        "description": "Number of optimization iterations"
      },
      "guidance_scale": {
        "type": "float",
        "default": 7.5,
        "description": "Guidance scale for diffusion"
      },
      "edit_strength": {
        "type": "float",
        "default": 0.7,
        "description": "Strength of the edit (0.0 to 1.0)"
      },
      "canvas_size": {
        "type": "integer",
        "default": 256,
        "description": "Canvas size for SVG generation"
      }
    }
  }
}