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

eval模式build_dataset时的错误 #41

Open
laozizhenniubi opened this issue Jun 17, 2024 · 1 comment
Open

eval模式build_dataset时的错误 #41

laozizhenniubi opened this issue Jun 17, 2024 · 1 comment

Comments

@laozizhenniubi
Copy link

约229行,在源代码的main中,
dataset_train, args.nb_classes = build_dataset(is_train=True, args=args)
没有考虑到仅eval模式,is_train默认是true,应该在前加一个条件判断语句。

@laozizhenniubi
Copy link
Author

可以改成这样:
if args.eval: is_train=False dataset_train, args.nb_classes = build_dataset(is_train, args=args)

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

1 participant