File size: 8,971 Bytes
4109acf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1f4bc8f
 
 
4109acf
1f4bc8f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0ec7383
1f4bc8f
4109acf
1f4bc8f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4109acf
1f4bc8f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4109acf
 
 
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
import gradio as gr


with gr.Blocks() as demo:

    init_img = gr.Image()
    def create_example(input_list):
        return gr.Examples(
            examples=input_list,
            inputs=[
                init_img,
            ],
        )

    create_example(
        [
            [
                './__assets__/image_animation/yiming/yiming.jpeg',
                './__assets__/image_animation/yiming/yiming.mp4',
                '1boy in Christmas suit, lift a Christmas gift',
                'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
                '3d_cartoon',
                2,
            ],
            [
                './__assets__/image_animation/yanhong/yanhong.png',
                './__assets__/image_animation/yanhong/yanhong.mp4',
                '1girl lift a Christmas gift',
                'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
                '3d_cartoon',
                2,
            ],
        ],

    )

    with gr.Accordion('More Examples for Style Transfer', open=False):
        create_example([
            [

                './__assets__/image_animation/style_transfer/anya/anya.jpg',
                './__assets__/image_animation/style_transfer/anya/2.mp4',
                '1girl open mouth ',
                'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
                '3d_cartoon',
                3,
            ],
            [
                './__assets__/image_animation/magnitude/genshin/genshin.jpg',
                './__assets__/image_animation/magnitude/genshin/3.mp4',
                'cherry blossoms in the wind, raidenshogundef, yaemikodef, best quality, 4k',
                'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
                '3d_cartoon',
                3,
            ],

        ])

    with gr.Accordion('More Examples for Prompt Changing', open=False):
        create_example(
            [
                [
                    './__assets__/image_animation/real/lighthouse.jpg',
                    './__assets__/image_animation/real/1.mp4',
                    'lightning, lighthouse',
                    'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
                    'realistic',
                    1,
                ],
                [
                    './__assets__/image_animation/real/lighthouse.jpg',
                    './__assets__/image_animation/real/2.mp4',
                    'sun rising, lighthouse',
                    'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
                    'realistic',
                    1,
                ],
                [
                    './__assets__/image_animation/real/lighthouse.jpg',
                    './__assets__/image_animation/real/3.mp4',
                    'fireworks, lighthouse',
                    'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
                    'realistic',
                    1,
                ],
                [
                    './__assets__/image_animation/rcnz/harry.png',
                    './__assets__/image_animation/rcnz/1.mp4',
                    '1boy smiling',
                    'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
                    '3d_cartoon',
                    2
                ],
                [
                    './__assets__/image_animation/rcnz/harry.png',
                    './__assets__/image_animation/rcnz/2.mp4',
                    '1boy playing magic fire',
                    'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
                    '3d_cartoon',
                    2
                ],
                [
                    './__assets__/image_animation/rcnz/harry.png',
                    './__assets__/image_animation/rcnz/3.mp4',
                    '1boy is waving hands',
                    'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
                    '3d_cartoon',
                    2
                ]
            ])

    with gr.Accordion('Examples for Motion Magnitude', open=False):
        create_example(
            [
                [
                    './__assets__/image_animation/magnitude/labrador.png',
                    './__assets__/image_animation/magnitude/1.mp4',
                    'cherry blossoms in the wind, raidenshogundef, yaemikodef, best quality, 4k',
                    'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
                    '3d_cartoon',
                    1,
                ],
                [
                    './__assets__/image_animation/magnitude/labrador.png',
                    './__assets__/image_animation/magnitude/2.mp4',
                    'cherry blossoms in the wind, raidenshogundef, yaemikodef, best quality, 4k',
                    'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
                    '3d_cartoon',
                    2,
                ],
                [
                    './__assets__/image_animation/magnitude/labrador.png',
                    './__assets__/image_animation/magnitude/3.mp4',
                    'cherry blossoms in the wind, raidenshogundef, yaemikodef, best quality, 4k',
                    'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
                    '3d_cartoon',
                    3,
                ]
            ])


demo.launch()