Skip to content

Commit

Permalink
Update test_generator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunp2 authored Nov 8, 2023
1 parent cc6c2ee commit 212bda1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@fixture()
def load_model():
model =
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
ddpm = DDPM.load_from_checkpoint(model, map_location=device).eval().to(device)
return ddpm
Expand Down

0 comments on commit 212bda1

Please sign in to comment.