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
Swin Transformer training and evaluation script: error: the following arguments are required: --local_rank #342
Comments
hi @hailuoS @LvQiangWen did you find the answer |
I have resolved this issue and have conducted distributed training tests on both PyTorch 1.8 and 1.10 versions. I mainly made some code deletions to main.py and config.py. Specific: |
You can try my method. |
Bro, thanks for your reply. i solved this issue but still appreciate it :) |
Hello, I used the following command to train
"python -m torch.distributed.launch --nproc_per_node 8 --master_port 12345 main.py --cfg configs/swin/swin_tiny_patch4_window7_224.yaml --batch-size 128 --fused_window_process --fused_layernorm --optim=fused_adam --data-path /home/datasets/imagenet"
but got "Swin Transformer training and evaluation script: error: the following arguments are required: --local_rank",how can I fix this problem, thanks
The text was updated successfully, but these errors were encountered: