Upload config.json with huggingface_hub
Browse files- config.json +12 -39
config.json
CHANGED
|
@@ -1,44 +1,17 @@
|
|
| 1 |
{
|
| 2 |
-
"architectures": ["DiffSketcher"],
|
| 3 |
"model_type": "diffsketcher",
|
| 4 |
-
"task": "
|
| 5 |
"framework": "pytorch",
|
| 6 |
-
"
|
| 7 |
-
"
|
| 8 |
-
"
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
"diffusion",
|
| 13 |
-
"sketch"
|
| 14 |
],
|
| 15 |
-
"
|
| 16 |
-
"
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
"description": "Number of paths/strokes in the generated SVG"
|
| 21 |
-
},
|
| 22 |
-
"num_iter": {
|
| 23 |
-
"type": "integer",
|
| 24 |
-
"default": 500,
|
| 25 |
-
"description": "Number of optimization iterations"
|
| 26 |
-
},
|
| 27 |
-
"token_ind": {
|
| 28 |
-
"type": "integer",
|
| 29 |
-
"default": 4,
|
| 30 |
-
"description": "Index of cross-attention maps to initialize strokes"
|
| 31 |
-
},
|
| 32 |
-
"guidance_scale": {
|
| 33 |
-
"type": "float",
|
| 34 |
-
"default": 7.5,
|
| 35 |
-
"description": "Guidance scale for diffusion"
|
| 36 |
-
},
|
| 37 |
-
"canvas_size": {
|
| 38 |
-
"type": "integer",
|
| 39 |
-
"default": 224,
|
| 40 |
-
"description": "Canvas size for SVG generation"
|
| 41 |
-
}
|
| 42 |
-
}
|
| 43 |
-
}
|
| 44 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"model_type": "diffsketcher",
|
| 3 |
+
"task": "vector-graphics-generation",
|
| 4 |
"framework": "pytorch",
|
| 5 |
+
"output_format": "svg",
|
| 6 |
+
"input_format": "text",
|
| 7 |
+
"max_paths": 32,
|
| 8 |
+
"default_size": [
|
| 9 |
+
512,
|
| 10 |
+
512
|
|
|
|
|
|
|
| 11 |
],
|
| 12 |
+
"styles": [
|
| 13 |
+
"painterly",
|
| 14 |
+
"sketchy",
|
| 15 |
+
"artistic"
|
| 16 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
}
|