Spaces:
Runtime error
Runtime error
PepeLevi commited on
Commit ·
c06141e
1
Parent(s): 99fcaac
21 unmodified lines22232425262751 unmodified lines7980818283848521 unmodified lines#----------------------------------------------------------------------------def num_range(s: str) -> List[int]:'''Accept either a comma separated list of numbers 'a,b,c' or a range 'a-c' and return as a list of ints.'''51 unmodified lines"""print('Loading networks from "%s"...' % network_pkl)device = torch.device('cuda')with dnnlib.util.open_url(network_pkl) as f:G = legacy.load_network_pkl(f)['G_ema'].to(device) # type: ignore21 unmodified lines2223242526272851 unmodified lines8081828384858621 unmodified lines#----------------------------------------------------------------------------def num_range(s: str) -> List[int]:'''Accept either a comma separated list of numbers 'a,b,c' or a range 'a-c' and return as a list of ints.'''51 unmodified lines"""print('Loading networks from "%s"...' % network_pkl)device = torch.device('cpu')with dnnlib.util.open_url(network_pkl) as f:G = legacy.load_network_pkl(f)['G_ema'].to(device) # type: ignore
stylegan2-ada-pytorch/generate.py+2-1