huochaitiantang / pytorch-deep-image-matting

Pytorch implementation of deep image matting
294 stars 71 forks source link

Run Demo error #20

Closed kqw94 closed 5 years ago

kqw94 commented 5 years ago

Hi, I meet this error when I try to run the code/demo.py, anyone solve it?

Traceback (most recent call last): File "core/demo.py", line 42, in ckpt = torch.load(args.resume) File "/home/mmdb-gp8/anaconda3/envs/pytorch/lib/python3.5/site-packages/torch/serialization.py", line 303, in load return _load(f, map_location, pickle_module) File "/home/mmdb-gp8/anaconda3/envs/pytorch/lib/python3.5/site-packages/torch/serialization.py", line 469, in _load result = unpickler.load() UnicodeDecodeError: 'ascii' codec can't decode byte 0x94 in position 1: ordinal not in range(128)

BTW, the model Stage1-SAD=57.1 can not be access ☹️

kqw94 commented 5 years ago

Swith python2.7 solve this problem