BoyuanJiang / matching-networks-pytorch

Matching Networks for one shot learning
228 stars 67 forks source link

ValueError: source code string cannot contain null bytes #5

Open mengyaaa opened 5 years ago

mengyaaa commented 5 years ago

File "mainOmniglot.py", line 1, in from data_loader import OmniglotNShotDataset ValueError: source code string cannot contain null bytes Can any help?Thank you...

lovelyqian commented 5 years ago

open “data_loader.py” by vim, and you will find the “^@”, just delete them.

and if you use Pycharm or other IDEs, you can not observe this null byte.

venuv commented 4 years ago

from stackoverflow and worked -- sed -i 's/\x0//g' FILENAME