Skip to content

Commit 5248437

Browse files
author
concutere
committed
fix load_model to use absolute path
1 parent d1ab2b1 commit 5248437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enhance.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def load_model(self):
387387
error("Model file with pre-trained convolution layers not found. Download it here...",
388388
"https://github.com/alexjc/neural-enhance/releases/download/v%s/%s"%(__version__, self.get_filename()))
389389
print(' - Loaded file `{}` with trained model.'.format(self.get_filename()))
390-
return pickle.load(bz2.open(self.get_filename(), 'rb'))
390+
return pickle.load(bz2.open(self.get_filename(absolute=True), 'rb'))
391391

392392
def load_generator(self, params):
393393
if len(params) == 0: return

0 commit comments

Comments
 (0)