Commit e32979e9 authored by 周成波's avatar 周成波

增加是否需要字幕

parent 20d1cf3d
......@@ -18,6 +18,9 @@ declare module 'vue' {
ElImage: typeof import('element-plus/es')['ElImage']
ElInput: typeof import('element-plus/es')['ElInput']
ElOption: typeof import('element-plus/es')['ElOption']
ElRadio: typeof import('element-plus/es')['ElRadio']
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
......
......@@ -30,11 +30,11 @@ export default {
img_idx: string = "",
prompt: string = "",
negative_prompt: string = "",
width: string = "960",
height: string = "512",
sampler_index: string = "DPM++ 2M Karras",
seed: string = "-1",
steps: string = "25",
width: string = "960",
height: string = "512",
cfg_scale: string = "9",
): Promise<{"domain_image_path": string, "local_image_path": string}> {
if (!prompt) {
......
import { ref } from 'vue'
export const useManyValues = () => {
const screen = "竖屏";
const if_need_subtitle = "false";
const sd_prompt_prefix = `best quality,masterpiece,realistic,HDR,UHD,8K,best quality,highres,absurdres,realistic,masterpiece,
Highly detailed,extreme detail description,Professional,cinematic_lighting,ultra-fine painting,full body,Vivid Colors,
physically-based rendering,cinematic,`;
const sd_negative_prompt_prefix = `multiple breasts, (mutated hands and fingers:1.5 ), (long body :1.3),
(mutation, poorly drawn :1.2) , black-white, bad anatomy, liquid body, liquid tongue, disfigured,
malformed, mutated, anatomical nonsense, malformed hands, long neck, blurred,
lowers, bad proportions, bad shadow, uncoordinated body, unnatural body, fused breasts,
bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts, heavy breasts, missing breasts,
huge haunch, huge thighs, huge calf, bad hands, fused hand, missing hand, disappearing arms, disappearing thigh,
disappearing calf, disappearing legs, fused ears, bad ears, poorly drawn ears, extra ears, liquid ears, heavy ears,
missing ears, fused animal ears, bad animal ears, poorly drawn animal ears, extra animal ears, liquid animal ears,
heavy animal ears, missing animal ears, text, ui, error, missing fingers, missing limb, fused fingers,
one hand with more than 5 fingers, one hand with less than 5 fingers, one hand with more than 5 digit,
one hand with less than 5 digit, extra digit, fewer digits, fused digit, missing digit, bad digit, liquid digit,
colorful tongue, black tongue, cropped, watermark, username, blurry, JPEG artifacts, signature, 3D, 3D game,
3D game scene, 3D character, malformed feet, extra feet, bad feet, poorly drawn feet, fused feet, missing feet,
extra shoes, bad shoes, fused shoes, more than two shoes, poorly drawn shoes, bad gloves, poorly drawn gloves,
fused gloves, bad cum, poorly drawn cum, fused cum, bad hairs, poorly drawn hairs, fused hairs, big muscles, ugly,
bad face, fused face, poorly drawn face, cloned face, big face, long face, bad eyes, fused eyes poorly drawn eyes,
extra eyes, malformed limbs, more than 2 nipples, missing nipples, different nipples, fused nipples, bad nipples,
poorly drawn nipples, black nipples, colorful nipples, gross proportions. short arm, (((missing arms))), missing thighs,
missing calf, missing legs, mutation, duplicate, morbid, mutilated, poorly drawn hands, more than 1 left hand,
more than 1 right hand, deformed, (blurry), disfigured, missing legs, extra arms, extra thighs, more than 2 thighs,
extra calf, fused calf, nsfw,logo,text,extra legs, bad knee, extra knee, more than 2 legs, bad tails, bad mouth,
fused mouth, poorly drawn mouth, bad tongue, tongue within mouth, too long tongue, black tongue, big mouth, cracked mouth,
bad mouth, dirty face, dirty teeth, dirty pantie, fused pantie, poorly drawn pantie, fused cloth, poorly drawn cloth, bad pantie,
yellow teeth, thick lips, bad cameltoe, colorful cameltoe, bad asshole, poorly drawn asshole, fused asshole, missing asshole,
bad anus, bad pussy, bad crotch, bad crotch seam, fused anus, fused pussy, fused anus, fused crotch, poorly drawn crotch,
fused seam, poorly drawn anus, poorly drawn pussy, poorly drawn crotch, poorly drawn crotch seam, bad thigh gap, missing thigh gap,
fused thigh gap, liquid thigh gap, poorly drawn thigh gap, poorly drawn anus, bad collarbone, fused collarbone, missing collarbone,
liquid collarbone, obesity, worst quality, low quality, normal quality, liquid tentacles, bad tentacles, poorly drawn tentacles,
split tentacles, fused tentacles, missing clit, bad clit, fused clit, colorful clit, black clit, liquid clit, QR code, bar code, censored,
safety panties, safety knickers, beard, furry ,pony, pubic hair, mosaic, excrement, faeces, shit, futa, testis,mutated hands and fingers,
deformed,bad anatomy,disfigured,poorly drawn face,lowres,mutated,extra limb,ugly,poorly drawn hands,missing limb,floating limbs,
disconnected limbs,malformed hands,out of focus,long neck,long body,gape,`;
const horizontal_data = {
task_id: "20240209114425596",
chatgpt_prompt: `生成一个100字的小故事`,
chatgpt_answer: `从前有一个小男孩名叫小明,他非常喜欢冒险和探险。一天,他听说镇上的老教堂有一个传说中的宝藏。于是,小明决定前往探寻宝藏的秘密。他兴奋地穿过了一个森林,越过了一条湍急的河流,终于来到了老教堂的门前。教堂里昏暗而阴森,小明开始在各个角落寻找宝藏。他翻遍了教堂的每一个房间,甚至爬上了教堂的钟楼,但是却没有找到宝藏的踪迹。慢慢地,小明感到失望和沮丧。正当他准备离开时,他发现了一个看似普通的石头。他突然有了一种直觉,将石头掀开,竟然发现了一道秘密通道!小明毫不犹豫地走了进去,迎接他的是散发着金光的宝藏。小明高兴地抱起宝藏,回到家中。从那天起,他决定要成为一个伟大的探险家,为世界带来更多的惊喜和宝藏。`,
adapt_result_json: [
{
"编号": "1",
"场景描述": "从前有一个小男孩名叫小明,他非常喜欢冒险和探险",
"场景关键词": "小男孩,冒险,探险",
"角色": "小明",
"角色关键词": "男性,年轻,普通衣服,普通发型,正常肤色,兴奋的情绪,活力的体态",
"画面描述词": "Once upon a time, there was a young boy named Xiaoming. He had a burning passion for adventure and exploration, always longing to embark on thrilling quests. Xiaoming was an ordinary boy, with a lively spirit and a sense of excitement that radiated from him. He had a typical appearance, with a youthful face, regular clothes, and a simple hairstyle. His skin had a normal complexion, and he exuded a vibrant energy in his every movement. Xiaoming's heart was constantly brimming with curiosity and eagerness to discover the unknown, making him a true adventurer at heart.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/1.png?v=20240209114451753",
"local_image_path": "assets/outputs/20240209114425596/img/1.png"
},
{
"编号": "2",
"场景描述": "一天,他听说镇上的老教堂有一个传说中的宝藏",
"场景关键词": "镇上,老教堂,宝藏",
"角色": "小明",
"角色关键词": "男孩,小明",
"画面描述词": "One day, he heard about a legendary treasure hidden in the old church in town. Excitement filled his heart as he imagined the possibilities. Determined to uncover the truth, young boy named Xiao Ming embarked on an adventure that would take him to the heart of the town. The old church stood tall, its weathered stones whispering stories of centuries past. Inside, he could feel the ancient aura beckoning him further, as if guiding him towards the secrets that lay within. With each step, the anticipation grew, and the flickering light from his flashlight danced on the walls, casting eerie shadows. The air was heavy with anticipation, as Xiao Ming's heart raced with both thrill and uncertainty. Little did he know, this quest for the treasure would not only test his courage, but also reveal the true essence of his spirit.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/2.png?v=20240209114500766",
"local_image_path": "assets/outputs/20240209114425596/img/2.png"
},
{
"编号": "3",
"场景描述": "于是,小明决定前往探寻宝藏的秘密",
"场景关键词": "小男孩,冒险,探险,老教堂,宝藏,森林,河流,教堂房间,钟楼,石头,秘密通道",
"角色": "小明",
"角色关键词": "男性,年轻,普通衣服,普通发型,普通脸色,兴奋,失望,沮丧,高兴,抱起宝藏",
"画面描述词": "So, the young boy named Xiao Ming decided to embark on an adventure and explore the secrets of the treasure. With excitement shining in his eyes, he made his way towards the ancient old church, where rumors claimed the treasure was hidden. As he ventured into the mysterious forest surrounding the church, he could hear the sound of a gentle river flowing nearby. The atmosphere was filled with a sense of anticipation as Xiao Ming entered the dimly lit church room, with sunlight streaming through stained glass windows. His heart skipped a beat as he noticed a peculiar stone embedded in the wall. With curiosity overwhelming his senses, he gingerly pushed the stone, and to his amazement, a secret passage opened right before him. Determined to unravel the mystery, he cautiously descended into the hidden tunnel. The passage led him to a narrow staircase that spiraled upwards, eventually revealing the grand clock tower. As he climbed higher, the air became thinner, but his determination grew stronger. Finally, Xiao Ming reached the top, where he discovered the long-lost treasure sparkling brightly in a hidden corner. Overwhelmed with joy, he couldn't help but hold the treasure close to his heart, savoring the triumphant moment. The young boy's face beamed with happiness, as he knew he had successfully unraveled the secret and achieved his adventure of a lifetime.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/3.png?v=20240209114518942",
"local_image_path": "assets/outputs/20240209114425596/img/3.png"
},
{
"编号": "4",
"场景描述": "他兴奋地穿过了一个森林,越过了一条湍急的河流,终于来到了老教堂的门前",
"场景关键词": "森林,河流,教堂",
"角色": "小明",
"角色关键词": "男孩,年轻,兴奋,穿过,越过,来到,失望,沮丧",
"画面描述词": "Excited and full of youthful energy, a young boy named Xiao Ming journeyed through a dense forest, his heart beating with anticipation. The towering trees whispered secrets to him as he weaved through their branches, admiring the sunlight that filtered through the emerald canopy. With each step, his excitement grew, urging him forward. As the forest thinned, a roaring river came into view, its turbulent waters crashing against the rugged rocks that lined its banks. Determined, Xiao Ming carefully traversed the treacherous path that awaited him, stepping cautiously on each moss-covered stone. The sound of rushing water filled his ears, but he pressed on with unwavering determination, his heart set on reaching his destination. After what felt like an eternity, he finally arrived at the ancient doorstep of the old church. With a mixture of relief and awe, he gazed up at the weathered stone walls and towering spires that reached towards the heavens. The weight of his journey, the thrill of his adventure, was palpable in his vibrant eyes. However, as the doors creaked open, Xiao Ming's excitement turned to disappointment and sadness. The once magnificent interior of the church now lay in ruins, its walls crumbling and its stained glass windows shattered. Echoes of a forgotten past reverberated through the empty space, leaving him feeling disheartened. But even in the face of disappointment, Xiao Ming's spirit refused to be dampened. In the ruins of the church, he saw the potential for a new beginning, a chance to rebuild and restore the lost glory. With renewed determination, he vowed to bring life back to this forgotten place, a beacon of hope amidst the surrounding beauty of the forest and the relentless river that had guided him here.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/4.png?v=20240209114523621",
"local_image_path": "assets/outputs/20240209114425596/img/4.png"
},
{
"编号": "5",
"场景描述": "教堂里昏暗而阴森,小明开始在各个角落寻找宝藏",
"场景关键词": "昏暗,阴森",
"角色": "小明",
"角色关键词": "年龄:小,情绪:兴奋,肢体动作:翻找",
"画面描述词": "In the dim and eerie atmosphere of the church, a sense of mystery lingers. With every step, the young boy named Xiao Ming can feel his excitement growing. Determined to find the hidden treasure, he scours each corner of the eerie space. His small figure blends with the shadows as he feverishly rummages through the darkness, hoping to uncover the secrets that lay concealed.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/5.png?v=20240209114442786",
"local_image_path": "assets/outputs/20240209114425596/img/5.png"
},
{
"编号": "6",
"场景描述": "他翻遍了教堂的每一个房间,甚至爬上了教堂的钟楼,但是却没有找到宝藏的踪迹",
"场景关键词": "教堂,房间,钟楼",
"角色": "小明",
"角色关键词": "男孩,年轻,兴奋,失望,沮丧",
"画面描述词": "He was a young boy named Xiao Ming, full of excitement and curiosity, embarking on a quest to find a hidden treasure within the walls of an ancient church. With each step he took, his anticipation grew, fueled by the stories of glorious riches that whispered through the town. Little did he know that this adventure would test his determination. He ventured through every room of the church, carefully inspecting every nook and cranny, searching for any traces of the elusive treasure. The atmosphere within the sacred halls was filled with an air of quiet reverence, but his enthusiasm remained unyielding. He climbed up the spiraling staircase of the church's bell tower, hoping to catch a glimpse of the treasure from high above. However, as he reached the top, his hopeful expression gradually transformed into disappointment. The room was empty, devoid of any signs of the hidden treasure. His once-energetic spirit turned into a heavy burden of sadness and frustration. He had explored every inch of the church, diligently seeking the treasure, but it seemed to have eluded him. As he made his way down from the lofty heights of the bell tower, he couldn't help but feel a sense of defeat. The dream of discovering untold wealth within this sacred sanctuary had slipped through his fingers. With a heavy heart, Xiao Ming slowly made his way out, his hopes shattered, but with the knowledge that he had given his all in search of that elusive treasure.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/6.png?v=20240209114514380",
"local_image_path": "assets/outputs/20240209114425596/img/6.png"
},
{
"编号": "7",
"场景描述": "慢慢地,小明感到失望和沮丧",
"场景关键词": "教堂,昏暗,阴森,房间,钟楼,失望,沮丧",
"角色": "小明",
"角色关键词": "男孩,年轻,失望,沮丧",
"画面描述词": "Slowly, a sense of disappointment and dejection enveloped young Xiaoming as he stepped into the dimly lit and somber church. The atmosphere in the room felt heavy, adding to his already crestfallen state. As he looked around, his gaze settled on the tall, gloomy clock tower, standing tall and motionless. It symbolized the passage of time - a reminder of his dashed hopes and unmet expectations. Xiaoming, a disheartened and dispirited boy, couldn't help but sink deeper into sadness in this eerie setting.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/7.png?v=20240209114509760",
"local_image_path": "assets/outputs/20240209114425596/img/7.png"
},
{
"编号": "8",
"场景描述": "正当他准备离开时,他发现了一个看似普通的石头",
"场景关键词": "教堂门前,昏暗,阴森,看似普通的石头,秘密通道",
"角色": "小明",
"角色关键词": "男孩,年轻,兴奋,失望,沮丧,高兴",
"画面描述词": "As he was about to leave, he noticed a seemingly ordinary stone in front of the church. The atmosphere around the entrance was dim and eerie, giving the surroundings an ominous feeling. Intrigued, the young boy named Xiao Ming couldn't help but feel excited. He hesitated for a moment, contemplating whether to investigate further. With a mix of anticipation and disappointment, he reached down for the stone, hoping it would reveal some hidden secret or lead to an adventure. As he picked it up, a sudden realization dawned upon him – this innocuous-looking stone might just be the key to a secret passageway, shrouded in mystery. A wave of happiness washed over him, replacing his initial disappointment, as he eagerly began to examine it, eager to unlock the secrets that awaited him.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/8.png?v=20240209114532839",
"local_image_path": "assets/outputs/20240209114425596/img/8.png"
},
{
"编号": "9",
"场景描述": "他突然有了一种直觉,将石头掀开,竟然发现了一道秘密通道",
"场景关键词": "石头,秘密通道",
"角色": "小明",
"角色关键词": "男孩,年轻,兴奋,失望,沮丧,高兴",
"画面描述词": "Suddenly, a wave of intuition washed over him as he stood before a large, unassuming stone. Without a second thought, the young boy named Xiaoming decided to tilt the stone aside, revealing a hidden passageway concealed beneath it. Excitement coursed through his veins as he realized that he had stumbled upon a secret passage. However, as he stepped into the dimly lit tunnel, his enthusiasm quickly waned. The corridor appeared to stretch endlessly in front of him, daunting and overwhelming. Disappointment crept into his previously exuberant heart, dampening his spirits. Yet, he couldn't help but feel a glimmer of hope flicker within him. With determination in his eyes, Xiaoming chose to embrace the unexpected twist. Overcoming his initial despondence, he transformed his disappointment into an opportunity for adventure. With renewed excitement, he embarked on his journey, eager to unravel the mysteries that awaited him within the secret passage.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/9.png?v=20240209114537246",
"local_image_path": "assets/outputs/20240209114425596/img/9.png"
},
{
"编号": "10",
"场景描述": "小明毫不犹豫地走了进去,迎接他的是散发着金光的宝藏",
"场景关键词": "昏暗,阴森,金光",
"角色": "小明,宝藏",
"角色关键词": "小明:年龄,男性,兴奋,失望,沮丧,高兴,抱起;宝藏:散发金光",
"画面描述词": "Without hesitation, Xiao Ming walked into the room. The atmosphere was dim and ominous, with an eerie silence hanging in the air. However, his excitement outweighed any feelings of apprehension as he entered further. Suddenly, his eyes caught a glimpse of something extraordinary. There, in the center of the room, lay a treasure chest gleaming with radiant golden light. Xiao Ming's heart raced with a mixture of joy and anticipation as he approached the treasure. With a surge of emotions, he couldn't help but feel a sense of disappointment and frustration washing over him, as he realized that the chest was locked. Determined not to let his spirits dampen, Xiao Ming's disappointment quickly turned into determination. He eagerly searched for a key, and when he finally found it, a triumphant smile crept onto his face. He picked up the treasure chest, cherishing the weight of his discovery in his arms.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/10.png?v=20240209114546240",
"local_image_path": "assets/outputs/20240209114425596/img/10.png"
},
{
"编号": "11",
"场景描述": "小明高兴地抱起宝藏,回到家中",
"场景关键词": "家中",
"角色": "小明",
"角色关键词": "年龄: 小男孩, 情绪: 高兴, 肢体动作: 抱起宝藏",
"画面描述词": "Little Ming happily picked up the treasure and made his way back to his cozy home. With a gleeful smile on his face, the young boy embraced the long-awaited discovery. In the comfort of his familiar surroundings, he savored the feeling of triumph and contentment that filled his heart. The essence of joy radiated from him as he crossed the threshold, his excitement palpable in every step. The treasure sat snugly in his arms, cherished and treasured, as he eagerly anticipated the thrill of unveiling its secrets in the warmth and comfort of his home.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/11.png?v=20240209114555193",
"local_image_path": "assets/outputs/20240209114425596/img/11.png"
},
{
"编号": "12",
"场景描述": "从那天起,他决定要成为一个伟大的探险家,为世界带来更多的惊喜和宝藏",
"场景关键词": "教堂,宝藏,探险家",
"角色": "小明",
"角色关键词": "男孩,冒险,探险",
"画面描述词": "From that day on, he made a decision to become a great explorer, bringing more surprises and treasures to the world. His name was Xiaoming, a brave young boy with a thirst for adventure. His passion ignited when he stumbled upon an old church, mysteriously guarded by centuries-old relics. Inspired by the mysteries hidden within its walls, he vowed to embark on a journey as a fearless explorer. Equipped with a trusty map and a heart full of determination, Xiaoming set off in search of untold wonders and hidden treasures waiting to be discovered. His dream was to leave an indelible mark on the world, leaving behind a legacy of awe-inspiring tales for generations to come.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/12.png?v=20240209114604149",
"local_image_path": "assets/outputs/20240209114425596/img/12.png"
}
],
final_video: "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/final_video.mp4",
};
const vertical_data = {
task_id: "20240216181518705",
chatgpt_prompt: `生成一个100字的小故事`,
chatgpt_answer: `从前有一个叫小明的男孩,他非常喜欢动物。他家附近有一个小公园,那里有各种各样的动物。小明每天放学后都会去公园看动物,有时候还会和它们互动。他最喜欢的是一只叫小乖的小狗。每次小明去公园,小乖总是迎接他的到来,它用尾巴摇摆着示意小明过去玩耍。小明和小乖玩得非常开心,他们一起追逐、玩耍,仿佛成了最好的朋友。有一天,小明发现小乖不见了。他非常担心,到处寻找,却找不到小乖的踪影。他整夜没睡,很担心他的好朋友。第二天清晨,小明突然被一阵狗叫声吵醒。他赶紧跑到窗户前,发现小乖在外面叫着喊着。小明兴奋地穿上衣服,冲出家门,抱住小乖。原来小乖走失了,被一个好心的阿姨捡到并带回了家。小乖想着主人的样子,一路才能找到小明。小明感到非常高兴,他对小乖说:“以后我们要互相照顾,不再分开。”从那天起,小乖成为了小明最忠实的伙伴,他们在一起经历了许多快乐的时光。`,
adapt_result_json: [
{
"编号": "1",
"场景描述": "从前有一个叫小明的男孩,他非常喜欢动物",
"场景关键词": "从前,男孩,喜欢动物",
"角色": "小明",
"角色关键词": "男孩",
"画面描述词": "Once upon a time, there was a young boy named Xiao Ming, who had a deep passion for animals. He spent most of his days surrounded by various creatures, learning about their behaviors and habits. Xiao Ming's love for animals was evident in the way he always eagerly sought opportunities to interact with them. Whether it was visiting the local zoo, watching wildlife documentaries, or simply observing birds in his backyard, he couldn't get enough of the fascinating world of animals. Xiao Ming's gentle nature and genuine interest in animal welfare earned him the reputation of being a kind-hearted animal lover among his friends and family. His dream was to one day dedicate his life to protect and care for these beautiful creatures.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/1.png?v=20240216181549815",
"local_image_path": "assets/outputs/20240216181518705/img/1.png"
},
{
"编号": "2",
"场景描述": "他家附近有一个小公园,那里有各种各样的动物",
"场景关键词": "小公园,动物",
"角色": "小明,小乖",
"角色关键词": "小明:男孩,年龄较小,普通肤色,校服,普通发型,黑发色,紧张的脸色,好奇的五官特点,活泼的体态,担心的情绪,迎接的肢体动作;小乖:小狗,无性别,毛色不详,小巧的体态,亲切的情绪,摇摆尾巴的肢体动作",
"画面描述词": "There is a small park near his house, which is home to a variety of animals. One sunny day, as little Ming walked towards the park in his school uniform, his young face was filled with both nervousness and curiosity. His black hair was neatly combed and his lively body language showed his excitement. As he reached the entrance, he noticed a small dog named Little Waggie, wagging its tail and approaching him affectionately. Little Waggie had a mysterious fur color, and its petite body size made it look even cuter. It emitted a friendly and welcoming vibe. In this small park filled with various animals, Little Ming and Little Waggie were about to embark on an adventure together.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/2.png?v=20240216181627543",
"local_image_path": "assets/outputs/20240216181518705/img/2.png"
},
{
"编号": "3",
"场景描述": "小明每天放学后都会去公园看动物,有时候还会和它们互动",
"场景关键词": "放学后, 公园, 动物, 互动",
"角色": "小明",
"角色关键词": "男孩, 年龄: 小, 肤色: 未提及, 衣服: 未提及, 发型: 未提及, 发色: 未提及, 脸色: 未提及, 五官特点: 未提及, 体态: 未提及, 情绪: 兴奋, 肢体动作:未提及",
"画面描述词": "Every day after school, little Ming goes to the park to watch the animals. Sometimes, he even interacts with them. Little Ming is a young boy who is full of excitement when he sees the animals. He doesn't mention his skin color, clothes, hairstyle, hair color, facial expressions, facial features, body posture, or specific body actions.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/3.png?v=20240216181559204",
"local_image_path": "assets/outputs/20240216181518705/img/3.png"
},
{
"编号": "4",
"场景描述": "他最喜欢的是一只叫小乖的小狗",
"场景关键词": "小公园,动物,尾巴摇摆,玩耍",
"角色": "小明,小乖",
"角色关键词": "男孩,动物喜爱者,尾巴摇摆示意,追逐,玩耍,担心,好朋友",
"画面描述词": "His favorite thing in the world was a small dog named Xiao Guai. Xiao Guai was a playful and energetic pup that always loved going to the nearby small park. It was a peaceful place where he could run freely and meet other animals. Whenever he saw Xiao Guai, his tail would wag vigorously, expressing his excitement. One sunny day, Xiao Ming, a young boy who had a deep love for animals, decided to take Xiao Guai to the small park. As soon as they arrived, Xiao Guai's tail started wagging in anticipation. The two friends spent the whole afternoon playing and chasing each other around. It was a heartwarming sight to see the joy they shared. However, in the midst of their fun, Xiao Ming noticed that Xiao Guai seemed a bit tired and worried. He immediately stopped and carefully observed his furry companion. Worried that something might be wrong, Xiao Ming gently approached Xiao Guai and asked if he was feeling okay. Xiao Guai, with his tail still wagging, assured his friend that he was just a little tired from all the playing. Relieved by Xiao Guai's response, Xiao Ming sat down beside him, and they both enjoyed the serenity of the small park. The bond between this little boy and his furry friend grew stronger with each passing day. Xiao Ming cherished their time together in the small park, watching Xiao Guai's tail wagging with delight as they played and explored their surroundings. They truly were the best of friends.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/4.png?v=20240216181646796",
"local_image_path": "assets/outputs/20240216181518705/img/4.png"
},
{
"编号": "5",
"场景描述": "每次小明去公园,小乖总是迎接他的到来,它用尾巴摇摆着示意小明过去玩耍",
"场景关键词": "公园,尾巴摇摆",
"角色": "小明,小乖",
"角色关键词": "小明:男孩,年龄不详,衣服不详,发型不详,发色不详,脸色不详,五官特点不详,体态不详,情绪开心,肢体动作不详; 小乖:小狗,年龄不详,肤色不详,衣服不详,发型不详,发色不详,脸色不详,五官特点不详,体态不详,情绪开心,肢体动作摇摆尾巴",
"画面描述词": "Every time when Xiao Ming goes to the park, Xiao Guai always greets his arrival. With its tail wagging, it signals Xiao Ming to come and play. Xiao Ming, a boy whose age, clothes, hairstyle, hair color, face expression, facial features, body posture, and limb movements are unspecified, feels happy in his emotions. On the other hand, Xiao Guai, a small dog whose age, skin color, clothes, hairstyle, hair color, face expression, facial features, body posture, and limb movements are unspecified, shows its happiness by wagging its tail.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/5.png?v=20240216181613343",
"local_image_path": "assets/outputs/20240216181518705/img/5.png"
},
{
"编号": "6",
"场景描述": "小明和小乖玩得非常开心,他们一起追逐、玩耍,仿佛成了最好的朋友",
"场景关键词": "公园,追逐,玩耍,最好的朋友",
"角色": "小明,小乖",
"角色关键词": "男孩,小狗",
"画面描述词": "Little Ming and Little Guai were having a blast at the park. They were running after each other, chasing and playing, as if they were the best of friends. Little Ming, a young boy, and Little Guai, a little dog, were enjoying their time together to the fullest.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/6.png?v=20240216181540297",
"local_image_path": "assets/outputs/20240216181518705/img/6.png"
},
{
"编号": "7",
"场景描述": "有一天,小明发现小乖不见了",
"场景关键词": "找不见,担心,寻找,清晨,窗户前,狗叫声,家门,捡到,找回来,高兴,互相照顾",
"角色": "小明,小乖,阿姨",
"角色关键词": "男孩,男孩,女性,担心,兴奋,高兴,外貌,主人,一路才能找到",
"画面描述词": "One day, little Ming woke up in the early morning and noticed that his beloved dog, Xiao Guai, was nowhere to be found. He began to feel worried and immediately started searching for him. He went outside and stood in front of the window, hoping to catch a glimpse of Xiao Guai. Suddenly, he heard a dog barking nearby. Excitedly, he rushed towards the sound and arrived at the front gate of his house. To his relief, he saw Auntie standing there, holding Xiao Guai in her arms. Little Ming's face lit up with joy. It turned out that Auntie had found Xiao Guai wandering outside and brought him back home. Little Ming thanked Auntie profusely and hugged Xiao Guai tightly. He was immensely relieved to have found his furry friend. From that day onward, they took care of each other even more, realizing the true value of their bond. Both of them knew that they couldn't survive without one another and that they would always be there for each other, through thick and thin.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/7.png?v=20240216181710358",
"local_image_path": "assets/outputs/20240216181518705/img/7.png"
},
{
"编号": "8",
"场景描述": "他非常担心,到处寻找,却找不到小乖的踪影",
"场景关键词": "担心,寻找",
"角色": "小明",
"角色关键词": "男孩,年龄:12岁,衣服:校服,发型:短发,脸色:焦虑,情绪:担心,肢体动作:匆忙地四处寻找",
"画面描述词": "He was extremely worried, searching everywhere, but couldn't find any trace of Little Guai. The boy named Xiaoming, who was 12 years old, wore his school uniform with short hair. His face was filled with anxiety as he hurriedly looked around, desperately trying to find Little Guai.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/8.png?v=20240216181608615",
"local_image_path": "assets/outputs/20240216181518705/img/8.png"
},
{
"编号": "9",
"场景描述": "他整夜没睡,很担心他的好朋友",
"场景关键词": "晚上,担心",
"角色": "小明",
"角色关键词": "男孩,年龄较小,焦虑,不眠",
"画面描述词": "Little Ming couldn't sleep all night, consumed by worry for his good friend. The darkness of the night only heightened his anxiety. Being a young boy, his mind was filled with troubled thoughts. He tossed and turned, restless and sleepless, unable to shake off his apprehension.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/9.png?v=20240216181622725",
"local_image_path": "assets/outputs/20240216181518705/img/9.png"
},
{
"编号": "10",
"场景描述": "第二天清晨,小明突然被一阵狗叫声吵醒",
"场景关键词": "清晨,狗叫声",
"角色": "小明",
"角色关键词": "男孩,睡眼惺忪的,短发,睡衣,兴奋,穿上衣服,冲出家门",
"画面描述词": "One early morning, as the first rays of sunlight started to peek through the window, a boy named Xiao Ming was abruptly awoken by the sound of dogs barking outside. Rubbing his half-closed eyes and with tousled short hair, he sluggishly got out of bed, still clad in his pajamas. However, the excitement in his voice was evident as he quickly dressed himself and rushed out of the house to investigate the source of the commotion.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/10.png?v=20240216181700850",
"local_image_path": "assets/outputs/20240216181518705/img/10.png"
},
{
"编号": "11",
"场景描述": "他赶紧跑到窗户前,发现小乖在外面叫着喊着",
"场景关键词": "窗户,叫喊,外面",
"角色": "小明,小乖",
"角色关键词": "男孩,小狗",
"画面描述词": "He quickly ran to the window and saw that outside, Little Guai was calling and barking. The boy, Little Ming, could hear the urgent cries from his loyal dog standing outside the window.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/11.png?v=20240216181636972",
"local_image_path": "assets/outputs/20240216181518705/img/11.png"
},
{
"编号": "12",
"场景描述": "小明兴奋地穿上衣服,冲出家门,抱住小乖",
"场景关键词": "兴奋,家门",
"角色": "小明,小乖",
"角色关键词": "小明(性别:男,年龄:小孩,衣服:上衣,情绪:兴奋,肢体动作:冲出家门),小乖(肢体动作:抱住)",
"画面描述词": "Excitedly, little Ming put on his shirt and dashed out of the house. He couldn't contain his joy as he rushed towards little Guai, embracing him tightly.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/12.png?v=20240216181651505",
"local_image_path": "assets/outputs/20240216181518705/img/12.png"
},
{
"编号": "13",
"场景描述": "原来小乖走失了,被一个好心的阿姨捡到并带回了家",
"场景关键词": "走失,好心的阿姨,家",
"角色": "小乖",
"角色关键词": "小狗,性别:无,年龄:未知,肤色:未知,衣服:无,发型:无,发色:无,脸色:未知,五官特点:无,体态:无,情绪:走失后担心,肢体动作:叫喊",
"画面描述词": "Once upon a time, little Rover got lost and was wandering alone in the streets. Feeling scared and anxious, he let out loud cries for help. Luckily, a kind-hearted lady noticed the distressed puppy and immediately went to his rescue. She gently picked him up, holding him close to her and comforting him with soothing words. The lady knew that he must have a worried family waiting for him, so she decided to take him to her home. Little Rover felt a sense of relief and gratitude as he was carried into a warm and safe environment.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/13.png?v=20240216181724274",
"local_image_path": "assets/outputs/20240216181518705/img/13.png"
},
{
"编号": "14",
"场景描述": "小乖想着主人的样子,一路才能找到小明",
"场景关键词": "寻找,道路,早晨",
"角色": "小乖,小明",
"角色关键词": "小乖:主人,失踪,喊叫,外面,阿姨,找到,高兴;小明:男孩,担心,窗户前,衣服,家门,抱住",
"画面描述词": "In the early morning, little Guaiguai, a lost dog, was wandering around outside, desperately searching for his owner. He roamed the streets, sniffing the air and hoping to catch a familiar scent. Suddenly, he heard his owner's voice calling out for him from a distance. Excitedly, he followed the sound and arrived at a small house. There, he saw a boy named Xiaoming standing near the window, wearing his favorite clothes. Overwhelmed with joy, little Guaiguai dashed towards Xiaoming and jumped into his arms. They hugged tightly, both relieved to have found each other.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/14.png?v=20240216181733728",
"local_image_path": "assets/outputs/20240216181518705/img/14.png"
},
{
"编号": "15",
"场景描述": "小明感到非常高兴,他对小乖说:“以后我们要互相照顾,不再分开",
"场景关键词": "高兴,照顾,分开",
"角色": "小明,小乖",
"角色关键词": "小明:男孩,年龄较小,情绪高兴,肢体动作兴奋;小乖:小狗,对应的男孩的宠物,迎接主人,被捡到过,对主人的亲密",
"画面描述词": "Little Ming felt extremely happy, and he said to Little Guai, \"From now on, we will take care of each other and never be apart again.\" Little Ming, a young boy full of excitement and joy, expressed his feelings to Little Guai, his beloved pet dog. Little Guai, who was once abandoned but later picked up by Little Ming, always greeted his owner warmly and had formed a close bond with him. Together, they vowed to always be there for each other and never go their separate ways again.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/15.png?v=20240216181743168",
"local_image_path": "assets/outputs/20240216181518705/img/15.png"
},
{
"编号": "16",
"场景描述": "”从那天起,小乖成为了小明最忠实的伙伴,他们在一起经历了许多快乐的时光",
"场景关键词": "那天,快乐的时光",
"角色": "小乖,小明",
"角色关键词": "小乖:忠实的伙伴,走失,好心的阿姨,找回,狗叫声,高兴,互相照顾;小明:主人,担心,寻找,高兴",
"画面描述词": "From that day on, Xiao Guai became Xiao Ming's most loyal companion. They shared many happy moments together. It all started when Xiao Guai got lost in a crowded market. Xiao Ming was worried sick and searched frantically for his beloved pet. Just when he was about to lose hope, a kind-hearted auntie found Xiao Guai and returned him to Xiao Ming. The joyful barks of the dog echoed through the air as they were reunited. From that moment, they became inseparable. They took care of each other, always watching out for one another. Xiao Ming was thrilled to have his furry friend back, and Xiao Guai wagged his tail happily, grateful for the love and care he received from his loyal master. Together, they created countless happy memories filled with laughter and companionship.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/img/16.png?v=20240216181752806",
"local_image_path": "assets/outputs/20240216181518705/img/16.png"
}
],
final_video: "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240216181518705/final_video.mp4",
};
return {
screen: screen,
sd_prompt_prefix: sd_prompt_prefix,
sd_negative_prompt_prefix: sd_negative_prompt_prefix,
horizontal_data: horizontal_data,
vertical_data: vertical_data,
if_need_subtitle: if_need_subtitle,
}
}
......@@ -4,186 +4,27 @@ import { Sunny, UploadFilled } from "@element-plus/icons-vue";
import { ElMessage, ElLoading } from "element-plus";
import text2videoService from "@/api/service/text2videoService";
import utils from "@/utils/utils";
import { useManyValues } from './compositions/useManyValues'
const debug = ref(true);
const loading = ref(false);
const default_data = useManyValues();
const form = reactive({
screen: default_data.screen,
if_need_subtitle: default_data.if_need_subtitle,
chatgpt_prompt: "",
chatgpt_answer: "",
adapt_result_json: <Wm.ScriptsItem[]>[],
task_id: "",
final_video: "",
});
const sd_prompt_prefix = `best quality,masterpiece,realistic,HDR,UHD,8K,best quality,highres,absurdres,realistic,masterpiece,
Highly detailed,extreme detail description,Professional,cinematic_lighting,ultra-fine painting,full body,Vivid Colors,
physically-based rendering,cinematic,`;
const sd_negative_prompt_prefix = `multiple breasts, (mutated hands and fingers:1.5 ), (long body :1.3),
(mutation, poorly drawn :1.2) , black-white, bad anatomy, liquid body, liquid tongue, disfigured,
malformed, mutated, anatomical nonsense, malformed hands, long neck, blurred,
lowers, bad proportions, bad shadow, uncoordinated body, unnatural body, fused breasts,
bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts, heavy breasts, missing breasts,
huge haunch, huge thighs, huge calf, bad hands, fused hand, missing hand, disappearing arms, disappearing thigh,
disappearing calf, disappearing legs, fused ears, bad ears, poorly drawn ears, extra ears, liquid ears, heavy ears,
missing ears, fused animal ears, bad animal ears, poorly drawn animal ears, extra animal ears, liquid animal ears,
heavy animal ears, missing animal ears, text, ui, error, missing fingers, missing limb, fused fingers,
one hand with more than 5 fingers, one hand with less than 5 fingers, one hand with more than 5 digit,
one hand with less than 5 digit, extra digit, fewer digits, fused digit, missing digit, bad digit, liquid digit,
colorful tongue, black tongue, cropped, watermark, username, blurry, JPEG artifacts, signature, 3D, 3D game,
3D game scene, 3D character, malformed feet, extra feet, bad feet, poorly drawn feet, fused feet, missing feet,
extra shoes, bad shoes, fused shoes, more than two shoes, poorly drawn shoes, bad gloves, poorly drawn gloves,
fused gloves, bad cum, poorly drawn cum, fused cum, bad hairs, poorly drawn hairs, fused hairs, big muscles, ugly,
bad face, fused face, poorly drawn face, cloned face, big face, long face, bad eyes, fused eyes poorly drawn eyes,
extra eyes, malformed limbs, more than 2 nipples, missing nipples, different nipples, fused nipples, bad nipples,
poorly drawn nipples, black nipples, colorful nipples, gross proportions. short arm, (((missing arms))), missing thighs,
missing calf, missing legs, mutation, duplicate, morbid, mutilated, poorly drawn hands, more than 1 left hand,
more than 1 right hand, deformed, (blurry), disfigured, missing legs, extra arms, extra thighs, more than 2 thighs,
extra calf, fused calf, nsfw,logo,text,extra legs, bad knee, extra knee, more than 2 legs, bad tails, bad mouth,
fused mouth, poorly drawn mouth, bad tongue, tongue within mouth, too long tongue, black tongue, big mouth, cracked mouth,
bad mouth, dirty face, dirty teeth, dirty pantie, fused pantie, poorly drawn pantie, fused cloth, poorly drawn cloth, bad pantie,
yellow teeth, thick lips, bad cameltoe, colorful cameltoe, bad asshole, poorly drawn asshole, fused asshole, missing asshole,
bad anus, bad pussy, bad crotch, bad crotch seam, fused anus, fused pussy, fused anus, fused crotch, poorly drawn crotch,
fused seam, poorly drawn anus, poorly drawn pussy, poorly drawn crotch, poorly drawn crotch seam, bad thigh gap, missing thigh gap,
fused thigh gap, liquid thigh gap, poorly drawn thigh gap, poorly drawn anus, bad collarbone, fused collarbone, missing collarbone,
liquid collarbone, obesity, worst quality, low quality, normal quality, liquid tentacles, bad tentacles, poorly drawn tentacles,
split tentacles, fused tentacles, missing clit, bad clit, fused clit, colorful clit, black clit, liquid clit, QR code, bar code, censored,
safety panties, safety knickers, beard, furry ,pony, pubic hair, mosaic, excrement, faeces, shit, futa, testis,mutated hands and fingers,
deformed,bad anatomy,disfigured,poorly drawn face,lowres,mutated,extra limb,ugly,poorly drawn hands,missing limb,floating limbs,
disconnected limbs,malformed hands,out of focus,long neck,long body,gape,`;
const sd_prompt_prefix = default_data.sd_prompt_prefix;
const sd_negative_prompt_prefix = default_data.sd_negative_prompt_prefix;
onMounted(() => {
if (debug.value == true) {
form.task_id = "20240209114425596";
form.chatgpt_prompt = `生成一个100字的小故事`;
form.chatgpt_answer = `从前有一个小男孩名叫小明,他非常喜欢冒险和探险。一天,他听说镇上的老教堂有一个传说中的宝藏。于是,小明决定前往探寻宝藏的秘密。他兴奋地穿过了一个森林,越过了一条湍急的河流,终于来到了老教堂的门前。教堂里昏暗而阴森,小明开始在各个角落寻找宝藏。他翻遍了教堂的每一个房间,甚至爬上了教堂的钟楼,但是却没有找到宝藏的踪迹。慢慢地,小明感到失望和沮丧。正当他准备离开时,他发现了一个看似普通的石头。他突然有了一种直觉,将石头掀开,竟然发现了一道秘密通道!小明毫不犹豫地走了进去,迎接他的是散发着金光的宝藏。小明高兴地抱起宝藏,回到家中。从那天起,他决定要成为一个伟大的探险家,为世界带来更多的惊喜和宝藏。`;
form.adapt_result_json = [
{
"编号": "1",
"场景描述": "从前有一个小男孩名叫小明,他非常喜欢冒险和探险",
"场景关键词": "小男孩,冒险,探险",
"角色": "小明",
"角色关键词": "男性,年轻,普通衣服,普通发型,正常肤色,兴奋的情绪,活力的体态",
"画面描述词": "Once upon a time, there was a young boy named Xiaoming. He had a burning passion for adventure and exploration, always longing to embark on thrilling quests. Xiaoming was an ordinary boy, with a lively spirit and a sense of excitement that radiated from him. He had a typical appearance, with a youthful face, regular clothes, and a simple hairstyle. His skin had a normal complexion, and he exuded a vibrant energy in his every movement. Xiaoming's heart was constantly brimming with curiosity and eagerness to discover the unknown, making him a true adventurer at heart.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/1.png?v=20240209114451753",
"local_image_path": "assets/outputs/20240209114425596/img/1.png"
},
{
"编号": "2",
"场景描述": "一天,他听说镇上的老教堂有一个传说中的宝藏",
"场景关键词": "镇上,老教堂,宝藏",
"角色": "小明",
"角色关键词": "男孩,小明",
"画面描述词": "One day, he heard about a legendary treasure hidden in the old church in town. Excitement filled his heart as he imagined the possibilities. Determined to uncover the truth, young boy named Xiao Ming embarked on an adventure that would take him to the heart of the town. The old church stood tall, its weathered stones whispering stories of centuries past. Inside, he could feel the ancient aura beckoning him further, as if guiding him towards the secrets that lay within. With each step, the anticipation grew, and the flickering light from his flashlight danced on the walls, casting eerie shadows. The air was heavy with anticipation, as Xiao Ming's heart raced with both thrill and uncertainty. Little did he know, this quest for the treasure would not only test his courage, but also reveal the true essence of his spirit.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/2.png?v=20240209114500766",
"local_image_path": "assets/outputs/20240209114425596/img/2.png"
},
{
"编号": "3",
"场景描述": "于是,小明决定前往探寻宝藏的秘密",
"场景关键词": "小男孩,冒险,探险,老教堂,宝藏,森林,河流,教堂房间,钟楼,石头,秘密通道",
"角色": "小明",
"角色关键词": "男性,年轻,普通衣服,普通发型,普通脸色,兴奋,失望,沮丧,高兴,抱起宝藏",
"画面描述词": "So, the young boy named Xiao Ming decided to embark on an adventure and explore the secrets of the treasure. With excitement shining in his eyes, he made his way towards the ancient old church, where rumors claimed the treasure was hidden. As he ventured into the mysterious forest surrounding the church, he could hear the sound of a gentle river flowing nearby. The atmosphere was filled with a sense of anticipation as Xiao Ming entered the dimly lit church room, with sunlight streaming through stained glass windows. His heart skipped a beat as he noticed a peculiar stone embedded in the wall. With curiosity overwhelming his senses, he gingerly pushed the stone, and to his amazement, a secret passage opened right before him. Determined to unravel the mystery, he cautiously descended into the hidden tunnel. The passage led him to a narrow staircase that spiraled upwards, eventually revealing the grand clock tower. As he climbed higher, the air became thinner, but his determination grew stronger. Finally, Xiao Ming reached the top, where he discovered the long-lost treasure sparkling brightly in a hidden corner. Overwhelmed with joy, he couldn't help but hold the treasure close to his heart, savoring the triumphant moment. The young boy's face beamed with happiness, as he knew he had successfully unraveled the secret and achieved his adventure of a lifetime.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/3.png?v=20240209114518942",
"local_image_path": "assets/outputs/20240209114425596/img/3.png"
},
{
"编号": "4",
"场景描述": "他兴奋地穿过了一个森林,越过了一条湍急的河流,终于来到了老教堂的门前",
"场景关键词": "森林,河流,教堂",
"角色": "小明",
"角色关键词": "男孩,年轻,兴奋,穿过,越过,来到,失望,沮丧",
"画面描述词": "Excited and full of youthful energy, a young boy named Xiao Ming journeyed through a dense forest, his heart beating with anticipation. The towering trees whispered secrets to him as he weaved through their branches, admiring the sunlight that filtered through the emerald canopy. With each step, his excitement grew, urging him forward. As the forest thinned, a roaring river came into view, its turbulent waters crashing against the rugged rocks that lined its banks. Determined, Xiao Ming carefully traversed the treacherous path that awaited him, stepping cautiously on each moss-covered stone. The sound of rushing water filled his ears, but he pressed on with unwavering determination, his heart set on reaching his destination. After what felt like an eternity, he finally arrived at the ancient doorstep of the old church. With a mixture of relief and awe, he gazed up at the weathered stone walls and towering spires that reached towards the heavens. The weight of his journey, the thrill of his adventure, was palpable in his vibrant eyes. However, as the doors creaked open, Xiao Ming's excitement turned to disappointment and sadness. The once magnificent interior of the church now lay in ruins, its walls crumbling and its stained glass windows shattered. Echoes of a forgotten past reverberated through the empty space, leaving him feeling disheartened. But even in the face of disappointment, Xiao Ming's spirit refused to be dampened. In the ruins of the church, he saw the potential for a new beginning, a chance to rebuild and restore the lost glory. With renewed determination, he vowed to bring life back to this forgotten place, a beacon of hope amidst the surrounding beauty of the forest and the relentless river that had guided him here.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/4.png?v=20240209114523621",
"local_image_path": "assets/outputs/20240209114425596/img/4.png"
},
{
"编号": "5",
"场景描述": "教堂里昏暗而阴森,小明开始在各个角落寻找宝藏",
"场景关键词": "昏暗,阴森",
"角色": "小明",
"角色关键词": "年龄:小,情绪:兴奋,肢体动作:翻找",
"画面描述词": "In the dim and eerie atmosphere of the church, a sense of mystery lingers. With every step, the young boy named Xiao Ming can feel his excitement growing. Determined to find the hidden treasure, he scours each corner of the eerie space. His small figure blends with the shadows as he feverishly rummages through the darkness, hoping to uncover the secrets that lay concealed.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/5.png?v=20240209114442786",
"local_image_path": "assets/outputs/20240209114425596/img/5.png"
},
{
"编号": "6",
"场景描述": "他翻遍了教堂的每一个房间,甚至爬上了教堂的钟楼,但是却没有找到宝藏的踪迹",
"场景关键词": "教堂,房间,钟楼",
"角色": "小明",
"角色关键词": "男孩,年轻,兴奋,失望,沮丧",
"画面描述词": "He was a young boy named Xiao Ming, full of excitement and curiosity, embarking on a quest to find a hidden treasure within the walls of an ancient church. With each step he took, his anticipation grew, fueled by the stories of glorious riches that whispered through the town. Little did he know that this adventure would test his determination. He ventured through every room of the church, carefully inspecting every nook and cranny, searching for any traces of the elusive treasure. The atmosphere within the sacred halls was filled with an air of quiet reverence, but his enthusiasm remained unyielding. He climbed up the spiraling staircase of the church's bell tower, hoping to catch a glimpse of the treasure from high above. However, as he reached the top, his hopeful expression gradually transformed into disappointment. The room was empty, devoid of any signs of the hidden treasure. His once-energetic spirit turned into a heavy burden of sadness and frustration. He had explored every inch of the church, diligently seeking the treasure, but it seemed to have eluded him. As he made his way down from the lofty heights of the bell tower, he couldn't help but feel a sense of defeat. The dream of discovering untold wealth within this sacred sanctuary had slipped through his fingers. With a heavy heart, Xiao Ming slowly made his way out, his hopes shattered, but with the knowledge that he had given his all in search of that elusive treasure.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/6.png?v=20240209114514380",
"local_image_path": "assets/outputs/20240209114425596/img/6.png"
},
{
"编号": "7",
"场景描述": "慢慢地,小明感到失望和沮丧",
"场景关键词": "教堂,昏暗,阴森,房间,钟楼,失望,沮丧",
"角色": "小明",
"角色关键词": "男孩,年轻,失望,沮丧",
"画面描述词": "Slowly, a sense of disappointment and dejection enveloped young Xiaoming as he stepped into the dimly lit and somber church. The atmosphere in the room felt heavy, adding to his already crestfallen state. As he looked around, his gaze settled on the tall, gloomy clock tower, standing tall and motionless. It symbolized the passage of time - a reminder of his dashed hopes and unmet expectations. Xiaoming, a disheartened and dispirited boy, couldn't help but sink deeper into sadness in this eerie setting.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/7.png?v=20240209114509760",
"local_image_path": "assets/outputs/20240209114425596/img/7.png"
},
{
"编号": "8",
"场景描述": "正当他准备离开时,他发现了一个看似普通的石头",
"场景关键词": "教堂门前,昏暗,阴森,看似普通的石头,秘密通道",
"角色": "小明",
"角色关键词": "男孩,年轻,兴奋,失望,沮丧,高兴",
"画面描述词": "As he was about to leave, he noticed a seemingly ordinary stone in front of the church. The atmosphere around the entrance was dim and eerie, giving the surroundings an ominous feeling. Intrigued, the young boy named Xiao Ming couldn't help but feel excited. He hesitated for a moment, contemplating whether to investigate further. With a mix of anticipation and disappointment, he reached down for the stone, hoping it would reveal some hidden secret or lead to an adventure. As he picked it up, a sudden realization dawned upon him – this innocuous-looking stone might just be the key to a secret passageway, shrouded in mystery. A wave of happiness washed over him, replacing his initial disappointment, as he eagerly began to examine it, eager to unlock the secrets that awaited him.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/8.png?v=20240209114532839",
"local_image_path": "assets/outputs/20240209114425596/img/8.png"
},
{
"编号": "9",
"场景描述": "他突然有了一种直觉,将石头掀开,竟然发现了一道秘密通道",
"场景关键词": "石头,秘密通道",
"角色": "小明",
"角色关键词": "男孩,年轻,兴奋,失望,沮丧,高兴",
"画面描述词": "Suddenly, a wave of intuition washed over him as he stood before a large, unassuming stone. Without a second thought, the young boy named Xiaoming decided to tilt the stone aside, revealing a hidden passageway concealed beneath it. Excitement coursed through his veins as he realized that he had stumbled upon a secret passage. However, as he stepped into the dimly lit tunnel, his enthusiasm quickly waned. The corridor appeared to stretch endlessly in front of him, daunting and overwhelming. Disappointment crept into his previously exuberant heart, dampening his spirits. Yet, he couldn't help but feel a glimmer of hope flicker within him. With determination in his eyes, Xiaoming chose to embrace the unexpected twist. Overcoming his initial despondence, he transformed his disappointment into an opportunity for adventure. With renewed excitement, he embarked on his journey, eager to unravel the mysteries that awaited him within the secret passage.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/9.png?v=20240209114537246",
"local_image_path": "assets/outputs/20240209114425596/img/9.png"
},
{
"编号": "10",
"场景描述": "小明毫不犹豫地走了进去,迎接他的是散发着金光的宝藏",
"场景关键词": "昏暗,阴森,金光",
"角色": "小明,宝藏",
"角色关键词": "小明:年龄,男性,兴奋,失望,沮丧,高兴,抱起;宝藏:散发金光",
"画面描述词": "Without hesitation, Xiao Ming walked into the room. The atmosphere was dim and ominous, with an eerie silence hanging in the air. However, his excitement outweighed any feelings of apprehension as he entered further. Suddenly, his eyes caught a glimpse of something extraordinary. There, in the center of the room, lay a treasure chest gleaming with radiant golden light. Xiao Ming's heart raced with a mixture of joy and anticipation as he approached the treasure. With a surge of emotions, he couldn't help but feel a sense of disappointment and frustration washing over him, as he realized that the chest was locked. Determined not to let his spirits dampen, Xiao Ming's disappointment quickly turned into determination. He eagerly searched for a key, and when he finally found it, a triumphant smile crept onto his face. He picked up the treasure chest, cherishing the weight of his discovery in his arms.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/10.png?v=20240209114546240",
"local_image_path": "assets/outputs/20240209114425596/img/10.png"
},
{
"编号": "11",
"场景描述": "小明高兴地抱起宝藏,回到家中",
"场景关键词": "家中",
"角色": "小明",
"角色关键词": "年龄: 小男孩, 情绪: 高兴, 肢体动作: 抱起宝藏",
"画面描述词": "Little Ming happily picked up the treasure and made his way back to his cozy home. With a gleeful smile on his face, the young boy embraced the long-awaited discovery. In the comfort of his familiar surroundings, he savored the feeling of triumph and contentment that filled his heart. The essence of joy radiated from him as he crossed the threshold, his excitement palpable in every step. The treasure sat snugly in his arms, cherished and treasured, as he eagerly anticipated the thrill of unveiling its secrets in the warmth and comfort of his home.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/11.png?v=20240209114555193",
"local_image_path": "assets/outputs/20240209114425596/img/11.png"
},
{
"编号": "12",
"场景描述": "从那天起,他决定要成为一个伟大的探险家,为世界带来更多的惊喜和宝藏",
"场景关键词": "教堂,宝藏,探险家",
"角色": "小明",
"角色关键词": "男孩,冒险,探险",
"画面描述词": "From that day on, he made a decision to become a great explorer, bringing more surprises and treasures to the world. His name was Xiaoming, a brave young boy with a thirst for adventure. His passion ignited when he stumbled upon an old church, mysteriously guarded by centuries-old relics. Inspired by the mysteries hidden within its walls, he vowed to embark on a journey as a fearless explorer. Equipped with a trusty map and a heart full of determination, Xiaoming set off in search of untold wonders and hidden treasures waiting to be discovered. His dream was to leave an indelible mark on the world, leaving behind a legacy of awe-inspiring tales for generations to come.",
"本镜配图": "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/img/12.png?v=20240209114604149",
"local_image_path": "assets/outputs/20240209114425596/img/12.png"
}
];
form.final_video = "http://wm_tools_backend.frp.wmdigit.com:8888/assets/outputs/20240209114425596/final_video.mp4";
}
onChangeScreen(form.screen);
});
const onSubmitGpt = () => {
form.task_id = utils.genDateTimeStr();
console.log(form.task_id)
......@@ -256,7 +97,6 @@ const onAdapt = async () => {
}
};
const onAdaptOne = async (item: any) => {
if (!item.场景描述) {
ElMessage({
......@@ -288,7 +128,6 @@ const onAdaptOne = async (item: any) => {
}
};
const onDrawOne = async (item: any) => {
if (!item.编号 || !item.场景描述 || !item.场景关键词 || !item.角色 || !item.角色关键词) {
ElMessage({
......@@ -308,7 +147,13 @@ const onDrawOne = async (item: any) => {
);
item.画面描述词 = sd_describe;
const sd_prompt = item.画面描述词 + "," + sd_prompt_prefix;
const sd_img = await text2videoService.submitSD(form.task_id, item.编号, sd_prompt, sd_negative_prompt_prefix);
let width = "960";
let height = "540";
if (form.screen == "竖屏") {
width = "540";
height = "960";
}
const sd_img = await text2videoService.submitSD(form.task_id, item.编号, sd_prompt, sd_negative_prompt_prefix, width, height);
item.本镜配图 = sd_img.domain_image_path+"?v="+utils.genDateTimeStr();
item.local_image_path = sd_img.local_image_path;
} catch (error) {
......@@ -319,7 +164,6 @@ const onDrawOne = async (item: any) => {
}
};
const onGenVideo = () => {
if (!form.adapt_result_json || form.adapt_result_json.length == 0 ) {
ElMessage({
......@@ -349,7 +193,8 @@ const onGenVideo = () => {
});
const video_param = {
task_id: form.task_id,
task_info: video_param_detail
if_need_subtitle: form.if_need_subtitle,
task_info: video_param_detail,
}
text2videoService
.submitGenVideo(video_param)
......@@ -374,6 +219,24 @@ const clean_demo = () => {
form.task_id = "";
form.final_video = "";
}
const onChangeScreen = (val: string) => {
if (debug.value == true) {
if (val == "横屏") {
form.task_id = default_data.horizontal_data.task_id;
form.chatgpt_prompt = default_data.horizontal_data.chatgpt_prompt;
form.chatgpt_answer = default_data.horizontal_data.chatgpt_answer;
form.adapt_result_json = default_data.horizontal_data.adapt_result_json;
form.final_video = default_data.horizontal_data.final_video;
} else {
form.task_id = default_data.vertical_data.task_id;
form.chatgpt_prompt = default_data.vertical_data.chatgpt_prompt;
form.chatgpt_answer = default_data.vertical_data.chatgpt_answer;
form.adapt_result_json = default_data.vertical_data.adapt_result_json;
form.final_video = default_data.vertical_data.final_video;
}
}
}
</script>
<template>
......@@ -381,6 +244,14 @@ const clean_demo = () => {
<!-- 标题 -->
<el-divider content-position="left">text2video</el-divider>
<el-form :model="form" label-width="114px" v-loading="loading">
<el-form-item>
<div>
<el-radio-group v-model="form.screen" @change="onChangeScreen">
<el-radio label="横屏" size="large" border/>
<el-radio label="竖屏" size="large" border/>
</el-radio-group>
</div>
</el-form-item>
<el-form-item>
<el-button type="success" @click="clean_demo">清除示例数据</el-button>
</el-form-item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment