Skip to content

Commit

Permalink
Model json unicode fix1 (deepfakes#443)
Browse files Browse the repository at this point in the history
* fixed Windows 10 path error while loading weights

* - fixed TypeError: the JSON object must be str, not 'bytes' with OriginalHighRes Model
  • Loading branch information
andenixa authored and torzdf committed Jun 23, 2018
1 parent 439b227 commit 048e032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Model_OriginalHighRes/Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def load(self, swapped):

try:
with open(state_dir, 'rb') as fp:
state = ser.unmarshal(fp.read())
state = ser.unmarshal(fp.read().decode('utf-8'))
self._epoch_no = state['epoch_no']
except IOError as e:
print('Error loading training info:', e.strerror)
Expand Down

0 comments on commit 048e032

Please sign in to comment.