evilstreak/clipdraw-interactive 📝🔢 → 📝
About
Morphs vector paths towards a text prompt
Example Output
Prompt:
"Watercolor painting of an underwater submarine."
Output
[{"points": [[202.26834106445312, 41.03856658935547], [189.00726318359375, 35.22894287109375], [190.86459350585938, 27.45488166809082], [190.22052001953125, 19.118833541870117], [186.4735565185547, 20.62198257446289], [180.55325317382812, 14.121807098388672], [196.8799591064453, 18.838253021240234]], "num_control_points": [2, 2], "stroke_width": 1.9305535554885864, "stroke_color": [0.38236480951309204, 0.9599982500076294, 0.9248946905136108, 0.18758194148540497]}, {"points": [[101.83165740966797, 183.97312927246094], [112.48220825195312, 180.6824188232422], [112.04141235351562, 170.8673553466797], [103.22462463378906, 180.5030975341797]], "num_control_points": [2], "stroke_width": 1.0, "stroke_color": [0.8051696419715881, 0.18201345205307007, 0.4065730571746826, 0.8765186667442322]}, {"points": [[110.00189208984375, 15.208949089050293], [118.4864730834961, 23.604991912841797], [135.1739501953125, 22.001970291137695], [129.15695190429688, 23.723812103271484], [129.94224548339844, 25.683271408081055], [126.70417785644531, 36.701805114746094], [130.69754028320312, 23.56020736694336], [137.04391479492188, 10.223664283752441], [133.16311645507812, -2.4235727787017822], [129.75828552246094, -1.0098907947540283]], "num_control_points": [2, 2, 2], "stroke_width": 1.0, "stroke_color": [0.03465964272618294, 0.2811407744884491, 0.7714363932609558, 0.6616695523262024]}, {"points": [[228.00466918945312, 104.95636749267578], [228.3773193359375, 115.58951568603516], [218.5783233642578, 111.72844696044922], [221.02732849121094, 103.35551452636719]], "num_control_points": [2], "stroke_width": 1.0, "stroke_color": [0.8434624075889587, 0.5495397448539734, 0.6622249484062195, 0.8902125358581543]}, {"points": [[151.96202087402344, 197.7635955810547], [170.0365447998047, 189.90341186523438], [177.65267944335938, 183.72434997558594], [171.5471954345703, 191.1090545654297], [156.48997497558594, 200.09548950195312], [152.11692810058594, 198.98858642578125], [162.01181030273438, 185.4271697998047], [153.17955017089844, 176.95542907714844], [149.52305603027344, 174.3508758544922], [132.79722595214844, 174.415283203125]], "num_control_points": [2, 2, 2], "stroke_width": 1.0, "stroke_color": [0.36518776416778564, 0.5549648404121399, 0.5034167766571045, 0.4129287600517273]}, {"points": [[37.309200286865234, 4.545693397521973], [22.644216537475586, 15.900293350219727], [13.241044044494629, 15.591772079467773], [21.93770980834961, 10.2673978805542], [26.136226654052734, 3.8096671104431152], [13.790182113647461, 7.245333671569824], [18.369945526123047, -0.8687448501586914]], "num_control_points": [2, 2], "stroke_width": 1.188377022743225, "stroke_color": [0.9663639068603516, 0.7939030528068542, 0.9971450567245483, 0.18654321134090424]}, {"points": [[8.43281364440918, 134.8143310546875], [9.064656257629395, 121.62411499023438], [10.702797889709473, 129.45632934570312], [9.209705352783203, 142.46151733398438], [14.808930397033691, 147.7205352783203], [14.10742473602295, 154.0125732421875], [1.0269538164138794, 155.54855346679688]], "num_control_points": [2, 2], "stroke_width": 1.0, "stroke_color": [0.4236512780189514, 0.5325486660003662, 0.38716140389442444, 0.8206408619880676]}, {"points": [[26.086009979248047, 192.387939453125], [26.127023696899414, 182.4246368408203], [25.02770233154297, 179.89276123046875], [20.22291374206543, 166.15040588378906]], "num_control_points": [2], "stroke_width": 1.0, "stroke_color": [0.2860315442085266, 0.1098332554101944, 0.0, 0.929889440536499]}]
Performance Metrics
0.71s
Prediction Time
0.91s
Total Time
All Input Parameters
{
"prompt": "Watercolor painting of an underwater submarine.",
"num_paths": 8,
"num_iterations": 10
}
Input Parameters
- prompt
- prompt for generating image
- num_paths
- number of paths/curves
- num_iterations
- number of iterations
- starting_paths
- json-encoded starting values for the paths; num_paths is ignored if this is set
Output Schema
Output
Example Execution Logs
Iteration 0; loss=-0.59130859375 Iteration 1; loss=-0.67138671875 Iteration 2; loss=-0.7001953125 Iteration 3; loss=-0.669921875 Iteration 4; loss=-0.69921875 Iteration 5; loss=-0.71142578125 Iteration 6; loss=-0.7216796875 Iteration 7; loss=-0.7119140625 Iteration 8; loss=-0.7900390625 Iteration 9; loss=-0.79345703125
Version Details
- Version ID
8feca8c65270d6ea1b30080a5dc31382afc8316c895299add625ff97a789554c- Version Created
- June 30, 2022