-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbatch_video_blueprint.yaml
147 lines (130 loc) · 3.9 KB
/
batch_video_blueprint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# Copyright (c) 2023 Intel Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
# the Software, and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# SPDX-License-Identifier: MIT
title: Video Generation Batch
version: 1.0.0
description: Generating Videos from text and sound files
long_description: This blueprint uses deep learning networks to create a video purely from description.
author: "cnvrg"
author_email: "libhub@cnvrg.io"
tags:
- training
tasks:
- title: S3 Connector
top: 300
left: 0
type: exec
library: s3-connector
library_version: 1.0.0
command: python s3_connector.py
requirements:
cpu: 3.5
memory: 8
gpu: 0
hpu: 0
image: cnvrg/cnvrg:v5.0
language: python3
params:
- key: endpoint
type: 'categorical'
values:
- 'http://s3.amazonaws.com download'
- key: bucketname
type: 'categorical'
values:
- 'libhub-readme'
- key: localdir
type: 'categorical'
values:
- '/cnvrg'
- key: prefix
type: 'categorical'
values:
- 'stable_diffusion/'
- title: Batch Predict
top: 400
left: 100
type: exec
library: stable-diffusion-video
library_version: 1.0.0
command: python3 video.py
requirements:
cpu: 3.5
memory: 8
gpu: 0
hpu: 0
image: cnvrg/cnvrg:v5.0
language: python3
params:
- key: project_name
type: 'categorical'
values:
- 'A_Night_in_Paris'
- key: maximum_number_of_frames
type: 'discrete'
values:
- '150'
- key: no_of_prompts_start_frames
type: 'categorical'
values:
- '3"!"0,50,100'
- key: angle
type: 'categorical'
values:
- '0'
- key: zoom
type: 'categorical'
values:
- '1.04'
- key: translation_x
type: 'categorical'
values:
- '10*sin2*3.14*t/100'
- key: translation_y
type: 'categorical'
values:
- '0'
- key: seed_behavior
type: 'categorical'
values:
- "iter"
- key: seed
type: 'discrete'
values:
- "-1"
- key: fps
type: 'discrete'
values:
- '10'
- key: diffusion_style
type: 'categorical'
values:
- "Superhero-Diffusion"
- key: prompt_texts
type: 'categorical'
values:
- 'Captain_America_stylish_muscular_shield_in_spaceship_fighting_running_avengers_art_realistic_blond_hair_chris_evans"!"Tony_stark_ironman_handsome_nano_suit_flying_in_space_powerful_laser_surrealistic"!"Batman_Dark_Knight_caped_crusader_DC_comics_superhero_bat_mobile_gotham_city_neo_noir_painting_style'
- key: music_file_path
type: 'categorical'
values:
- "/input/s3_connector/stable_diffusion/Avengers.mp3"
relations:
- from: S3 Connector
to: Batch Predict