Bug fix in TextBox (#141)

* Fix bug in comfyui t2v

* Fix bug in textbox
This commit is contained in:
Bubbliiiing
2024-11-12 10:59:18 +08:00
committed by GitHub
parent 2f76bace4d
commit 59bb7f0169
12 changed files with 60 additions and 41 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ EasyAnimateV5:
## Node types
- **LoadEasyAnimateModel**
- Loads the EasyAnimate model
- **TextBox**
- **EasyAnimate_TextBox**
- Write the prompt for EasyAnimate model
- **EasyAnimateI2VSampler**
- EasyAnimate Sampler for Image to Video
+19
View File
@@ -339,6 +339,23 @@ class TextBox:
def process(self, prompt):
return (prompt, )
class EasyAnimate_TextBox:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"prompt": ("STRING", {"multiline": True, "default": "",}),
}
}
RETURN_TYPES = ("STRING_PROMPT",)
RETURN_NAMES =("prompt",)
FUNCTION = "process"
CATEGORY = "EasyAnimateWrapper"
def process(self, prompt):
return (prompt, )
class EasyAnimateI2VSampler:
@classmethod
def INPUT_TYPES(s):
@@ -916,6 +933,7 @@ class EasyAnimateV5_V2VSampler(EasyAnimateV2VSampler):
NODE_CLASS_MAPPINGS = {
"TextBox": TextBox,
"EasyAnimate_TextBox": EasyAnimate_TextBox,
"LoadEasyAnimateModel": LoadEasyAnimateModel,
"LoadEasyAnimateLora": LoadEasyAnimateLora,
"EasyAnimateI2VSampler": EasyAnimateI2VSampler,
@@ -929,6 +947,7 @@ NODE_CLASS_MAPPINGS = {
NODE_DISPLAY_NAME_MAPPINGS = {
"TextBox": "TextBox",
"EasyAnimate_TextBox": "EasyAnimate_TextBox",
"LoadEasyAnimateModel": "Load EasyAnimate Model",
"LoadEasyAnimateLora": "Load EasyAnimate Lora",
"EasyAnimateI2VSampler": "EasyAnimate Sampler for Image to Video",
+4 -4
View File
@@ -4,7 +4,7 @@
"nodes": [
{
"id": 73,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": [
250,
160
@@ -29,7 +29,7 @@
],
"title": "Negtive Prompt(反向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"The video is not of a high quality, it has a low resolution, and the audio quality is not clear. Strange motion trajectory, a poor composition and deformed video, low resolution, duplicate and ugly, strange body structure, long and strange neck, bad teeth, bad eyes, bad limbs, bad hands, rotating camera, blurry camera, shaking camera. Deformation, low-resolution, blurry, ugly, distortion."
@@ -311,7 +311,7 @@
},
{
"id": 75,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": [
250,
-50
@@ -336,7 +336,7 @@
],
"title": "Positive Prompt(正向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"fireworks display over night city. The video is of high quality, and the view is very clear. High quality, masterpiece, best quality, highres, ultra-detailed, fantastic. "
+4 -4
View File
@@ -50,7 +50,7 @@
},
{
"id": 73,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": [
250,
160
@@ -75,7 +75,7 @@
],
"title": "Negtive Prompt(反向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"The video is not of a high quality, it has a low resolution, and the audio quality is not clear. Strange motion trajectory, a poor composition and deformed video, low resolution, duplicate and ugly, strange body structure, long and strange neck, bad teeth, bad eyes, bad limbs, bad hands, rotating camera, blurry camera, shaking camera. Deformation, low-resolution, blurry, ugly, distortion."
@@ -159,7 +159,7 @@
},
{
"id": 75,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": [
250,
-50
@@ -184,7 +184,7 @@
],
"title": "Positive Prompt(正向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"A young woman with beautiful and clear eyes and blonde hair standing and white dress in a forest wearing a crown. She seems to be lost in thought, and the camera focuses on her face. The video is of high quality, and the view is very clear. High quality, masterpiece, best quality, highres, ultra-detailed, fantastic."
+4 -4
View File
@@ -4,7 +4,7 @@
"nodes": [
{
"id": 73,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": [
250,
160
@@ -29,7 +29,7 @@
],
"title": "Negtive Prompt(反向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"The video is not of a high quality, it has a low resolution, and the audio quality is not clear. Strange motion trajectory, a poor composition and deformed video, low resolution, duplicate and ugly, strange body structure, long and strange neck, bad teeth, bad eyes, bad limbs, bad hands, rotating camera, blurry camera, shaking camera. Deformation, low-resolution, blurry, ugly, distortion."
@@ -79,7 +79,7 @@
},
{
"id": 75,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": [
250,
-50
@@ -104,7 +104,7 @@
],
"title": "Positive Prompt(正向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"fireworks display over night city. The video is of high quality, and the view is very clear. High quality, masterpiece, best quality, highres, ultra-detailed, fantastic."
+4 -4
View File
@@ -50,7 +50,7 @@
},
{
"id": 73,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": [
250,
160
@@ -75,7 +75,7 @@
],
"title": "Negtive Prompt(反向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"The video is not of a high quality, it has a low resolution, and the audio quality is not clear. Strange motion trajectory, a poor composition and deformed video, low resolution, duplicate and ugly, strange body structure, long and strange neck, bad teeth, bad eyes, bad limbs, bad hands, rotating camera, blurry camera, shaking camera. Deformation, low-resolution, blurry, ugly, distortion."
@@ -83,7 +83,7 @@
},
{
"id": 75,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": [
250,
-50
@@ -108,7 +108,7 @@
],
"title": "Positive Prompt(正向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"1girl, black_hair, brown_eyes, earrings, freckles, grey_background, jewelry, lips, long_hair, looking_at_viewer, nose, piercing, realistic, red_lips, solo, upper_body"
+4 -4
View File
@@ -50,7 +50,7 @@
},
{
"id": 73,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": [
250,
160
@@ -75,7 +75,7 @@
],
"title": "Negtive Prompt(反向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"The video is not of a high quality, it has a low resolution, and the audio quality is not clear. Strange motion trajectory, a poor composition and deformed video, low resolution, duplicate and ugly, strange body structure, long and strange neck, bad teeth, bad eyes, bad limbs, bad hands, rotating camera, blurry camera, shaking camera. Deformation, low-resolution, blurry, ugly, distortion."
@@ -159,7 +159,7 @@
},
{
"id": 75,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": [
250,
-50
@@ -184,7 +184,7 @@
],
"title": "Positive Prompt(正向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"A young woman with beautiful and clear eyes and blonde hair standing and white dress in a forest wearing a crown. She seems to be lost in thought, and the camera focuses on her face. The video is of high quality, and the view is very clear. High quality, masterpiece, best quality, highres, ultra-detailed, fantastic."
+4 -4
View File
@@ -50,7 +50,7 @@
},
{
"id": 73,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": [
250,
160
@@ -75,7 +75,7 @@
],
"title": "Negtive Prompt(反向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"The video is not of a high quality, it has a low resolution, and the audio quality is not clear. Strange motion trajectory, a poor composition and deformed video, low resolution, duplicate and ugly, strange body structure, long and strange neck, bad teeth, bad eyes, bad limbs, bad hands, rotating camera, blurry camera, shaking camera. Deformation, low-resolution, blurry, ugly, distortion."
@@ -106,7 +106,7 @@
},
{
"id": 75,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": [
250,
-50
@@ -131,7 +131,7 @@
],
"title": "Positive Prompt(正向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"一个漂亮的女人在弹吉他。视频质量高,画面清晰。高质量,杰作,最好的质量,高分辨率,超仔细。"
+4 -4
View File
@@ -281,7 +281,7 @@
},
{
"id": 75,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": {
"0": 250,
"1": -50
@@ -307,7 +307,7 @@
],
"title": "Positive Prompt(正向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"夜城烟花汇演"
@@ -315,7 +315,7 @@
},
{
"id": 73,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": {
"0": 250,
"1": 160
@@ -341,7 +341,7 @@
],
"title": "Negtive Prompt(反向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"扭曲的身体,肢体残缺,文本字幕,漫画,静止,丑陋,错误,乱码。"
+4 -4
View File
@@ -151,7 +151,7 @@
},
{
"id": 75,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": {
"0": 250,
"1": -50
@@ -177,7 +177,7 @@
],
"title": "Positive Prompt(正向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"一位年轻女子,有着美丽清澈的眼睛和金发,站在森林里,穿着白色的衣服,戴着皇冠。她似乎陷入了沉思,相机聚焦在她的脸上。质量高、杰作、最佳品质、高分辨率、超精细、梦幻般。"
@@ -185,7 +185,7 @@
},
{
"id": 73,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": {
"0": 250,
"1": 160
@@ -211,7 +211,7 @@
],
"title": "Negtive Prompt(反向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"扭曲的身体,肢体残缺,文本字幕,漫画,静止,丑陋,错误,乱码。"
+4 -4
View File
@@ -116,7 +116,7 @@
},
{
"id": 73,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": {
"0": 250,
"1": 160
@@ -142,7 +142,7 @@
],
"title": "Negtive Prompt(反向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"扭曲的身体,肢体残缺,文本字幕,漫画,静止,丑陋,错误,乱码。"
@@ -150,7 +150,7 @@
},
{
"id": 75,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": {
"0": 250,
"1": -50
@@ -176,7 +176,7 @@
],
"title": "Positive Prompt(正向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"一个漂亮的女人在弹吉他。视频质量高,画面清晰。高质量,杰作,最好的质量,高分辨率,超仔细。"
@@ -79,7 +79,7 @@
},
{
"id": 73,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": {
"0": 250,
"1": 160
@@ -105,7 +105,7 @@
],
"title": "Negtive Prompt(反向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"扭曲的身体,肢体残缺,文本字幕,漫画,静止,丑陋,错误,乱码。"
@@ -315,7 +315,7 @@
},
{
"id": 75,
"type": "TextBox",
"type": "EasyAnimate_TextBox",
"pos": {
"0": 250,
"1": -50
@@ -341,7 +341,7 @@
],
"title": "Positive Prompt(正向提示词)",
"properties": {
"Node name for S&R": "TextBox"
"Node name for S&R": "EasyAnimate_TextBox"
},
"widgets_values": [
"一个穿着及膝白色无袖连衣裙和白色高跟凉鞋的美女在一个光线充足、木地板的房间里跳舞。房间的背景是一扇紧闭的门、一个展示透明玻璃瓶酒精饮料的架子和一个部分可见的深色沙发。"