Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

fix hardcoded output path #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def test(self):
with torch.no_grad():
# Load the weights of netg and netd.
if self.opt.load_weights:
path = "./output/{}/{}/train/weights/netG.pth".format(self.name.lower(), self.opt.dataset)
path = "{}/{}/{}/train/weights/netG.pth".format(self.opt.outf, self.name.lower(), self.opt.dataset)
pretrained_dict = torch.load(path)['state_dict']

try:
Expand Down