few-shot-gan-adaptation icon indicating copy to clipboard operation
few-shot-gan-adaptation copied to clipboard

AttributeError: 'NoneType' object has no attribute 'decode'

Open YuheD opened this issue 3 years ago • 2 comments

Traceback (most recent call last): File "train.py", line 590, in dataset = MultiResolutionDataset(args.data_path, transform, args.size) File "/data1/yuhe.ding/Code/few-shot-gan-adaptation-main/dataset.py", line 24, in init self.length = int(txn.get('length'.encode('utf-8')).decode('utf-8')) AttributeError: 'NoneType' object has no attribute 'decode'

Anyone can help me?

YuheD avatar Jun 08 '21 10:06 YuheD

I also encounter exactly same issue... did you solve it?

Ychanho avatar Dec 15 '21 06:12 Ychanho

I solved this issue I deleted the processed data( generated by running prepare_data.py) then ran the prepare_data.py and generated new processed data

then I ran train.py, there is no issue [AttributeError: 'NoneType' object has no attribute 'decode'] and training proceeded without any problems.

If there's anyone who's experiencing this kind of problem, I hope this helps.

Ychanho avatar Dec 15 '21 07:12 Ychanho