Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
text2video-frontend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周成波
text2video-frontend
Commits
5654bf4b
Commit
5654bf4b
authored
Jan 31, 2024
by
周成波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加脸部修复
parent
bdb2929b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
text2videoService.ts
src/api/service/text2videoService.ts
+11
-1
No files found.
src/api/service/text2videoService.ts
View file @
5654bf4b
...
@@ -35,7 +35,16 @@ export default {
...
@@ -35,7 +35,16 @@ export default {
steps
:
string
=
"25"
,
steps
:
string
=
"25"
,
width
:
string
=
"960"
,
width
:
string
=
"960"
,
height
:
string
=
"512"
,
height
:
string
=
"512"
,
cfg_scale
:
string
=
"9"
cfg_scale
:
string
=
"9"
,
alwayson_scripts
:
any
=
{
"ADetailer"
:
{
"args"
:
[
{
"ad_model"
:
"mediapipe_face_full"
}
]
}
},
):
Promise
<
string
>
{
):
Promise
<
string
>
{
if
(
!
prompt
)
{
if
(
!
prompt
)
{
return
Promise
.
reject
(
"SD提示词不能为空"
);
return
Promise
.
reject
(
"SD提示词不能为空"
);
...
@@ -51,6 +60,7 @@ export default {
...
@@ -51,6 +60,7 @@ export default {
width
:
width
,
width
:
width
,
height
:
height
,
height
:
height
,
cfg_scale
:
cfg_scale
,
cfg_scale
:
cfg_scale
,
alwayson_scripts
:
alwayson_scripts
,
}
}
return
request
.
post
(
'/text2video/text2img'
,
post_data
)
return
request
.
post
(
'/text2video/text2img'
,
post_data
)
.
then
((
res
:
any
)
=>
{
.
then
((
res
:
any
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment