|
37 | 37 | parser.add_argument('--amp_lip_x', type=float, default=2.0)
|
38 | 38 | parser.add_argument('--amp_lip_y', type=float, default=2.0)
|
39 | 39 | parser.add_argument('--amp_pos', type=float, default=0.8)
|
40 |
| -parser.add_argument('--reuse_train_emb_list', default=[]) # ['E_kmpT-EfOg']) # ['E_kmpT-EfOg']) # ['45hn7-LXDX8']) |
| 40 | +parser.add_argument('--reuse_train_emb_list', default=['45hn7-LXDX8']) # ['E_kmpT-EfOg']) # ['E_kmpT-EfOg']) # ['45hn7-LXDX8']) |
41 | 41 |
|
42 | 42 |
|
43 | 43 | parser.add_argument('--add_audio_in', default=False, action='store_true')
|
|
177 | 177 |
|
178 | 178 | os.remove(os.path.join('examples_cartoon', fls_names[i]))
|
179 | 179 |
|
180 |
| - # ============================================== |
181 |
| - # Step 4 : Vector art morphing (only work in WINDOWS) |
182 |
| - # ============================================== |
183 |
| - warp_exe = os.path.join(os.getcwd(), 'facewarp', 'facewarp.exe') |
184 |
| - import os |
185 |
| - |
186 |
| - if (os.path.exists(os.path.join(output_dir, 'output'))): |
187 |
| - shutil.rmtree(os.path.join(output_dir, 'output')) |
188 |
| - os.mkdir(os.path.join(output_dir, 'output')) |
189 |
| - os.chdir('{}'.format(os.path.join(output_dir, 'output'))) |
190 |
| - print(os.getcwd()) |
191 |
| - |
192 |
| - os.system('{} {} {} {} {} {}'.format( |
193 |
| - warp_exe, |
194 |
| - os.path.join('examples_cartoon', DEMO_CH+'.png'), |
195 |
| - os.path.join(output_dir, 'triangulation.txt'), |
196 |
| - os.path.join(output_dir, 'reference_points.txt'), |
197 |
| - os.path.join(output_dir, 'warped_points.txt'), |
198 |
| - # os.path.join(ROOT_DIR, 'puppets', sys.argv[6]), |
199 |
| - '-novsync -dump')) |
200 |
| - os.system('ffmpeg -y -r 62.5 -f image2 -i "%06d.tga" -i {} -shortest {}'.format( |
201 |
| - ain, |
202 |
| - os.path.join(output_dir, sys.argv[8]) |
203 |
| - )) |
| 180 | + # # ============================================== |
| 181 | + # # Step 4 : Vector art morphing (only work in WINDOWS) |
| 182 | + # # ============================================== |
| 183 | + # warp_exe = os.path.join(os.getcwd(), 'facewarp', 'facewarp.exe') |
| 184 | + # import os |
| 185 | + # |
| 186 | + # if (os.path.exists(os.path.join(output_dir, 'output'))): |
| 187 | + # shutil.rmtree(os.path.join(output_dir, 'output')) |
| 188 | + # os.mkdir(os.path.join(output_dir, 'output')) |
| 189 | + # os.chdir('{}'.format(os.path.join(output_dir, 'output'))) |
| 190 | + # print(os.getcwd()) |
| 191 | + # |
| 192 | + # os.system('{} {} {} {} {} {}'.format( |
| 193 | + # warp_exe, |
| 194 | + # os.path.join('examples_cartoon', DEMO_CH+'.png'), |
| 195 | + # os.path.join(output_dir, 'triangulation.txt'), |
| 196 | + # os.path.join(output_dir, 'reference_points.txt'), |
| 197 | + # os.path.join(output_dir, 'warped_points.txt'), |
| 198 | + # # os.path.join(ROOT_DIR, 'puppets', sys.argv[6]), |
| 199 | + # '-novsync -dump')) |
| 200 | + # os.system('ffmpeg -y -r 62.5 -f image2 -i "%06d.tga" -i {} -shortest {}'.format( |
| 201 | + # ain, |
| 202 | + # os.path.join(output_dir, sys.argv[8]) |
| 203 | + # )) |
0 commit comments