Spaces:
Runtime error
Runtime error
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)['
|
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
|