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

Question about dataset #4

Open
Xiaozeeze opened this issue Jul 2, 2024 · 5 comments
Open

Question about dataset #4

Xiaozeeze opened this issue Jul 2, 2024 · 5 comments

Comments

@Xiaozeeze
Copy link

Could you please give me the link of the data set and the processing method of the data, and tell me which directory the data set should be placed in ?

@xinghaochen
Copy link
Owner

Could you please give me the link of the data set and the processing method of the data, and tell me which directory the data set should be placed in ?

Which dataset do you mean?

@Xiaozeeze
Copy link
Author

the dataset of Image Classification, ImageNet1k?

@xinghaochen
Copy link
Owner

You can download the ImageNet dataset via the official website and simply pass the path of your dataset using --data-path <imagenet-path> to start training.

python -m torch.distributed.launch --nproc_per_node=8 main.py --cfg <config-path> --data-path <imagenet-path> --output <output-path>

@Xiaozeeze
Copy link
Author

Thank you very much, now I meet a new problem.

Traceback (most recent call last):
File "eval.py", line 260, in
main()
File "eval.py", line 136, in main
module.merge_bn()
File "/public/home/user/.conda/envs/SLAB/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1177, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'PatchEmbed' object has no attribute 'merge_bn'

Do you know what happened? Do I need to add merge_bn to PatchEmbed?

@guojialong1
Copy link
Collaborator

guojialong1 commented Jul 15, 2024

Can you provide more detailed information to reproduce this error? Currently, we only support BN fusion for Swin Transformer. This error occurs if used for other models.

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

3 participants