Views
No views yet
1from huggingface_hub import hf_hub_download 2import torch 3 4gen = Generator() 5gen.load_state_dict(torch.load( 6 hf_hub_download("nosopirka/cyclegan-day-night", "gen_a_to_b.pth"), map_location="cpu" 7)) 8gen.eval()