Skip to content

Commit

Permalink
Merge branch 'wyhsirius:main' into replicate
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxwh authored Jun 29, 2022
2 parents 114afee + 39bea53 commit dad4a73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This is the official PyTorch implementation of the ICLR 2022 paper "Latent Image
- PyTorch 1.5+
- tensorboard
- moviepy
- av
- tqdm
- lpips

Expand Down
1 change: 1 addition & 0 deletions res/results will be saved here
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

5 changes: 3 additions & 2 deletions run_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ def __init__(self, args):
self.gen.eval()

print('==> loading data')
self.save_path = os.path.join(args.save_folder + '/%s' % args.model,
Path(args.source_path).stem + '_' + Path(args.driving_path).stem + '.mp4')
self.save_path = args.save_folder + '/%s' % args.model
os.makedirs(self.save_path, exist_ok=True)
self.save_path = os.path.join(self.save_path, Path(args.source_path).stem + '_' + Path(args.driving_path).stem + '.mp4')
self.img_source = img_preprocessing(args.source_path, args.size).cuda()
self.vid_target, self.fps = vid_preprocessing(args.driving_path)
self.vid_target = self.vid_target.cuda()
Expand Down

0 comments on commit dad4a73

Please sign in to comment.