Skip to content

Commit

Permalink
update test_pretrained
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix104104 committed Dec 4, 2018
1 parent 563b152 commit 3dec0c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@


### load model opts
opts_filename = os.path.join('pretrained_models', "ECCV18_model_opts.pth")
opts_filename = os.path.join('pretrained_models', "ECCV18_blind_consistency_opts.pth")
print("Load %s" %opts_filename)
with open(opts_filename, 'r') as f:
model_opts = pickle.load(f)
Expand All @@ -54,7 +54,7 @@


### load trained model
model_filename = os.path.join('pretrained_models', "ECCV18_model.pth")
model_filename = os.path.join('pretrained_models', "ECCV18_blind_consistency.pth")
print("Load %s" %model_filename)
state_dict = torch.load(model_filename)
model.load_state_dict(state_dict['model'])
Expand Down

0 comments on commit 3dec0c0

Please sign in to comment.