feng2022 commited on
Commit
8d584e9
1 Parent(s): 4a93191

Update Time_TravelRephotography/projector.py

Browse files
Time_TravelRephotography/projector.py CHANGED
@@ -75,7 +75,7 @@ def create_generator(file_name: str, path:str,args: Namespace, device: torch.dev
75
  use_auth_token=TOKEN)
76
  with open(path, 'rb') as f:
77
  generator = Generator(args.generator_size, 512, 8)
78
- generator.load_state_dict(torch.load(f)['G_ema'], strict=False)
79
  generator.eval()
80
  generator.to(device)
81
  return generator
 
75
  use_auth_token=TOKEN)
76
  with open(path, 'rb') as f:
77
  generator = Generator(args.generator_size, 512, 8)
78
+ generator.load_state_dict(torch.load(f)['g_ema'], strict=False)
79
  generator.eval()
80
  generator.to(device)
81
  return generator