You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception has occurred: UnicodeDecodeError
'ascii' codec can't decode byte 0xeb in position 2: ordinal not in range(128)
Hi vonfeng,when I execute data = pickle.load(open(self.data_path + self.data_name + '.pk', 'rb'))
it occur the exception.Could you please tell me the reason and how to load the data correctly? thanks
The text was updated successfully, but these errors were encountered:
ah,I have solved it. the foursquare.pk has to be load by latin1 encoding.By the way I use python3 so I change the code adapt to py3, and torch is newer version but it is ok and nothing about it need to be changed.
for this problem I change the code to: with open(self.data_path + self.data_name + '.pk', 'rb') as f: data = pickle.load(f,encoding='latin1')
Hi vonfeng,when I execute
data = pickle.load(open(self.data_path + self.data_name + '.pk', 'rb'))
it occur the exception.Could you please tell me the reason and how to load the data correctly? thanks
The text was updated successfully, but these errors were encountered: