From b4f830c55476cd26392d7b38fb45f8a8dc36e67a Mon Sep 17 00:00:00 2001 From: Leslie Perjes Date: Tue, 20 Feb 2024 19:31:37 +0100 Subject: [PATCH] V:0.2.1 - Emotions and workflows --- Toml/emotions_style.toml | 102 +++- Workflow/Primere_latest_workflow.json | 594 ++++++++++++------------ Workflow/Primere_mjstyles_workflow.json | 298 ++++++------ components/detectors.py | 3 +- 4 files changed, 552 insertions(+), 445 deletions(-) diff --git a/Toml/emotions_style.toml b/Toml/emotions_style.toml index e7b80f0..7ea0e18 100644 --- a/Toml/emotions_style.toml +++ b/Toml/emotions_style.toml @@ -1,4 +1,8 @@ [Love] + [Love.N_0] + MainStyle = "Love" + SubStyle = "" + Positive = "Love to like another adult very much and be romantically and sexually attracted to them, or to have strong feelings of liking a friend or person in your family." [Love.N_1] MainStyle = "Love" SubStyle = "Lust" @@ -40,6 +44,10 @@ SubStyle = "Infatuation" Positive = "Infatuation or being smitten is the state of being carried away by an unreasoned passion, usually towards another person for whom one has developed strong romantic feelings. Infatuation can be distinguished from romantic love only when looking back on a particular case of being attracted to a person. Infatuation may also develop into a mature love." [Melancholic] + [Melancholic.N_0] + MainStyle = "Melancholic" + SubStyle = "" + Positive = "Melancholic expressing feelings of sadness, unhappy, sad or sorry. Melancholic depressive significantly more often in-patients, had more severe depression, and a lower level of functional capacity." [Melancholic.N_1] MainStyle = "Melancholic" SubStyle = "Melancholia" @@ -72,7 +80,97 @@ MainStyle = "Melancholic" SubStyle = "Sehnsucht" Positive = "Sehnsucht longing, desire, yearning, or craving. Some psychologists use the word to represent thoughts and feelings about all facets of life that are unfinished or imperfect, paired with a yearning for ideal alternative experiences." -[Melancholic.N_9] + [Melancholic.N_9] MainStyle = "Melancholic" SubStyle = "Good old days" - Positive = "Good old days is reference a time considered by the speaker to be better than the current era. It is a form of nostalgia which can reflect homesickness or yearning for long-gone moments. There is a predisposition, caused by cognitive biases such as rosy retrospection, a form of survivorship bias, for people to view the past more favourably and future more negatively." \ No newline at end of file + Positive = "Good old days is reference a time considered by the speaker to be better than the current era. It is a form of nostalgia which can reflect homesickness or yearning for long-gone moments. There is a predisposition, caused by cognitive biases such as rosy retrospection, a form of survivorship bias, for people to view the past more favourably and future more negatively." +[Joy] + [Joy.N_0] + MainStyle = "Joy" + SubStyle = "" + Positive = "Joy, great happiness is a positive and pleasant emotion, emotion evoked by well-being, success, or good fortune or by the prospect of possessing what desires delight, a state of happiness or felicity." + [Joy.N_1] + MainStyle = "Joy" + SubStyle = "Happyness" + Positive = "Happiness is a positive and pleasant emotion, Overall appreciation of life as-a-whole, ranging from contentment to intense joy. Moments of happiness may be triggered by positive life experiences or thoughts, but sometimes it may arise from no obvious cause. Feeling of an emotion affect such as pleasure or joy, or of a more general sense of emotional condition." + [Joy.N_2] + MainStyle = "Joy" + SubStyle = "Bliss" + Positive = "Perfect happiness, joy, goodness, kindness, overall appreciation of life as-a-whole, ranging from contentment to intense joy." + [Joy.N_3] + MainStyle = "Joy" + SubStyle = "Gaiety" + Positive = "Gaiety, happiness, excitement, pleasure." + [Joy.N_4] + MainStyle = "Joy" + SubStyle = "Glee" + Positive = "Joy, happiness, great delight, especially own good fortune. A state of enjoyable exuberance." + [Joy.N_5] + MainStyle = "Joy" + SubStyle = "Jolliness" + Positive = "Jolliness is a characteristic of being happy and lighthearted. Feeling jolly and jovial and full of good humor." + [Joy.N_6] + MainStyle = "Joy" + SubStyle = "Enjoyment" + Positive = "Enjoyment, enjoying anything. enjoyable state of mind, activity that gives pleasure." + [Joy.N_7] + MainStyle = "Joy" + SubStyle = "Jubilation" + Positive = "Feeling of great happiness, especially because of a success." + [Joy.N_8] + MainStyle = "Joy" + SubStyle = "Satisfaction" + Positive = "Satisfaction, a pleasant feeling that you get when you receive something you wanted, or when you have done something you wanted to do, fulfilment of a need or desire, pleasure obtained by such fulfillment, source of such gratification." + [Joy.N_9] + MainStyle = "Joy" + SubStyle = "Ecstasy" + Positive = "Ecstasy, a state of overwhelming emotion, a state of extreme happiness, especially when feeling pleasure, loss of self-control and sometimes a temporary loss of consciousness, subjective experience of total involvement of the subject with an object of their awareness" + [Joy.N_10] + MainStyle = "Joy" + SubStyle = "Euphoria" + Positive = "Euphoria, experience or affect of pleasure or excitement and intense feelings of well-being and happiness, a feeling of well-being or elation, extreme happiness, sometimes more than is reasonable in a particular situation." + [Joy.N_11] + MainStyle = "Joy" + SubStyle = "Zest" + Positive = "Zest is discrete strengths people possess. Having zest means treating life as an adventure and feeling motivated in challenging situations. People with zest display enthusiasm, excitement, and energy as they tackle life's tasks." + [Joy.N_12] + MainStyle = "Joy" + SubStyle = "Zeal" + Positive = "Zeal, the fervour or tireless devotion for a person, cause, or ideal and determination in its furtherance, diligent enthusiasm, powerful interest, fervour or tireless devotion" + [Joy.N_13] + MainStyle = "Joy" + SubStyle = "Thrill" + Positive = "Thrill, a feeling of extreme excitement, usually caused by something pleasant, the thrill of winning." + [Joy.N_14] + MainStyle = "Joy" + SubStyle = "Exhilaration" + Positive = "Exhilaration, excitement and happiness, a feeling of being excited, or an exciting event." + [Joy.N_15] + MainStyle = "Joy" + SubStyle = "Optimism" + Positive = "Optimism, is an attitude reflecting a belief or hope that the outcome of some specific endeavor, or outcomes in general, will be positive, favorable, and desirable, expect the best possible outcome from any given situation, it reflects that future conditions will work out for the best." + [Joy.N_16] + MainStyle = "Joy" + SubStyle = "Enthusiasm" + Positive = "Enthusiasm, intense enjoyment, interest, or approval expressed by a person, playfulness, inventiveness, optimism, zest, verve, and high energy. A feeling of energetic interest in a particular subject or activity and an eagerness to be involved in it." + [Joy.N_17] + MainStyle = "Joy" + SubStyle = "Thrall" + Positive = "Thrall, Enthrallment, it has a lot of power to control you." + [Joy.N_18] + MainStyle = "Joy" + SubStyle = "Rapture" + Positive = "Rapture, extreme pleasure and happiness or excitement." +[Surprise] + [Surprise.N_1] + MainStyle = "Surprise" + SubStyle = "" + Positive = "Surprise, the feeling caused by something unexpected happening." + [Surprise.N_2] + MainStyle = "Surprise" + SubStyle = "Amazement" + Positive = "Amazement, to cause someone to be extremely surprised, condition of being amazed, a state of overwhelming wonder, as from surprise or sudden fear, horror, or admiration; astonishment. A particular feeling of wonder, surprise, fear, or horror" + [Surprise.N_3] + MainStyle = "Surprise" + SubStyle = "Astonishment" + Positive = "Astonishment, feeling or experience of being astonished, great surprise, something very surprising, very great surprise, amazement." \ No newline at end of file diff --git a/Workflow/Primere_latest_workflow.json b/Workflow/Primere_latest_workflow.json index 875fcb0..f56b824 100644 --- a/Workflow/Primere_latest_workflow.json +++ b/Workflow/Primere_latest_workflow.json @@ -1,6 +1,6 @@ { - "last_node_id": 507, - "last_link_id": 1651, + "last_node_id": 508, + "last_link_id": 1660, "nodes": [ { "id": 88, @@ -424,10 +424,10 @@ 296, 766 ], - "size": [ - 415.14562584743, - 470.4078632070996 - ], + "size": { + "0": 415.1456298828125, + "1": 470.4078674316406 + }, "flags": {}, "order": 8, "mode": 0, @@ -912,82 +912,6 @@ "color": "#143b63", "bgcolor": "#00274f" }, - { - "id": 99, - "type": "PrimereStylePile", - "pos": [ - 1986, - -5 - ], - "size": { - "0": 346.76318359375, - "1": 390 - }, - "flags": {}, - "order": 15, - "mode": 0, - "inputs": [ - { - "name": "opt_pos_style", - "type": "STRING", - "link": null, - "widget": { - "name": "opt_pos_style" - } - }, - { - "name": "opt_neg_style", - "type": "STRING", - "link": null, - "widget": { - "name": "opt_neg_style" - } - } - ], - "outputs": [ - { - "name": "STYLE+", - "type": "STRING", - "links": [ - 1643 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "STYLE-", - "type": "STRING", - "links": [ - 1644 - ], - "shape": 3, - "slot_index": 1 - } - ], - "properties": { - "Node name for S&R": "PrimereStylePile" - }, - "widgets_values": [ - "photo", - 1.2, - "Kodachrome", - 0.7000000000000001, - "None", - 1, - "Ultra detailed", - 1, - "None", - 1, - "None", - 1, - "Futurism", - 0.8, - "None", - 1 - ], - "color": "#4b3a20", - "bgcolor": "#5f4e34" - }, { "id": 499, "type": "Note", @@ -1000,7 +924,7 @@ "1": 85.65190887451172 }, "flags": {}, - "order": 16, + "order": 15, "mode": 0, "properties": { "text": "" @@ -1017,12 +941,12 @@ -487.54543235085225, -9.636365717107598 ], - "size": [ - 478.9578080610795, - 426 - ], + "size": { + "0": 478.9577941894531, + "1": 426 + }, "flags": {}, - "order": 17, + "order": 16, "mode": 0, "outputs": [ { @@ -1092,6 +1016,76 @@ "color": "#54666d", "bgcolor": "#405259" }, + { + "id": 508, + "type": "PrimereEmotionsStyles", + "pos": [ + 1253, + -6 + ], + "size": [ + 339.94146082771067, + 246 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "opt_pos_style", + "type": "STRING", + "link": null, + "widget": { + "name": "opt_pos_style" + } + }, + { + "name": "opt_neg_style", + "type": "STRING", + "link": null, + "widget": { + "name": "opt_neg_style" + } + } + ], + "outputs": [ + { + "name": "STYLE+", + "type": "STRING", + "links": [ + 1659 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "STYLE-", + "type": "STRING", + "links": [ + 1660 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "PrimereEmotionsStyles" + }, + "widgets_values": [ + "None", + 1, + "None", + 1, + "None", + 1, + "None", + 1, + "", + "" + ], + "color": "#736248", + "bgcolor": "#5f4e34" + }, { "id": 372, "type": "ReroutePrimitive|pysssss", @@ -1332,72 +1326,6 @@ "color": "#141494", "bgcolor": "#000080" }, - { - "id": 506, - "type": "PrimereEmotionsStyles", - "pos": [ - 1253, - -5 - ], - "size": { - "0": 340.8479309082031, - "1": 191.6928253173828 - }, - "flags": {}, - "order": 20, - "mode": 0, - "inputs": [ - { - "name": "opt_pos_style", - "type": "STRING", - "link": 1643, - "widget": { - "name": "opt_pos_style" - } - }, - { - "name": "opt_neg_style", - "type": "STRING", - "link": 1644, - "widget": { - "name": "opt_neg_style" - } - } - ], - "outputs": [ - { - "name": "STYLE+", - "type": "STRING", - "links": [ - 1645 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "STYLE-", - "type": "STRING", - "links": [ - 1646 - ], - "shape": 3, - "slot_index": 1 - } - ], - "properties": { - "Node name for S&R": "PrimereEmotionsStyles" - }, - "widgets_values": [ - "None", - 1, - "None", - 1, - "", - "" - ], - "color": "#736248", - "bgcolor": "#5f4e34" - }, { "id": 137, "type": "PrimerePromptSwitch", @@ -1405,12 +1333,12 @@ 20.123967533269205, 283.9173492557744 ], - "size": [ - 262.92248476044193, - 938 - ], + "size": { + "0": 262.9224853515625, + "1": 938 + }, "flags": {}, - "order": 21, + "order": 20, "mode": 0, "inputs": [ { @@ -1703,6 +1631,90 @@ "color": "#0000eb", "bgcolor": "#0000ff" }, + { + "id": 415, + "type": "PrimereMidjourneyStyles", + "pos": [ + 1601, + -6 + ], + "size": { + "0": 378.9108581542969, + "1": 582 + }, + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "opt_pos_style", + "type": "STRING", + "link": 1659, + "widget": { + "name": "opt_pos_style" + } + }, + { + "name": "opt_neg_style", + "type": "STRING", + "link": 1660, + "widget": { + "name": "opt_neg_style" + } + } + ], + "outputs": [ + { + "name": "STYLE+", + "type": "STRING", + "links": [ + 1657 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "STYLE-", + "type": "STRING", + "links": [ + 1658 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "PrimereMidjourneyStyles" + }, + "widgets_values": [ + "None", + 1, + "None", + 1, + "None", + 1, + "None", + 1, + "Precisionist::Realism::Charles Demuth", + 1, + "None", + 1, + "None", + 1, + "None", + 1, + "None", + 1, + "None", + 1, + "None", + 1, + "", + "" + ], + "color": "#4b3a20", + "bgcolor": "#5f4e34" + }, { "id": 456, "type": "ReroutePrimitive|pysssss", @@ -1925,90 +1937,6 @@ "color": "#1414ff", "bgcolor": "#0000ff" }, - { - "id": 415, - "type": "PrimereMidjourneyStyles", - "pos": [ - 1601, - -6 - ], - "size": { - "0": 378.9108581542969, - "1": 582 - }, - "flags": {}, - "order": 26, - "mode": 0, - "inputs": [ - { - "name": "opt_pos_style", - "type": "STRING", - "link": 1645, - "widget": { - "name": "opt_pos_style" - } - }, - { - "name": "opt_neg_style", - "type": "STRING", - "link": 1646, - "widget": { - "name": "opt_neg_style" - } - } - ], - "outputs": [ - { - "name": "STYLE+", - "type": "STRING", - "links": [ - 1604 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "STYLE-", - "type": "STRING", - "links": [ - 1605 - ], - "shape": 3, - "slot_index": 1 - } - ], - "properties": { - "Node name for S&R": "PrimereMidjourneyStyles" - }, - "widgets_values": [ - "None", - 1, - "None", - 1, - "None", - 1, - "None", - 1, - "Precisionist::Realism::Charles Demuth", - 1, - "None", - 1, - "None", - 1, - "None", - 1, - "None", - 1, - "None", - 1, - "None", - 1, - "", - "" - ], - "color": "#4b3a20", - "bgcolor": "#5f4e34" - }, { "id": 108, "type": "PrimereAnyOutput", @@ -2021,7 +1949,7 @@ "1": 243.8347930908203 }, "flags": {}, - "order": 27, + "order": 26, "mode": 0, "inputs": [ { @@ -2052,7 +1980,7 @@ "1": 208.28933715820312 }, "flags": {}, - "order": 28, + "order": 27, "mode": 0, "inputs": [ { @@ -2071,6 +1999,82 @@ "color": "#322", "bgcolor": "#533" }, + { + "id": 99, + "type": "PrimereStylePile", + "pos": [ + 1986, + -5 + ], + "size": { + "0": 346.76318359375, + "1": 390 + }, + "flags": {}, + "order": 28, + "mode": 0, + "inputs": [ + { + "name": "opt_pos_style", + "type": "STRING", + "link": 1657, + "widget": { + "name": "opt_pos_style" + } + }, + { + "name": "opt_neg_style", + "type": "STRING", + "link": 1658, + "widget": { + "name": "opt_neg_style" + } + } + ], + "outputs": [ + { + "name": "STYLE+", + "type": "STRING", + "links": [ + 1655 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "STYLE-", + "type": "STRING", + "links": [ + 1656 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "PrimereStylePile" + }, + "widgets_values": [ + "photo", + 1.2, + "Kodachrome", + 0.7000000000000001, + "None", + 1, + "Ultra detailed", + 1, + "None", + 1, + "None", + 1, + "Futurism", + 0.8, + "None", + 1 + ], + "color": "#4b3a20", + "bgcolor": "#5f4e34" + }, { "id": 321, "type": "PrimereMetaRead", @@ -4920,7 +4924,7 @@ { "name": "style_pos_prompt", "type": "STRING", - "link": 1604, + "link": 1655, "widget": { "name": "style_pos_prompt" } @@ -4928,7 +4932,7 @@ { "name": "style_neg_prompt", "type": "STRING", - "link": 1605, + "link": 1656, "widget": { "name": "style_neg_prompt" } @@ -9500,22 +9504,6 @@ 8, "STRING" ], - [ - 1604, - 415, - 0, - 498, - 12, - "STRING" - ], - [ - 1605, - 415, - 1, - 498, - 13, - "STRING" - ], [ 1606, 321, @@ -9732,38 +9720,6 @@ 0, "IMAGE" ], - [ - 1643, - 99, - 0, - 506, - 0, - "STRING" - ], - [ - 1644, - 99, - 1, - 506, - 1, - "STRING" - ], - [ - 1645, - 506, - 0, - 415, - 0, - "STRING" - ], - [ - 1646, - 506, - 1, - 415, - 1, - "STRING" - ], [ 1647, 507, @@ -9803,6 +9759,54 @@ 137, 39, "STRING" + ], + [ + 1655, + 99, + 0, + 498, + 12, + "STRING" + ], + [ + 1656, + 99, + 1, + 498, + 13, + "STRING" + ], + [ + 1657, + 415, + 0, + 99, + 0, + "STRING" + ], + [ + 1658, + 415, + 1, + 99, + 1, + "STRING" + ], + [ + 1659, + 508, + 0, + 415, + 0, + "STRING" + ], + [ + 1660, + 508, + 1, + 415, + 1, + "STRING" ] ], "groups": [ diff --git a/Workflow/Primere_mjstyles_workflow.json b/Workflow/Primere_mjstyles_workflow.json index 7897a83..a1e37c6 100644 --- a/Workflow/Primere_mjstyles_workflow.json +++ b/Workflow/Primere_mjstyles_workflow.json @@ -1,6 +1,6 @@ { - "last_node_id": 62, - "last_link_id": 225, + "last_node_id": 63, + "last_link_id": 227, "nodes": [ { "id": 4, @@ -199,10 +199,10 @@ 702.8476042799265, 91.4171916525597 ], - "size": [ - 465.42125083155213, - 128.8551467574369 - ], + "size": { + "0": 465.4212646484375, + "1": 128.8551483154297 + }, "flags": {}, "order": 3, "mode": 0, @@ -235,72 +235,6 @@ "color": "#1414ff", "bgcolor": "#0000ff" }, - { - "id": 53, - "type": "PrimereEmotionsStyles", - "pos": [ - 1828, - 1361 - ], - "size": [ - 368.6233742453833, - 150 - ], - "flags": {}, - "order": 4, - "mode": 0, - "inputs": [ - { - "name": "opt_pos_style", - "type": "STRING", - "link": null, - "widget": { - "name": "opt_pos_style" - } - }, - { - "name": "opt_neg_style", - "type": "STRING", - "link": null, - "widget": { - "name": "opt_neg_style" - } - } - ], - "outputs": [ - { - "name": "STYLE+", - "type": "STRING", - "links": [ - 171 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "STYLE-", - "type": "STRING", - "links": [ - 172 - ], - "shape": 3, - "slot_index": 1 - } - ], - "properties": { - "Node name for S&R": "PrimereEmotionsStyles" - }, - "widgets_values": [ - "Love::Caring", - 1, - "None", - 0.8, - "", - "" - ], - "color": "#945414", - "bgcolor": "#804000" - }, { "id": 57, "type": "PrimereSamplersSteps", @@ -308,12 +242,12 @@ 1039, 621 ], - "size": [ - 302.3999938964844, - 190 - ], + "size": { + "0": 302.3999938964844, + "1": 190 + }, "flags": {}, - "order": 5, + "order": 4, "mode": 0, "outputs": [ { @@ -373,12 +307,12 @@ 1347, 623 ], - "size": [ - 319.20001220703125, - 190 - ], + "size": { + "0": 319.20001220703125, + "1": 190 + }, "flags": {}, - "order": 6, + "order": 5, "mode": 0, "outputs": [ { @@ -438,12 +372,12 @@ 703, 620 ], - "size": [ - 327.6000061035156, - 190 - ], + "size": { + "0": 327.6000061035156, + "1": 190 + }, "flags": {}, - "order": 7, + "order": 6, "mode": 0, "outputs": [ { @@ -503,12 +437,12 @@ 1592, -43 ], - "size": [ - 451, - 58 - ], + "size": { + "0": 451, + "1": 58 + }, "flags": {}, - "order": 8, + "order": 7, "mode": 0, "properties": { "text": "" @@ -717,13 +651,13 @@ "1": 390 }, "flags": {}, - "order": 11, + "order": 12, "mode": 0, "inputs": [ { "name": "opt_pos_style", "type": "STRING", - "link": 171, + "link": 226, "widget": { "name": "opt_pos_style" } @@ -731,7 +665,7 @@ { "name": "opt_neg_style", "type": "STRING", - "link": 172, + "link": 227, "widget": { "name": "opt_neg_style" } @@ -788,12 +722,12 @@ 1345, 848 ], - "size": [ - 320.5003212026679, - 278 - ], + "size": { + "0": 320.5003356933594, + "1": 278 + }, "flags": {}, - "order": 12, + "order": 11, "mode": 0, "inputs": [ { @@ -971,10 +905,10 @@ 397, 465 ], - "size": [ - 275.55817735493974, - 54 - ], + "size": { + "0": 275.55816650390625, + "1": 54 + }, "flags": {}, "order": 13, "mode": 0, @@ -1024,10 +958,10 @@ 396, 553 ], - "size": [ - 277.58449359140116, - 54 - ], + "size": { + "0": 277.5845031738281, + "1": 54 + }, "flags": {}, "order": 14, "mode": 0, @@ -1082,7 +1016,7 @@ "1": 582 }, "flags": {}, - "order": 15, + "order": 16, "mode": 0, "inputs": [ { @@ -1161,12 +1095,12 @@ 1183, 256 ], - "size": [ - 281.11123693911827, - 186 - ], + "size": { + "0": 281.1112365722656, + "1": 186 + }, "flags": {}, - "order": 16, + "order": 15, "mode": 0, "inputs": [ { @@ -1257,10 +1191,10 @@ 395, 643 ], - "size": [ - 280.1239679460932, - 54 - ], + "size": { + "0": 280.12396240234375, + "1": 54 + }, "flags": {}, "order": 17, "mode": 0, @@ -1317,10 +1251,10 @@ 1474, 91 ], - "size": [ - 318.6917805067658, - 377.6765071655126 - ], + "size": { + "0": 318.6917724609375, + "1": 377.676513671875 + }, "flags": {}, "order": 18, "mode": 0, @@ -1407,10 +1341,10 @@ 2161, 92 ], - "size": [ - 333.1334670573401, - 734 - ], + "size": { + "0": 333.1334533691406, + "1": 734 + }, "flags": {}, "order": 19, "mode": 0, @@ -1718,10 +1652,10 @@ 2501, 175 ], - "size": [ - 323.333667890136, - 238 - ], + "size": { + "0": 323.33367919921875, + "1": 238 + }, "flags": {}, "order": 21, "mode": 0, @@ -1919,6 +1853,76 @@ }, "color": "#549494", "bgcolor": "#408080" + }, + { + "id": 63, + "type": "PrimereEmotionsStyles", + "pos": [ + 1828, + 1361 + ], + "size": [ + 370.5511779785156, + 282.72174072265625 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "opt_pos_style", + "type": "STRING", + "link": null, + "widget": { + "name": "opt_pos_style" + } + }, + { + "name": "opt_neg_style", + "type": "STRING", + "link": null, + "widget": { + "name": "opt_neg_style" + } + } + ], + "outputs": [ + { + "name": "STYLE+", + "type": "STRING", + "links": [ + 226 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "STYLE-", + "type": "STRING", + "links": [ + 227 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "PrimereEmotionsStyles" + }, + "widgets_values": [ + "None", + 1, + "None", + 1, + "None", + 1, + "None", + 1, + "", + "" + ], + "color": "#945414", + "bgcolor": "#804000" } ], "links": [ @@ -2098,22 +2102,6 @@ 1, "STRING" ], - [ - 171, - 53, - 0, - 49, - 0, - "STRING" - ], - [ - 172, - 53, - 1, - 49, - 1, - "STRING" - ], [ 173, 10, @@ -2449,6 +2437,22 @@ 55, 6, "STRING" + ], + [ + 226, + 63, + 0, + 49, + 0, + "STRING" + ], + [ + 227, + 63, + 1, + 49, + 1, + "STRING" ] ], "groups": [ @@ -2494,7 +2498,7 @@ 1814, 860, 1020, - 670 + 859 ], "color": "#b58b2a", "font_size": 24, diff --git a/components/detectors.py b/components/detectors.py index 82e086c..2f3e20f 100644 --- a/components/detectors.py +++ b/components/detectors.py @@ -1065,13 +1065,14 @@ def vae_encode_crop_pixels_sd(self, pixels): t = vae.encode(pixels[:, :, :, :3]) ''' +# itt hibás: def to_latent_image(pixels, vae): x = pixels.shape[1] y = pixels.shape[2] if pixels.shape[1] != x or pixels.shape[2] != y: pixels = pixels[:, :x, :y, :] pixels = vae_encode_crop_pixels(pixels) - t = vae.encode(pixels[:,:,:,:3]) + t = vae.encode(pixels[:, :, :, :3]) return {"samples":t} def ksampler_wrapper(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise,