Skip to content

Commit

Permalink
change animegan2 params
Browse files Browse the repository at this point in the history
  • Loading branch information
Guo-HY committed Dec 8, 2022
1 parent 3f33802 commit 98426b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/animegan2/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ def to_32s(x):

def test(output_dir, input_dir, image_name):
device = 'cpu'

PT = './animegan2/weights/celeba_distill.pt'
net = Generator()
net.load_state_dict(torch.load('./animegan2/weights/paprika.pt', map_location="cpu"))
net.load_state_dict(torch.load(PT, map_location="cpu"))
net.to(device).eval()
print(f"model loaded: {'./animegan2/weights/paprika.pt'}")
print(f"model loaded: {PT}")

os.makedirs(output_dir, exist_ok=True)

Expand Down
Binary file removed src/media/5.jpg
Binary file not shown.

0 comments on commit 98426b4

Please sign in to comment.