Closed vaibhav90 closed 5 years ago
Hello, Thank you for this very interesting work! If anyone wants to run this on Python 3.7 with no cuda enabled, you need to do the following changes.
import cPickle as pickle -> import pickle
Avoid error while reading ASCII with pickle
data = pickle.load(open(self.data_path + self.data_name + '.pk', 'rb')) - >
data = pickle.load(open(self.data_path + self.data_name + '.pk', 'rb'))
with open(self.data_path + self.data_name + '.pk', 'rb') as f: u = pickle._Unpickler(f) u.encoding = 'latin1' data = u.load()
os.mkdir(SAVE_PATH + tmp_path) - > os.makedirs(SAVE_PATH + tmp_path, exist_ok=True)
os.mkdir(SAVE_PATH + tmp_path)
os.makedirs(SAVE_PATH + tmp_path, exist_ok=True)
Thank you for your valuable supplement~
Hello, Thank you for this very interesting work! If anyone wants to run this on Python 3.7 with no cuda enabled, you need to do the following changes.
import cPickle as pickle -> import pickle
Avoid error while reading ASCII with pickle
data = pickle.load(open(self.data_path + self.data_name + '.pk', 'rb'))
- >os.mkdir(SAVE_PATH + tmp_path)
- >os.makedirs(SAVE_PATH + tmp_path, exist_ok=True)