Files
Jason Schleifer 2c4691f2a1 - Key Value Pair node to allow you to create a key/value pair and output it as a dictionary.
- `Griptape Combine: Merge Dictionary` merges multiple key/value pair nodes
- `key_value_replacement` parameter on all (most) Griptape nodes which allow you to use the dicts and swap out values in a prompt. Check out the attached image to see it in action.
2025-02-27 10:40:15 +13:00

397 lines
6.4 KiB
JSON

{
"last_node_id": 11,
"last_link_id": 14,
"nodes": [
{
"id": 1,
"type": "LoadImage",
"pos": [
200,
-400
],
"size": [
375,
525
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
1,
5
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
2,
8
],
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"clipspace/clipspace-mask-5948121.200000048.png [input]",
"image"
]
},
{
"id": 2,
"type": "Griptape Create: Image Inpainting Variation",
"pos": [
625,
-400
],
"size": [
400,
200
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 1
},
{
"name": "mask",
"type": "MASK",
"link": 2
},
{
"name": "key_value_replacement",
"type": "DICT",
"shape": 7,
"link": 14
},
{
"name": "input_string",
"type": "STRING",
"shape": 7,
"widget": {
"name": "input_string"
},
"link": null
},
{
"name": "driver",
"type": "DRIVER",
"shape": 7,
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
3
],
"slot_index": 0
},
{
"name": "FILE_PATH",
"type": "STRING",
"links": null
}
],
"properties": {
"Node name for S&R": "Griptape Create: Image Inpainting Variation"
},
"widgets_values": [
"a cat riding a skateboard",
""
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 3,
"type": "PreviewImage",
"pos": [
1150,
-375
],
"size": [
1000,
925
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 3
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 4,
"type": "Griptape Driver: Amazon Bedrock Stable Diffusion",
"pos": [
625,
-150
],
"size": [
403.20001220703125,
250
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "DRIVER",
"type": "DRIVER",
"links": [
14
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Griptape Driver: Amazon Bedrock Stable Diffusion"
},
"widgets_values": [
"photographic",
512,
512,
1866,
"randomize",
"AWS_ACCESS_KEY_ID",
"AWS_SECRET_ACCESS_KEY",
"AWS_DEFAULT_REGION",
""
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 5,
"type": "PreviewImage",
"pos": [
1075,
-725
],
"size": [
425,
275
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 5
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 6,
"type": "MaskToImage",
"pos": [
1700,
-775
],
"size": [
264.5999755859375,
26
],
"flags": {
"collapsed": true
},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 9
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
7
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MaskToImage"
},
"widgets_values": []
},
{
"id": 7,
"type": "PreviewImage",
"pos": [
1625,
-725
],
"size": [
425,
275
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 7
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 8,
"type": "ReroutePrimitive|pysssss",
"pos": [
1550,
-475
],
"size": [
75,
26
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "value",
"label": " ",
"type": "*",
"link": 8
}
],
"outputs": [
{
"name": "*",
"label": "MASK",
"type": "*",
"links": [
9
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ReroutePrimitive|pysssss"
}
}
],
"links": [
[
1,
1,
0,
2,
0,
"IMAGE"
],
[
2,
1,
1,
2,
1,
"MASK"
],
[
3,
2,
0,
3,
0,
"IMAGE"
],
[
5,
1,
0,
5,
0,
"IMAGE"
],
[
7,
6,
0,
7,
0,
"IMAGE"
],
[
8,
1,
1,
8,
0,
"*"
],
[
9,
8,
0,
6,
0,
"MASK"
],
[
14,
4,
0,
2,
2,
"DRIVER"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.7513148009015777,
"offset": [
-94.39014453124908,
923.3276953124964
]
}
},
"version": 0.4
}