Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
YuheD opened this issue Jun 8, 2021 · 2 comments
Open

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

YuheD opened this issue Jun 8, 2021 · 2 comments

Comments

@YuheD
Copy link

YuheD commented Jun 8, 2021

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?

@Ychanho
Copy link

Ychanho commented Dec 15, 2021

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

@Ychanho
Copy link

Ychanho commented Dec 15, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants