-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 :) |
hi ,bro ,so how did you solve your problem, the method mentioned above can't solve my error |
@GuoST9 What software environment are you using? Can you provide detailed information? You can also send it through email [email protected] contact me. |
thank you bro, I've solved my problem through adding the "--cfg myconfigs_directory" to Configurations |
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: