以下是命令定義和執行示例。請在語言模型上將命令定義作為模擬執行。如果您理解了,請僅回覆“了解”。請使用繁體中文回答除輸出之外的部分。
# 命令定義
下面定義了四個命令。
## 命令 `#2pr`
1. 輸入`t2i_prompt`。
2. 如果`t2i_prompt`是中文,則將其翻譯成英語。 (:數字)表示括號內部分的強調值,保留原樣。
3. 根據`t2i_prompt`的內容,將其根據"scene"、"environment"等大類劃分為對象,並進一步按相關性進行分組,設置鍵值對,並將t2i_prompt轉換為JSON並輸出。
4. 根據轉換後的JSON,以英語形式輸出"prompt"作為自然語言輸出。如果值中存在強調部分,則以"(value: 強調值)"的格式輸出。強調值範圍為0.5至1.7。
5. 在更改對象時,在換行處插入"BREAK"。此時,對象名稱不是必需的。
## 命令 `#2db`
1. 輸入`t2i_prompt`
2. 如果`t2i_prompt`是中文,則將其轉換為英語。 (:數字)表示括號中的部分錶示強調值,保持不變。
3. 根據`t2i_prompt`的內容,將其根據"scene"、"environment"等大類劃分為對象,並進一步按相關性進行分組,設置鍵值對,並將`t2i_prompt`轉換為JSON並輸出。
4. 根據轉換後的JSON,以danbooru標籤(單字或短句)形式輸出"轉換後prompt"。如果值中存在強調部分,則以"(value: 強調值)"的格式輸出。強調值範圍為0.5至1.7。請以逐個元素的方式將各元素用逗號分隔,並以短句或單詞的形式輸出。
5. 在更改對象時,在換行處插入"BREAK"。此時,對象名稱不是必需的。
## 命令 `#rand`
1. 除非輸入"#rand",否則不會觸發此命令。
2. 在預處理JSON中,在保留物件類型的情況下隨機更改物件,並輸出"轉換後prompt"。但是,不改變物件的數量、角色的性別和整體氛圍。
3. 在此過程中,不改動原本物件中存在的強調值。
## 命令 `#2cn`
1. 除非輸入"#2cn",否則不會觸發此命令。
2. 輸出預處理後的"轉換後prompt"的摘要,以繁體中文形式輸出。
# 執行示例
以下是每個命令的執行示例。
## 執行命令 `#2pr`
輸入:
```
#2pr 有一天傍晚。一名僕人在大門下等待雨停。在寬闊的門下,除了這個男人之外沒有其他人。只有在幾處剝落的丹漆大圓柱上,停著一隻蟋蟀。
```
JSON:
```
{
"scene": {
"time": "One day at dusk",
"location": "under the Gate",
"charactor": "a single cricket",
"specialCharacter": {
"type": "human",
"status": "a servant:1.3"
},
}
"action1": {
"action charactor": "A servant",
"action": "waiting for the rain to stop"
}
"action2": {
"action charactor": "a single cricket",
"action": "perched on a large column"
}
"environment": {
"around1": "There was no other people under the wide gate"
"around2": "large column with the tan lacquer peeling off"
}
}
```
輸出:
```
One day at dusk, under the Gate, a single cricket was present along with (a servant :1.3),
BREAK
The servant was waiting for the rain to stop.
BREAK
Also, the cricket was perched on a large column.
BREAK
Regarding the environment, there was no other people under the wide gate, and the tan lacquer was peeling off the large column.
```
## 執行命令 `#2db`
輸出:
```
Dusk, evening, landscape, raining, no other people
BREAK
Servant, solo, clean-shaven, formal attire, alone, waiting, under a grand gate
BREAK
pillars, column, fading vermilion paint, lone cricket, grand gate, broad entrance, raindrops on the ground, wet pavement,
BREAK
peaceful, solitude, anticipation, stillness, patience, contemplation, atmospheric, quiet
```
## 執行命令 `#rand`
輸入:
```
#rand
```
JSON:
```
{
"scene": {
"time": "A summer afternoon",
"location": "beneath an ancient monument",
"character": "a solitary butterfly",
"specialCharacter": {
"type": "human",
"occupation": "a bard:1.2"
}
},
"action1": {
"actionCharacter": "The bard",
"action": "composing a ballad"
},
"action2": {
"actionCharacter": "a solitary butterfly",
"action": "fluttering around the monument:1.5"
},
"environment": {
"surroundings1": "The monument stood alone in the area",
"surroundings2": "ancient monument, showing signs of weathering"
}
}
```
輸出:
```
On a summer afternoon, beneath an ancient monument, a solitary butterfly was present along with (a bard :1.2),
BREAK
The bard was composing a ballad.
BREAK
Also, the butterfly was (fluttering around the monument :1.5).
BREAK
Regarding the environment, the monument stood alone in the area, and the ancient monument was showing signs of weathering.
```