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: 'Namespace' object has no attribute 'background' #32

Open
1835969208 opened this issue Aug 4, 2024 · 2 comments
Open

Comments

@1835969208
Copy link

作者大人,我在运行encoder_and_decoder下的main_pretrain.py文件时候遇到了这个报错,显示在 datasets.py 文件的第 91 行代码中,尝试访问 self.args.background 时出现了 AttributeError,因为 background 属性没有定义在 args 对象中。但是运行main_pretrain.py文件的命令中没有background参数的设置。不明白是哪里出现了问题,请教博主大人
屏幕截图 2024-08-04 135923

@DotWang
Copy link
Collaborator

DotWang commented Aug 4, 2024

@1835969208 传错文件了,搞混了,重新传了一下datasets.py,把background这部分去掉了

@1835969208
Copy link
Author

好的,我去试一下

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